Documentation ¶
Index ¶
- func MarshalSpec(v interface{}, marshaler schemaspec.Marshaler) ([]byte, error)
- func UnmarshalSpec(data []byte, unmarshaler schemaspec.Unmarshaler, v interface{}) error
- type CreateStmt
- type Driver
- func (d Driver) Diff() schema.Differ
- func (d *Driver) InspectRealm(ctx context.Context, opts *schema.InspectRealmOption) (*schema.Realm, error)
- func (d *Driver) InspectSchema(ctx context.Context, name string, _ *schema.InspectOptions) (*schema.Schema, error)
- func (d *Driver) InspectTable(ctx context.Context, name string, opts *schema.InspectTableOptions) (*schema.Table, error)
- type File
- type IndexPredicate
- type WithoutRowID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalSpec ¶
func MarshalSpec(v interface{}, marshaler schemaspec.Marshaler) ([]byte, error)
MarshalSpec marshals v into an Atlas DDL document using a schemaspec.Marshaler.
func UnmarshalSpec ¶
func UnmarshalSpec(data []byte, unmarshaler schemaspec.Unmarshaler, v interface{}) error
UnmarshalSpec unmarshals an Atlas DDL document using an unmarshaler into v.
Types ¶
type CreateStmt ¶
CreateStmt describes the SQL statement used to create a resource.
type Driver ¶
type Driver struct { schema.ExecQuerier // contains filtered or unexported fields }
Driver represents an SQLite driver for introspecting database schemas and apply migrations changes on them.
func (*Driver) InspectRealm ¶
func (d *Driver) InspectRealm(ctx context.Context, opts *schema.InspectRealmOption) (*schema.Realm, error)
InspectRealm returns schema descriptions of all resources in the given realm.
type IndexPredicate ¶
IndexPredicate describes a partial index predicate. See: https://www.sqlite.org/partialindex.html
type WithoutRowID ¶
WithoutRowID describes the `WITHOUT ROWID` configuration. See: https://sqlite.org/withoutrowid.html
Click to show internal directories.
Click to hide internal directories.