Documentation
¶
Overview ¶
Package sqlstore adapts database/sql connections to server.AdminStore.
Use MySQL or SQLite helpers when your app already imports and configures the relevant database/sql driver.
Package sqlstore provides a database/sql-backed AdminStore adapter.
Index ¶
- type Dialect
- type Store
- func (s *Store) AddFile(ctx context.Context, record server.Record) error
- func (s *Store) Audit(ctx context.Context, tenantID, role string) ([]server.AuditEvent, error)
- func (s *Store) Create(ctx context.Context, table, tenantID string, input server.Record) (server.Record, error)
- func (s *Store) Delete(ctx context.Context, table, id, tenantID, role string) (server.Record, error)
- func (s *Store) DeleteMany(ctx context.Context, table string, ids []string, tenantID, role string) ([]server.Record, error)
- func (s *Store) FileKey(ctx context.Context, id, tenantID, role string) (string, error)
- func (s *Store) Files(ctx context.Context, tenantID, role string) ([]server.Record, error)
- func (s *Store) Get(ctx context.Context, table, id, tenantID, role string) (server.Record, error)
- func (s *Store) List(ctx context.Context, table, tenantID, role, search, sortBy string, ...) ([]server.Record, int, error)
- func (s *Store) RecordAudit(ctx context.Context, event server.AuditEvent)
- func (s *Store) Update(ctx context.Context, table, id, tenantID, role string, input server.Record) (server.Record, server.Record, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
server.ResourceMetadataStore
// contains filtered or unexported fields
}
func (*Store) DeleteMany ¶
func (*Store) RecordAudit ¶
func (s *Store) RecordAudit(ctx context.Context, event server.AuditEvent)
Click to show internal directories.
Click to hide internal directories.