Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( WithIncludeSchemas = internalschema.WithIncludeSchemas WithExcludeSchemas = internalschema.WithExcludeSchemas )
Functions ¶
func GetSchemaHash ¶ added in v0.7.0
func GetSchemaHash(ctx context.Context, queryable sqldb.Queryable, opts ...GetSchemaOpt) (string, error)
GetSchemaHash hash gets the hash of the target schema. It can be used to compare against the hash in the migration plan to determine if the plan is still valid.
We do not expose the Schema struct yet because it is subject to change, and we do not want folks depending on its API.
Types ¶
type GetSchemaOpt ¶ added in v0.6.0
type GetSchemaOpt = internalschema.GetSchemaOpt
Click to show internal directories.
Click to hide internal directories.