pragma

package
v0.0.0-...-439fd0a Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPragma

func GetPragma[T any](ctx context.Context, txn coredatabase.TrackedDB, pragam Pragma) (T, error)

GetPragma returns whether the given pragma is enabled.

func SetPragma

func SetPragma[T any](ctx context.Context, db *sql.DB, pragma Pragma, value T) error

SetPragma sets the given pragma to the given value.

Types

type Pragma

type Pragma string

Pragma is the name of a pragma.

const (
	// ForeignKeysPragma is the name of the foreign keys pragma.
	ForeignKeysPragma Pragma = "foreign_keys"
)

Jump to

Keyboard shortcuts

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