Documentation ¶
Index ¶
- func CreateEventJSONTable(db *sql.DB) error
- func CreateEventStateKeysTable(db *sql.DB) error
- func CreateEventTypesTable(db *sql.DB) error
- func CreateEventsTable(db *sql.DB) error
- func CreateInvitesTable(db *sql.DB) error
- func CreateMembershipTable(db *sql.DB) error
- func CreatePrevEventsTable(db *sql.DB) error
- func CreatePublishedTable(db *sql.DB) error
- func CreateRedactionsTable(db *sql.DB) error
- func CreateRoomAliasesTable(db *sql.DB) error
- func CreateRoomsTable(db *sql.DB) error
- func CreateStateBlockTable(db *sql.DB) error
- func CreateStateSnapshotTable(db *sql.DB) error
- func CreateUserRoomKeysTable(db *sql.DB) error
- func PrepareEventJSONTable(db *sql.DB) (tables.EventJSON, error)
- func PrepareEventStateKeysTable(db *sql.DB) (tables.EventStateKeys, error)
- func PrepareEventTypesTable(db *sql.DB) (tables.EventTypes, error)
- func PrepareEventsTable(db *sql.DB) (tables.Events, error)
- func PrepareInvitesTable(db *sql.DB) (tables.Invites, error)
- func PrepareMembershipTable(db *sql.DB) (tables.Membership, error)
- func PreparePrevEventsTable(db *sql.DB) (tables.PreviousEvents, error)
- func PreparePublishedTable(db *sql.DB) (tables.Published, error)
- func PreparePurgeStatements(db *sql.DB, stateSnapshot *stateSnapshotStatements) (*purgeStatements, error)
- func PrepareRedactionsTable(db *sql.DB) (tables.Redactions, error)
- func PrepareRoomAliasesTable(db *sql.DB) (tables.RoomAliases, error)
- func PrepareRoomsTable(db *sql.DB) (tables.Rooms, error)
- func PrepareStateBlockTable(db *sql.DB) (*stateBlockStatements, error)
- func PrepareStateSnapshotTable(db *sql.DB) (*stateSnapshotStatements, error)
- func PrepareUserRoomKeysTable(db *sql.DB) (tables.UserRoomKeys, error)
- type Database
- func (d *Database) GetRoomUpdater(ctx context.Context, roomInfo *types.RoomInfo) (*shared.RoomUpdater, error)
- func (d *Database) MembershipUpdater(ctx context.Context, roomID, targetUserID string, targetLocal bool, ...) (*shared.MembershipUpdater, error)
- func (d *Database) SupportsConcurrentRoomInputs() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateEventJSONTable ¶ added in v0.8.3
func CreateEventStateKeysTable ¶ added in v0.8.3
func CreateEventTypesTable ¶ added in v0.8.3
func CreateEventsTable ¶ added in v0.8.3
func CreateInvitesTable ¶ added in v0.8.5
func CreateMembershipTable ¶ added in v0.8.5
func CreatePrevEventsTable ¶ added in v0.8.5
func CreatePublishedTable ¶ added in v0.8.5
func CreateRedactionsTable ¶ added in v0.8.5
func CreateRoomAliasesTable ¶ added in v0.8.6
func CreateRoomsTable ¶ added in v0.8.6
func CreateStateBlockTable ¶ added in v0.8.6
func CreateStateSnapshotTable ¶ added in v0.8.6
func CreateUserRoomKeysTable ¶ added in v0.13.0
func PrepareEventJSONTable ¶ added in v0.8.3
func PrepareEventStateKeysTable ¶ added in v0.8.3
func PrepareEventStateKeysTable(db *sql.DB) (tables.EventStateKeys, error)
func PrepareEventTypesTable ¶ added in v0.8.3
func PrepareEventTypesTable(db *sql.DB) (tables.EventTypes, error)
func PrepareEventsTable ¶ added in v0.8.3
func PrepareInvitesTable ¶ added in v0.8.5
func PrepareMembershipTable ¶ added in v0.8.5
func PrepareMembershipTable(db *sql.DB) (tables.Membership, error)
func PreparePrevEventsTable ¶ added in v0.8.5
func PreparePrevEventsTable(db *sql.DB) (tables.PreviousEvents, error)
func PreparePublishedTable ¶ added in v0.8.5
func PreparePurgeStatements ¶ added in v0.11.0
func PrepareRedactionsTable ¶ added in v0.8.5
func PrepareRedactionsTable(db *sql.DB) (tables.Redactions, error)
func PrepareRoomAliasesTable ¶ added in v0.8.6
func PrepareRoomAliasesTable(db *sql.DB) (tables.RoomAliases, error)
func PrepareStateBlockTable ¶ added in v0.8.6
func PrepareStateSnapshotTable ¶ added in v0.8.6
func PrepareUserRoomKeysTable ¶ added in v0.13.0
func PrepareUserRoomKeysTable(db *sql.DB) (tables.UserRoomKeys, error)
Types ¶
type Database ¶
A Database is used to store room events and stream offsets.
func Open ¶
func Open(ctx context.Context, conMan *sqlutil.Connections, dbProperties *config.DatabaseOptions, cache caching.RoomServerCaches) (*Database, error)
Open a sqlite database.
func (*Database) GetRoomUpdater ¶ added in v0.6.1
func (*Database) MembershipUpdater ¶
func (d *Database) MembershipUpdater( ctx context.Context, roomID, targetUserID string, targetLocal bool, roomVersion gomatrixserverlib.RoomVersion, ) (*shared.MembershipUpdater, error)
func (*Database) SupportsConcurrentRoomInputs ¶
Source Files ¶
- event_json_table.go
- event_state_keys_table.go
- event_types_table.go
- events_table.go
- invite_table.go
- membership_table.go
- previous_events_table.go
- published_table.go
- purge_statements.go
- redactions_table.go
- room_aliases_table.go
- rooms_table.go
- state_block_table.go
- state_snapshot_table.go
- storage.go
- user_room_keys_table.go
Click to show internal directories.
Click to hide internal directories.