postgres

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 License: AGPL-3.0 Imports: 23 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

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

func NewPostgresInvitesTable

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

func NewPostgresLocalEventHidesTable

func NewPostgresLocalEventHidesTable(db *sql.DB) (tables.LocalEventHides, error)

func NewPostgresMembershipsTable

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

func NewPostgresNotificationDataTable

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

func NewPostgresPeeksTable

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

func NewPostgresPresenceTable

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

func NewPostgresReceiptsTable

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

func NewPostgresRelationsTable

func NewPostgresRelationsTable(db *sql.DB) (tables.Relations, 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(ctx context.Context, cm *sqlutil.Connections, 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