Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
func WithCustomLogger ¶
WithCustomLogger use the given logger implementation as GORM logger.
func WithDisableForeignKeyWhenMigrating ¶
func WithDisableForeignKeyWhenMigrating() Options
WithDisableForeignKeyWhenMigrating disable foreign key constraint when using GORM's migration.
func WithDisableNestedTrx ¶
func WithDisableNestedTrx() Options
WithDisableNestedTrx disable default nested transaction.
func WithPrepareStatement ¶
func WithPrepareStatement() Options
WithPrepareStatement enable prepared statement for GORM.
func WithSingularTableName ¶
func WithSingularTableName() Options
WithSingularTableName set all tables name to singular.
func WithSkipDefaultTrx ¶
func WithSkipDefaultTrx() Options
WithSkipDefaultTrx skip default transaction.
Click to show internal directories.
Click to hide internal directories.