sqlstore

package
v0.0.0-...-00ac3a9 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = errors.New("record not found")
	ErrConflict = errors.New("record version conflict")
)

Functions

This section is empty.

Types

type Adapter

type Adapter struct {
	// contains filtered or unexported fields
}

func Open

func Open(ctx context.Context, driver, dataSource string, dialect Dialect) (*Adapter, error)

func (*Adapter) Close

func (adapter *Adapter) Close() error

func (*Adapter) Migrate

func (adapter *Adapter) Migrate(ctx context.Context) error

func (*Adapter) Ping

func (adapter *Adapter) Ping(ctx context.Context) error

func (*Adapter) WithinBackupTransaction

func (adapter *Adapter) WithinBackupTransaction(
	ctx context.Context,
	operation func(backup.Transaction) error,
) error

func (*Adapter) WithinContentTransaction

func (adapter *Adapter) WithinContentTransaction(
	ctx context.Context,
	operation func(contentapplication.Transaction) error,
) error

func (*Adapter) WithinIdentityTransaction

func (adapter *Adapter) WithinIdentityTransaction(
	ctx context.Context,
	operation func(identityapplication.Transaction) error,
) error

func (*Adapter) WithinTaxonomyTransaction

func (adapter *Adapter) WithinTaxonomyTransaction(
	ctx context.Context,
	operation func(taxonomyapplication.Transaction) error,
) error

type Dialect

type Dialect string
const (
	DialectSQLite     Dialect = "sqlite"
	DialectMySQL      Dialect = "mysql"
	DialectPostgreSQL Dialect = "postgres"
)

func (Dialect) Valid

func (dialect Dialect) Valid() bool

Jump to

Keyboard shortcuts

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