postgres

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2025 License: Apache-2.0 Imports: 21 Imported by: ? modules, 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(_ context.Context, cm sqlutil.ConnectionManager) (tables.AccountData, error)

NewPostgresAccountDataTable creates a new postgres account data table

func NewPostgresBackwardsExtremitiesTable

func NewPostgresBackwardsExtremitiesTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.BackwardsExtremities, error)

NewPostgresBackwardsExtremitiesTable creates a new backward extremities table

func NewPostgresCurrentRoomStateTable

func NewPostgresCurrentRoomStateTable(_ context.Context, cm sqlutil.ConnectionManager) (tables.CurrentRoomState, error)

NewPostgresCurrentRoomStateTable creates a new CurrentRoomState table

func NewPostgresEventsTable

func NewPostgresEventsTable(_ context.Context, cm sqlutil.ConnectionManager) (tables.Events, error)

NewPostgresEventsTable creates a new events table

func NewPostgresFilterTable

func NewPostgresFilterTable(_ context.Context, cm sqlutil.ConnectionManager) (tables.Filter, error)

NewPostgresFilterTable creates a new filter table

func NewPostgresIgnoresTable

func NewPostgresIgnoresTable(_ context.Context, cm sqlutil.ConnectionManager) (tables.Ignores, error)

NewPostgresIgnoresTable creates a new ignores table

func NewPostgresInvitesTable

func NewPostgresInvitesTable(_ context.Context, cm sqlutil.ConnectionManager) (tables.Invites, error)

NewPostgresInvitesTable creates a new invites table

func NewPostgresMembershipsTable

func NewPostgresMembershipsTable(_ context.Context, cm sqlutil.ConnectionManager) (tables.Memberships, error)

NewPostgresMembershipsTable creates a new memberships table

func NewPostgresNotificationDataTable

func NewPostgresNotificationDataTable(_ context.Context, cm sqlutil.ConnectionManager) (tables.NotificationData, error)

NewPostgresNotificationDataTable creates a new notification data table

func NewPostgresPeeksTable

func NewPostgresPeeksTable(_ context.Context, cm sqlutil.ConnectionManager) (tables.Peeks, error)

NewPostgresPeeksTable creates a new peeks table

func NewPostgresPresenceTable

func NewPostgresPresenceTable(_ context.Context, cm sqlutil.ConnectionManager) (tables.Presence, error)

NewPostgresPresenceTable creates a new presence table

func NewPostgresReceiptsTable

func NewPostgresReceiptsTable(_ context.Context, cm sqlutil.ConnectionManager) (tables.Receipts, error)

NewPostgresReceiptsTable creates a new receipts table

func NewPostgresRelationsTable

func NewPostgresRelationsTable(_ context.Context, cm sqlutil.ConnectionManager) (tables.Relations, error)

NewPostgresRelationsTable creates a new relations table

func NewPostgresSendToDeviceTable

func NewPostgresSendToDeviceTable(_ context.Context, cm sqlutil.ConnectionManager) (tables.SendToDevice, error)

NewPostgresSendToDeviceTable creates a new send-to-device table

func NewPostgresTopologyTable

func NewPostgresTopologyTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.Topology, error)

NewPostgresTopologyTable creates a new topology table

Types

type SyncServerDatasource

type SyncServerDatasource struct {
	shared.Database
}

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

func NewDatabase

NewDatabase creates a new sync server database

Jump to

Keyboard shortcuts

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