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) CreateIdentityProvider(ctx context.Context, create *store.IdentityProvider) (*store.IdentityProvider, error)
- func (d *DB) CreateInbox(ctx context.Context, create *store.Inbox) (*store.Inbox, error)
- func (d *DB) CreateMemo(ctx context.Context, create *store.Memo) (*store.Memo, error)
- func (d *DB) CreateResource(ctx context.Context, create *store.Resource) (*store.Resource, error)
- func (d *DB) CreateUser(ctx context.Context, create *store.User) (*store.User, error)
- func (d *DB) CreateWebhook(ctx context.Context, create *store.Webhook) (*store.Webhook, error)
- func (d *DB) DeleteIdentityProvider(ctx context.Context, delete *store.DeleteIdentityProvider) error
- func (d *DB) DeleteInbox(ctx context.Context, delete *store.DeleteInbox) error
- func (d *DB) DeleteMemo(ctx context.Context, delete *store.DeleteMemo) error
- func (d *DB) DeleteMemoOrganizer(ctx context.Context, delete *store.DeleteMemoOrganizer) error
- func (d *DB) DeleteMemoRelation(ctx context.Context, delete *store.DeleteMemoRelation) error
- func (d *DB) DeleteReaction(ctx context.Context, delete *store.DeleteReaction) error
- func (d *DB) DeleteResource(ctx context.Context, delete *store.DeleteResource) error
- func (d *DB) DeleteUser(ctx context.Context, delete *store.DeleteUser) error
- func (d *DB) DeleteWebhook(ctx context.Context, delete *store.DeleteWebhook) error
- func (d *DB) DeleteWorkspaceSetting(ctx context.Context, delete *store.DeleteWorkspaceSetting) error
- func (d *DB) FindMigrationHistoryList(ctx context.Context, _ *store.FindMigrationHistory) ([]*store.MigrationHistory, error)
- func (d *DB) GetDB() *sql.DB
- func (d *DB) GetInbox(ctx context.Context, find *store.FindInbox) (*store.Inbox, error)
- func (d *DB) GetMemo(ctx context.Context, find *store.FindMemo) (*store.Memo, error)
- func (d *DB) ListActivities(ctx context.Context, find *store.FindActivity) ([]*store.Activity, error)
- func (d *DB) ListIdentityProviders(ctx context.Context, find *store.FindIdentityProvider) ([]*store.IdentityProvider, error)
- func (d *DB) ListInboxes(ctx context.Context, find *store.FindInbox) ([]*store.Inbox, error)
- func (d *DB) ListMemoOrganizer(ctx context.Context, find *store.FindMemoOrganizer) ([]*store.MemoOrganizer, error)
- func (d *DB) ListMemoRelations(ctx context.Context, find *store.FindMemoRelation) ([]*store.MemoRelation, error)
- func (d *DB) ListMemos(ctx context.Context, find *store.FindMemo) ([]*store.Memo, error)
- func (d *DB) ListReactions(ctx context.Context, find *store.FindReaction) ([]*store.Reaction, error)
- func (d *DB) ListResources(ctx context.Context, find *store.FindResource) ([]*store.Resource, error)
- func (d *DB) ListUserSettings(ctx context.Context, find *store.FindUserSetting) ([]*store.UserSetting, error)
- func (d *DB) ListUsers(ctx context.Context, find *store.FindUser) ([]*store.User, error)
- func (d *DB) ListWebhooks(ctx context.Context, find *store.FindWebhook) ([]*store.Webhook, error)
- func (d *DB) ListWorkspaceSettings(ctx context.Context, find *store.FindWorkspaceSetting) ([]*store.WorkspaceSetting, error)
- func (d *DB) UpdateIdentityProvider(ctx context.Context, update *store.UpdateIdentityProvider) (*store.IdentityProvider, error)
- func (d *DB) UpdateInbox(ctx context.Context, update *store.UpdateInbox) (*store.Inbox, error)
- func (d *DB) UpdateMemo(ctx context.Context, update *store.UpdateMemo) error
- func (d *DB) UpdateResource(ctx context.Context, update *store.UpdateResource) error
- func (d *DB) UpdateUser(ctx context.Context, update *store.UpdateUser) (*store.User, error)
- func (d *DB) UpdateWebhook(ctx context.Context, update *store.UpdateWebhook) (*store.Webhook, error)
- func (d *DB) UpsertMemoOrganizer(ctx context.Context, upsert *store.MemoOrganizer) (*store.MemoOrganizer, error)
- func (d *DB) UpsertMemoRelation(ctx context.Context, create *store.MemoRelation) (*store.MemoRelation, error)
- func (d *DB) UpsertMigrationHistory(ctx context.Context, upsert *store.UpsertMigrationHistory) (*store.MigrationHistory, error)
- func (d *DB) UpsertReaction(ctx context.Context, upsert *store.Reaction) (*store.Reaction, error)
- func (d *DB) UpsertUserSetting(ctx context.Context, upsert *store.UserSetting) (*store.UserSetting, error)
- func (d *DB) UpsertWorkspaceSetting(ctx context.Context, upsert *store.WorkspaceSetting) (*store.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) CreateIdentityProvider ¶
func (d *DB) CreateIdentityProvider(ctx context.Context, create *store.IdentityProvider) (*store.IdentityProvider, error)
func (*DB) CreateInbox ¶
func (*DB) CreateMemo ¶
func (*DB) CreateResource ¶
func (*DB) CreateUser ¶
func (*DB) CreateWebhook ¶
func (*DB) DeleteIdentityProvider ¶
func (*DB) DeleteInbox ¶
func (*DB) DeleteMemo ¶
func (*DB) DeleteMemoOrganizer ¶
func (*DB) DeleteMemoRelation ¶
func (*DB) DeleteReaction ¶ added in v0.20.0
func (*DB) DeleteResource ¶
func (*DB) DeleteUser ¶
func (*DB) DeleteWebhook ¶
func (*DB) DeleteWorkspaceSetting ¶ added in v0.20.0
func (*DB) FindMigrationHistoryList ¶
func (d *DB) FindMigrationHistoryList(ctx context.Context, _ *store.FindMigrationHistory) ([]*store.MigrationHistory, error)
func (*DB) ListActivities ¶
func (*DB) ListIdentityProviders ¶
func (d *DB) ListIdentityProviders(ctx context.Context, find *store.FindIdentityProvider) ([]*store.IdentityProvider, error)
func (*DB) ListInboxes ¶
func (*DB) ListMemoOrganizer ¶
func (d *DB) ListMemoOrganizer(ctx context.Context, find *store.FindMemoOrganizer) ([]*store.MemoOrganizer, error)
func (*DB) ListMemoRelations ¶
func (d *DB) ListMemoRelations(ctx context.Context, find *store.FindMemoRelation) ([]*store.MemoRelation, error)
func (*DB) ListReactions ¶ added in v0.20.0
func (*DB) ListResources ¶
func (*DB) ListUserSettings ¶
func (d *DB) ListUserSettings(ctx context.Context, find *store.FindUserSetting) ([]*store.UserSetting, error)
func (*DB) ListWebhooks ¶
func (*DB) ListWorkspaceSettings ¶ added in v0.19.1
func (d *DB) ListWorkspaceSettings(ctx context.Context, find *store.FindWorkspaceSetting) ([]*store.WorkspaceSetting, error)
func (*DB) UpdateIdentityProvider ¶
func (d *DB) UpdateIdentityProvider(ctx context.Context, update *store.UpdateIdentityProvider) (*store.IdentityProvider, error)
func (*DB) UpdateInbox ¶
func (*DB) UpdateMemo ¶
func (*DB) UpdateResource ¶
func (*DB) UpdateUser ¶
func (*DB) UpdateWebhook ¶
func (*DB) UpsertMemoOrganizer ¶
func (d *DB) UpsertMemoOrganizer(ctx context.Context, upsert *store.MemoOrganizer) (*store.MemoOrganizer, error)
func (*DB) UpsertMemoRelation ¶
func (d *DB) UpsertMemoRelation(ctx context.Context, create *store.MemoRelation) (*store.MemoRelation, error)
func (*DB) UpsertMigrationHistory ¶
func (d *DB) UpsertMigrationHistory(ctx context.Context, upsert *store.UpsertMigrationHistory) (*store.MigrationHistory, error)
func (*DB) UpsertReaction ¶ added in v0.20.0
func (*DB) UpsertUserSetting ¶
func (d *DB) UpsertUserSetting(ctx context.Context, upsert *store.UserSetting) (*store.UserSetting, error)
func (*DB) UpsertWorkspaceSetting ¶ added in v0.19.1
func (d *DB) UpsertWorkspaceSetting(ctx context.Context, upsert *store.WorkspaceSetting) (*store.WorkspaceSetting, error)
Click to show internal directories.
Click to hide internal directories.