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) CreateAttachment(ctx context.Context, create *store.Attachment) (*store.Attachment, 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) CreateUser(ctx context.Context, create *store.User) (*store.User, error)
- func (d *DB) DeleteAttachment(ctx context.Context, delete *store.DeleteAttachment) 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) DeleteInstanceSetting(ctx context.Context, delete *store.DeleteInstanceSetting) error
- func (d *DB) DeleteMemo(ctx context.Context, delete *store.DeleteMemo) 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) DeleteUser(ctx context.Context, delete *store.DeleteUser) 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) GetReaction(ctx context.Context, find *store.FindReaction) (*store.Reaction, error)
- func (d *DB) IsInitialized(ctx context.Context) (bool, error)
- func (d *DB) ListActivities(ctx context.Context, find *store.FindActivity) ([]*store.Activity, error)
- func (d *DB) ListAttachments(ctx context.Context, find *store.FindAttachment) ([]*store.Attachment, 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) ListInstanceSettings(ctx context.Context, find *store.FindInstanceSetting) ([]*store.InstanceSetting, 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) 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) UpdateAttachment(ctx context.Context, update *store.UpdateAttachment) 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) UpdateUser(ctx context.Context, update *store.UpdateUser) (*store.User, error)
- func (d *DB) UpsertInstanceSetting(ctx context.Context, upsert *store.InstanceSetting) (*store.InstanceSetting, 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)
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) CreateAttachment ¶ added in v0.25.0
func (d *DB) CreateAttachment(ctx context.Context, create *store.Attachment) (*store.Attachment, error)
func (*DB) CreateIdentityProvider ¶
func (d *DB) CreateIdentityProvider(ctx context.Context, create *store.IdentityProvider) (*store.IdentityProvider, error)
func (*DB) CreateInbox ¶
func (*DB) CreateMemo ¶
func (*DB) CreateUser ¶
func (*DB) DeleteAttachment ¶ added in v0.25.0
func (*DB) DeleteIdentityProvider ¶
func (*DB) DeleteInbox ¶
func (*DB) DeleteInstanceSetting ¶ added in v0.25.3
func (*DB) DeleteMemo ¶
func (*DB) DeleteMemoRelation ¶
func (*DB) DeleteReaction ¶ added in v0.20.0
func (*DB) DeleteUser ¶
func (*DB) FindMigrationHistoryList ¶
func (d *DB) FindMigrationHistoryList(ctx context.Context, _ *store.FindMigrationHistory) ([]*store.MigrationHistory, error)
FindMigrationHistoryList retrieves all migration history records. NOTE: This method is deprecated along with the migration_history table.
func (*DB) GetReaction ¶ added in v0.25.3
func (*DB) IsInitialized ¶ added in v0.25.0
func (*DB) ListActivities ¶
func (*DB) ListAttachments ¶ added in v0.25.0
func (d *DB) ListAttachments(ctx context.Context, find *store.FindAttachment) ([]*store.Attachment, error)
func (*DB) ListIdentityProviders ¶
func (d *DB) ListIdentityProviders(ctx context.Context, find *store.FindIdentityProvider) ([]*store.IdentityProvider, error)
func (*DB) ListInboxes ¶
func (*DB) ListInstanceSettings ¶ added in v0.25.3
func (d *DB) ListInstanceSettings(ctx context.Context, find *store.FindInstanceSetting) ([]*store.InstanceSetting, 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) ListUserSettings ¶
func (d *DB) ListUserSettings(ctx context.Context, find *store.FindUserSetting) ([]*store.UserSetting, error)
func (*DB) UpdateAttachment ¶ added in v0.25.0
func (*DB) UpdateIdentityProvider ¶
func (d *DB) UpdateIdentityProvider(ctx context.Context, update *store.UpdateIdentityProvider) (*store.IdentityProvider, error)
func (*DB) UpdateInbox ¶
func (*DB) UpdateMemo ¶
func (*DB) UpdateUser ¶
func (*DB) UpsertInstanceSetting ¶ added in v0.25.3
func (d *DB) UpsertInstanceSetting(ctx context.Context, upsert *store.InstanceSetting) (*store.InstanceSetting, 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)
UpsertMigrationHistory inserts or updates a migration history record. NOTE: This method is deprecated along with the migration_history table.
func (*DB) UpsertReaction ¶ added in v0.20.0
func (*DB) UpsertUserSetting ¶
func (d *DB) UpsertUserSetting(ctx context.Context, upsert *store.UserSetting) (*store.UserSetting, error)
Click to show internal directories.
Click to hide internal directories.