postgres

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2022 License: Apache-2.0 Imports: 20 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPostgresAccountDataTable

func NewPostgresAccountDataTable(db *sql.DB) (tables.AccountData, error)

func NewPostgresBackwardsExtremitiesTable

func NewPostgresBackwardsExtremitiesTable(db *sql.DB) (tables.BackwardsExtremities, error)

func NewPostgresCurrentRoomStateTable

func NewPostgresCurrentRoomStateTable(db *sql.DB) (tables.CurrentRoomState, error)

func NewPostgresEventsTable

func NewPostgresEventsTable(db *sql.DB) (tables.Events, error)

func NewPostgresFilterTable

func NewPostgresFilterTable(db *sql.DB) (tables.Filter, error)

func NewPostgresIgnoresTable added in v0.8.0

func NewPostgresIgnoresTable(db *sql.DB) (tables.Ignores, error)

func NewPostgresInvitesTable

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

func NewPostgresMembershipsTable added in v0.3.7

func NewPostgresMembershipsTable(db *sql.DB) (tables.Memberships, error)

func NewPostgresNotificationDataTable added in v0.6.5

func NewPostgresNotificationDataTable(db *sql.DB) (tables.NotificationData, error)

func NewPostgresPeeksTable

func NewPostgresPeeksTable(db *sql.DB) (tables.Peeks, error)

func NewPostgresPresenceTable added in v0.8.0

func NewPostgresPresenceTable(db *sql.DB) (*presenceStatements, error)

func NewPostgresReceiptsTable added in v0.3.0

func NewPostgresReceiptsTable(db *sql.DB) (tables.Receipts, error)

func NewPostgresSendToDeviceTable

func NewPostgresSendToDeviceTable(db *sql.DB) (tables.SendToDevice, error)

func NewPostgresTopologyTable

func NewPostgresTopologyTable(db *sql.DB) (tables.Topology, error)

Types

type SyncServerDatasource

type SyncServerDatasource struct {
	shared.Database
	// contains filtered or unexported fields
}

SyncServerDatasource represents a sync server datasource which manages both the database for PDUs and caches for EDUs.

func NewDatabase

func NewDatabase(base *base.BaseDendrite, dbProperties *config.DatabaseOptions) (*SyncServerDatasource, error)

NewDatabase creates a new sync server database

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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