Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnableSchemaMigrate ¶
Enable auto schema migration.
Put all SQL scripts in a specific directory. Embed the directory as follows:
//go:embed schema/managed/*.sql var schemaFs embed.FS
SQL files should start with 'v' using a name that clearly indicates which version it belongs to, E.g., 'schema/managed/v0.0.1.sql'.
func EnableSchemaMigrateOnProd ¶
Enable auto schema migration on production mode.
func ExcludeSchemaFile ¶
func ExcludeSchemaFile(name string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.