Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateMigration ¶
GenerateMigration in the migrations folder using the migrations template
func UseMigrationFolder ¶ added in v1.2.9
func UseMigrationFolder(folder string) migrationOption
UseMigrationFolder sets the folder for migrations
func WithDriver ¶
func WithDriver(name string) connectionOption
Types ¶
type ConnFn ¶
ConnFn is the database connection builder function that will be used by the application based on the driver and connection string.
func ConnectionFn ¶
ConnectionFn is the database connection builder function that will be used by the application based on the driver and connection string. It opens the connection only once and return the same connection on subsequent calls.
Click to show internal directories.
Click to hide internal directories.