Documentation ¶
Overview ¶
Package sql contains infrastructure layer SQL implementations.
This package does not import any specific driver. The code must work on any supported dialect, so it should be as agnostic as possible. However, when there is a need for some specific dialect features, the code must be protected with constructions like:
if tx.Dialect().Name() == dialect.PG { // do something specific to PostgreSQL }
Index ¶
- type Store
- func (s *Store) CreateProject(ctx context.Context, project aud.Project) error
- func (s *Store) CreateRecord(ctx context.Context, record aud.Record) error
- func (s *Store) CreateRecords(ctx context.Context, records []aud.Record) error
- func (s *Store) DeleteRecord(ctx context.Context, projectID aud.ID, id aud.ID) error
- func (s *Store) GetProject(ctx context.Context, id aud.ID) (aud.Project, error)
- func (s *Store) GetRecord(ctx context.Context, projectID aud.ID, id aud.ID) (aud.Record, error)
- func (s *Store) ListProjects(ctx context.Context, filter aud.ProjectFilter, limit int32, ...) ([]aud.Project, error)
- func (s *Store) ListRecords(ctx context.Context, projectID aud.ID, filter aud.RecordFilter, limit int32, ...) ([]aud.Record, error)
- func (s *Store) UpdateProject(ctx context.Context, id aud.ID, update aud.ProjectUpdate) (aud.Project, error)
- func (s *Store) UpdateRecord(ctx context.Context, projectID aud.ID, id aud.ID, update aud.RecordUpdate) (aud.Record, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) CreateProject ¶
func (*Store) CreateRecord ¶
func (*Store) CreateRecords ¶
func (*Store) DeleteRecord ¶
func (*Store) GetProject ¶
func (*Store) ListProjects ¶
func (*Store) ListRecords ¶
func (*Store) UpdateProject ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.