sqlite3

package
v0.10.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateEventJSONTable added in v0.8.3

func CreateEventJSONTable(db *sql.DB) error

func CreateEventStateKeysTable added in v0.8.3

func CreateEventStateKeysTable(db *sql.DB) error

func CreateEventTypesTable added in v0.8.3

func CreateEventTypesTable(db *sql.DB) error

func CreateEventsTable added in v0.8.3

func CreateEventsTable(db *sql.DB) error

func CreateInvitesTable added in v0.8.5

func CreateInvitesTable(db *sql.DB) error

func CreateMembershipTable added in v0.8.5

func CreateMembershipTable(db *sql.DB) error

func CreatePrevEventsTable added in v0.8.5

func CreatePrevEventsTable(db *sql.DB) error

func CreatePublishedTable added in v0.8.5

func CreatePublishedTable(db *sql.DB) error

func CreateRedactionsTable added in v0.8.5

func CreateRedactionsTable(db *sql.DB) error

func CreateRoomAliasesTable added in v0.8.6

func CreateRoomAliasesTable(db *sql.DB) error

func CreateRoomsTable added in v0.8.6

func CreateRoomsTable(db *sql.DB) error

func CreateStateBlockTable added in v0.8.6

func CreateStateBlockTable(db *sql.DB) error

func CreateStateSnapshotTable added in v0.8.6

func CreateStateSnapshotTable(db *sql.DB) error

func PrepareEventJSONTable added in v0.8.3

func PrepareEventJSONTable(db *sql.DB) (tables.EventJSON, error)

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 PrepareEventsTable(db *sql.DB) (tables.Events, error)

func PrepareInvitesTable added in v0.8.5

func PrepareInvitesTable(db *sql.DB) (tables.Invites, error)

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 PreparePublishedTable(db *sql.DB) (tables.Published, error)

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 PrepareRoomsTable added in v0.8.6

func PrepareRoomsTable(db *sql.DB) (tables.Rooms, error)

func PrepareStateBlockTable added in v0.8.6

func PrepareStateBlockTable(db *sql.DB) (tables.StateBlock, error)

func PrepareStateSnapshotTable added in v0.8.6

func PrepareStateSnapshotTable(db *sql.DB) (tables.StateSnapshot, error)

Types

type Database

type Database struct {
	shared.Database
}

A Database is used to store room events and stream offsets.

func Open

func Open(base *base.BaseDendrite, dbProperties *config.DatabaseOptions, cache caching.RoomServerCaches) (*Database, error)

Open a sqlite database.

func (*Database) GetRoomUpdater added in v0.6.1

func (d *Database) GetRoomUpdater(
	ctx context.Context, roomInfo *types.RoomInfo,
) (*shared.RoomUpdater, error)

func (*Database) MembershipUpdater

func (d *Database) MembershipUpdater(
	ctx context.Context, roomID, targetUserID string,
	targetLocal bool, roomVersion gomatrixserverlib.RoomVersion,
) (*shared.MembershipUpdater, error)

func (*Database) SupportsConcurrentRoomInputs

func (d *Database) SupportsConcurrentRoomInputs() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL