postgres

package
v0.0.0-...-3ba1864 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePublishedTable

func CreatePublishedTable(db *sql.DB) error

func CreateRedactionsTable

func CreateRedactionsTable(db *sql.DB) error

func CreateRoomAliasesTable

func CreateRoomAliasesTable(db *sql.DB) error

func CreateRoomsTable

func CreateRoomsTable(db *sql.DB) error

func CreateStateBlockTable

func CreateStateBlockTable(db *sql.DB) error

func CreateStateSnapshotTable

func CreateStateSnapshotTable(db *sql.DB) error

func PreparePublishedTable

func PreparePublishedTable(db *sql.DB) (tables.Published, error)

func PrepareRedactionsTable

func PrepareRedactionsTable(db *sql.DB) (tables.Redactions, error)

func PrepareRoomAliasesTable

func PrepareRoomAliasesTable(db *sql.DB) (tables.RoomAliases, error)

func PrepareRoomsTable

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

func PrepareStateBlockTable

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

func PrepareStateSnapshotTable

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 postgres database.

Jump to

Keyboard shortcuts

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