Documentation
¶
Index ¶
- func Open(path string, options ...Option) (*gorm.DB, error)
- type Option
- func WithDebug(debug bool) Option
- func WithLargeMemoryFootprint(largeFootprint bool) Option
- func WithModels(models []any) Option
- func WithStatements(statements ...string) Option
- func WithTruncate(truncate bool, models []any, initialData []any) Option
- func WithWritable(write bool, models []any) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶ added in v0.82.0
type Option func(*config)
func WithLargeMemoryFootprint ¶ added in v0.87.0
func WithModels ¶ added in v0.87.0
func WithStatements ¶ added in v0.87.0
func WithTruncate ¶ added in v0.82.0
func WithWritable ¶ added in v0.87.0
Click to show internal directories.
Click to hide internal directories.