Documentation
¶
Index ¶
- type Source
- func (s *Source) Attach(ctx context.Context, db *db.Pool) (err error)
- func (s *Source) DefaultSchema() string
- func (s *Source) Definition() types.DataSource
- func (s *Source) Detach(ctx context.Context, db *db.Pool) error
- func (s *Source) Engine() engines.Engine
- func (s *Source) IsAttached() bool
- func (s *Source) Name() string
- func (s *Source) ReadOnly() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Source ¶
type Source struct {
// contains filtered or unexported fields
}
func (*Source) DefaultSchema ¶ added in v0.3.41
DefaultSchema returns the database name from the connection string. MySQL exposes every database as a schema of the attached catalog, so the connection database is reported as the default schema to keep its objects unprefixed and module-free in self-described catalogs.
func (*Source) Definition ¶
func (s *Source) Definition() types.DataSource
func (*Source) IsAttached ¶
Click to show internal directories.
Click to hide internal directories.