sqlite

package
v4.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrUniqueConstraintFailed = "UNIQUE constraint failed"
)
View Source
const (
	InMemory = "file::memory:?cache=shared"
)

Variables

This section is empty.

Functions

func Close

func Close(database *Database) error

func HandleErrDuplicateValue

func HandleErrDuplicateValue(err error) error

func HandleErrNotFound

func HandleErrNotFound(err error, index string) error

func IsErrDuplicateValue

func IsErrDuplicateValue(err error) bool

func IsErrNotFound

func IsErrNotFound(err error) bool

Types

type Database

type Database struct {
	Session *gorm.DB
}

func Open

func Open(dsn string) (*Database, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL