Versions in this module Expand all Collapse all v1 v1.0.0 Feb 24, 2024 Changes in this version + var DefaultSqliteConfig = SqliteDatastoreConfig + type MockSqliteDatastore struct + func NewMockSqliteDatastore(t *testing.T) *MockSqliteDatastore + func (ds *MockSqliteDatastore) TablesEqual(t *testing.T, wantTables []string) ([]string, bool) + func (ds *MockSqliteDatastore) WithExercise(t *testing.T, id int, workout int, name string, weight float64, reps int, ...) + func (ds *MockSqliteDatastore) WithUser(t *testing.T, id int, email string, pass string) + func (ds *MockSqliteDatastore) WithWorkout(t *testing.T, workoutID int, owner int, name string) + type SqliteDatastore struct + func NewSqliteDatastore(config SqliteDatastoreConfig) (*SqliteDatastore, error) + func (ds *SqliteDatastore) CompileStatement(stmt string, data any) (string, []any, error) + type SqliteDatastoreConfig struct + DatabaseURL string + ForeignKeyEnforced bool + MigrationURL string + Overwrite bool