Documentation ¶
Index ¶
- func IsConstraintError(err error) bool
- func LoadSchemaFromSQL(script string) (_ *dbschema.Schema, err error)
- func LoadSnapshotFromSQL(script string) (_ *dbschema.Snapshot, err error)
- func QueryData(db dbschema.Queryer, schema *dbschema.Schema) (*dbschema.Data, error)
- func QuerySchema(db dbschema.Queryer) (*dbschema.Schema, error)
- func QuerySnapshot(db dbschema.Queryer) (*dbschema.Snapshot, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsConstraintError ¶ added in v0.8.1
IsConstraintError checks if given error is about constraint violation
func LoadSchemaFromSQL ¶
LoadSchemaFromSQL inserts script into connstr and loads schema.
func LoadSnapshotFromSQL ¶
LoadSnapshotFromSQL inserts script into connstr and loads schema.
func QuerySchema ¶
QuerySchema loads the schema from sqlite database.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.