schema

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2025 License: MIT Imports: 4 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL