Documentation
¶
Index ¶
- type Store
- func (store *Store) CheckSchema(checks []migration.SchemaCheck) []migration.SchemaError
- func (store *Store) Close(_ context.Context) error
- func (store *Store) Get(ctx context.Context, accountID string, offset, limit int, descending bool) ([]*activity.Event, error)
- func (store *Store) Save(_ context.Context, event *activity.Event) (*activity.Event, error)
- func (store *Store) UpdateUserID(ctx context.Context, oldUserID, newUserID string) 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
}
Store is the implementation of the activity.Store interface backed by SQLite
func NewSqlStore ¶
NewSqlStore creates a new Store with an event table if not exists.
func (*Store) CheckSchema ¶ added in v0.67.2
func (store *Store) CheckSchema(checks []migration.SchemaCheck) []migration.SchemaError
CheckSchema verifies that all tables and columns required by the migration exist in the event database.
func (*Store) Get ¶
func (store *Store) Get(ctx context.Context, accountID string, offset, limit int, descending bool) ([]*activity.Event, error)
Get returns "limit" number of events from index ordered descending or ascending by a timestamp
Click to show internal directories.
Click to hide internal directories.