gormadapter

package
v0.87.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(path string, options ...Option) (*gorm.DB, error)

Open a new connection to a sqlite3 database file

Types

type Option added in v0.82.0

type Option func(*config)

func WithDebug added in v0.87.0

func WithDebug(debug bool) Option

func WithLargeMemoryFootprint added in v0.87.0

func WithLargeMemoryFootprint(largeFootprint bool) Option

func WithModels added in v0.87.0

func WithModels(models []any) Option

func WithStatements added in v0.87.0

func WithStatements(statements ...string) Option

func WithTruncate added in v0.82.0

func WithTruncate(truncate bool, models []any, initialData []any) Option

func WithWritable added in v0.87.0

func WithWritable(write bool, models []any) Option

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳