Documentation ¶
Index ¶
- func NewDB(profile *profile.Profile) (store.Driver, error)
- type DB
- func (d *DB) Close() error
- func (d *DB) CreateActivity(ctx context.Context, create *store.Activity) (*store.Activity, error)
- func (d *DB) CreateCollection(ctx context.Context, create *storepb.Collection) (*storepb.Collection, error)
- func (d *DB) CreateShortcut(ctx context.Context, create *storepb.Shortcut) (*storepb.Shortcut, error)
- func (d *DB) CreateUser(ctx context.Context, create *store.User) (*store.User, error)
- func (d *DB) DeleteCollection(ctx context.Context, delete *store.DeleteCollection) error
- func (d *DB) DeleteShortcut(ctx context.Context, delete *store.DeleteShortcut) error
- func (d *DB) DeleteUser(ctx context.Context, delete *store.DeleteUser) error
- func (d *DB) GetDB() *sql.DB
- func (d *DB) ListActivities(ctx context.Context, find *store.FindActivity) ([]*store.Activity, error)
- func (d *DB) ListCollections(ctx context.Context, find *store.FindCollection) ([]*storepb.Collection, error)
- func (d *DB) ListMigrationHistories(ctx context.Context, _ *store.FindMigrationHistory) ([]*store.MigrationHistory, error)
- func (d *DB) ListShortcuts(ctx context.Context, find *store.FindShortcut) ([]*storepb.Shortcut, error)
- func (d *DB) ListUserSettings(ctx context.Context, find *store.FindUserSetting) ([]*storepb.UserSetting, error)
- func (d *DB) ListUsers(ctx context.Context, find *store.FindUser) ([]*store.User, error)
- func (d *DB) ListWorkspaceSettings(ctx context.Context, find *store.FindWorkspaceSetting) ([]*storepb.WorkspaceSetting, error)
- func (d *DB) Migrate(ctx context.Context) error
- func (d *DB) UpdateCollection(ctx context.Context, update *store.UpdateCollection) (*storepb.Collection, error)
- func (d *DB) UpdateShortcut(ctx context.Context, update *store.UpdateShortcut) (*storepb.Shortcut, error)
- func (d *DB) UpdateUser(ctx context.Context, update *store.UpdateUser) (*store.User, error)
- func (d *DB) UpsertMigrationHistory(ctx context.Context, upsert *store.UpsertMigrationHistory) (*store.MigrationHistory, error)
- func (d *DB) UpsertUserSetting(ctx context.Context, upsert *storepb.UserSetting) (*storepb.UserSetting, error)
- func (d *DB) UpsertWorkspaceSetting(ctx context.Context, upsert *storepb.WorkspaceSetting) (*storepb.WorkspaceSetting, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) CreateActivity ¶
func (*DB) CreateCollection ¶
func (d *DB) CreateCollection(ctx context.Context, create *storepb.Collection) (*storepb.Collection, error)
func (*DB) CreateShortcut ¶
func (*DB) CreateUser ¶
func (*DB) DeleteCollection ¶
func (*DB) DeleteShortcut ¶
func (*DB) DeleteUser ¶
func (*DB) ListActivities ¶
func (*DB) ListCollections ¶
func (d *DB) ListCollections(ctx context.Context, find *store.FindCollection) ([]*storepb.Collection, error)
func (*DB) ListMigrationHistories ¶
func (d *DB) ListMigrationHistories(ctx context.Context, _ *store.FindMigrationHistory) ([]*store.MigrationHistory, error)
func (*DB) ListShortcuts ¶
func (*DB) ListUserSettings ¶
func (d *DB) ListUserSettings(ctx context.Context, find *store.FindUserSetting) ([]*storepb.UserSetting, error)
func (*DB) ListWorkspaceSettings ¶
func (d *DB) ListWorkspaceSettings(ctx context.Context, find *store.FindWorkspaceSetting) ([]*storepb.WorkspaceSetting, error)
func (*DB) UpdateCollection ¶
func (d *DB) UpdateCollection(ctx context.Context, update *store.UpdateCollection) (*storepb.Collection, error)
func (*DB) UpdateShortcut ¶
func (*DB) UpdateUser ¶
func (*DB) UpsertMigrationHistory ¶
func (d *DB) UpsertMigrationHistory(ctx context.Context, upsert *store.UpsertMigrationHistory) (*store.MigrationHistory, error)
func (*DB) UpsertUserSetting ¶
func (d *DB) UpsertUserSetting(ctx context.Context, upsert *storepb.UserSetting) (*storepb.UserSetting, error)
func (*DB) UpsertWorkspaceSetting ¶
func (d *DB) UpsertWorkspaceSetting(ctx context.Context, upsert *storepb.WorkspaceSetting) (*storepb.WorkspaceSetting, error)
Click to show internal directories.
Click to hide internal directories.