Documentation
¶
Index ¶
- Variables
- func RunMigrations(filepath string) error
- type SQLite3Storage
- func (s *SQLite3Storage) Close() error
- func (s *SQLite3Storage) CursorStart() zanzigo.Cursor
- func (s *SQLite3Storage) List(ctx context.Context, t zanzigo.Tuple, p zanzigo.Pagination) ([]zanzigo.Tuple, zanzigo.Cursor, error)
- func (s *SQLite3Storage) PrepareRuleset(object, relation string, ruleset []zanzigo.InferredRule) (zanzigo.Userdata, error)
- func (s *SQLite3Storage) QueryChecks(ctx context.Context, checks []zanzigo.Check) ([]zanzigo.MarkedTuple, error)
- func (s *SQLite3Storage) Read(ctx context.Context, t zanzigo.Tuple) (uuid.UUID, error)
- func (s *SQLite3Storage) Write(ctx context.Context, t zanzigo.Tuple) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUnableToGetConn = fmt.Errorf("unable to get connection from pool")
)
Functions ¶
func RunMigrations ¶
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) 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)
Click to show internal directories.
Click to hide internal directories.