Versions in this module Expand all Collapse all v0 v0.1.0 Nov 8, 2026 Changes in this version + var LibraryPath string + func CreateTableStatements(defn map[string]any) ([]string, error) + type AsyncComputeFunc func(ctx *Context, docs []map[string]any) error + type Context struct + Internal bool + Role string + Roles []string + UserID string + type Store struct + func Open(dsn string) (*Store, error) + func (s *Store) Close() error + func (s *Store) EnsureTables(defn map[string]any) error + func (s *Store) Insert(ctx context.Context, schema string, data map[string]any, actx *Context) (map[string]any, error) + func (s *Store) ListSchemas() ([]string, error) + func (s *Store) Query(ctx context.Context, gql string, params map[string]any, actx *Context) ([]map[string]any, error) + func (s *Store) QueryOne(ctx context.Context, gql string, params map[string]any, actx *Context) (map[string]any, error) + func (s *Store) QueryWithCount(ctx context.Context, gql string, params map[string]any, actx *Context) (map[string]any, error) + func (s *Store) RbacCan(model, action string, actx *Context) (bool, error) + func (s *Store) RbacEnabled() (bool, error) + func (s *Store) RbacReadableFields(model string, actx *Context) ([]string, error) + func (s *Store) RbacRowCondition(model, action string, actx *Context) (map[string]any, error) + func (s *Store) RbacWritableFields(model string, actx *Context) ([]string, error) + func (s *Store) Register(defn map[string]any) error + func (s *Store) RegisterCompute(fnRef string, fn AsyncComputeFunc) + func (s *Store) RegisterSyncCompute(fnRef string, fn SyncComputeFunc) + func (s *Store) Remove(ctx context.Context, schema string, condition map[string]any, actx *Context) (map[string]any, error) + func (s *Store) SchemaFields(schema string) map[string]any + func (s *Store) SchemaFieldsKeys(schema string) []string + func (s *Store) SetDenyWriteRoles(roles []string) error + func (s *Store) SetExemptRoles(roles []string) error + func (s *Store) SetRbac(policy map[string]any) error + func (s *Store) SetUnconfiguredPolicy(policy string) error + func (s *Store) Update(ctx context.Context, schema string, condition, data map[string]any, ...) (map[string]any, error) + type SyncComputeFunc func(ctx *Context, doc map[string]any) (any, error)