Documentation
¶
Overview ¶
Package mysql provides database schema introspection for MySQL and MariaDB databases.
Index ¶
- type Inspector
- func (i *Inspector) ColumnMeta(ctx context.Context, tableName string) ([]model.ColumnMeta, error)
- func (i *Inspector) Columns(ctx context.Context, tableName string) ([]string, error)
- func (i *Inspector) Indexes(ctx context.Context, tableName string) ([]model.Index, error)
- func (i *Inspector) Relations(ctx context.Context, tableName string) ([]string, error)
- func (i *Inspector) Tables(ctx context.Context) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Inspector ¶
Inspector implements schema introspection for MySQL / MariaDB.
func (*Inspector) ColumnMeta ¶ added in v0.1.7
func (*Inspector) Columns ¶
Columns returns column descriptors for tableName in "name|type|pk" format, where pk is "1" for primary-key columns, "0" otherwise.
Click to show internal directories.
Click to hide internal directories.