sqlite3

package
v0.0.0-...-81cf043 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnableToGetConn = fmt.Errorf("unable to get connection from pool")
)

Functions

func RunMigrations

func RunMigrations(filepath string) error

Types

type SQLite3Storage

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

func NewSQLite3Storage

func NewSQLite3Storage(filepath string) (*SQLite3Storage, error)

func (*SQLite3Storage) Close

func (s *SQLite3Storage) Close() error

func (*SQLite3Storage) CursorStart

func (s *SQLite3Storage) CursorStart() zanzigo.Cursor

func (*SQLite3Storage) List

func (*SQLite3Storage) PrepareRuleset

func (s *SQLite3Storage) PrepareRuleset(object, relation string, ruleset []zanzigo.InferredRule) (zanzigo.Userdata, error)

func (*SQLite3Storage) QueryChecks

func (s *SQLite3Storage) QueryChecks(ctx context.Context, checks []zanzigo.Check) ([]zanzigo.MarkedTuple, error)

func (*SQLite3Storage) Read

func (s *SQLite3Storage) Read(ctx context.Context, t zanzigo.Tuple) (uuid.UUID, error)

func (*SQLite3Storage) Write

func (s *SQLite3Storage) Write(ctx context.Context, t zanzigo.Tuple) error

Jump to

Keyboard shortcuts

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