postgres

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: AGPL-3.0 Imports: 25 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 NewDatabase

func NewDatabase(ctx context.Context, conMan *sqlutil.Connections, dbProperties *config.DatabaseOptions, serverName spec.ServerName, bcryptCost int, openIDTokenLifetimeMS int64, loginTokenLifetime time.Duration, serverNoticesLocalpart string) (*shared.Database, error)

NewDatabase creates a new accounts and profiles database

func NewKeyDatabase

func NewKeyDatabase(conMan *sqlutil.Connections, dbProperties *config.DatabaseOptions) (*shared.KeyDatabase, error)

func NewPostgresAccountDataTable

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

func NewPostgresAccountsTable

func NewPostgresAccountsTable(db *sql.DB, serverName spec.ServerName) (tables.AccountsTable, error)

func NewPostgresCrossSigningKeysTable

func NewPostgresCrossSigningKeysTable(db *sql.DB) (tables.CrossSigningKeys, error)

func NewPostgresCrossSigningSigsTable

func NewPostgresCrossSigningSigsTable(db *sql.DB) (tables.CrossSigningSigs, error)

func NewPostgresDeviceKeysTable

func NewPostgresDeviceKeysTable(db *sql.DB) (tables.DeviceKeys, error)

func NewPostgresDevicesTable

func NewPostgresDevicesTable(db *sql.DB, serverName spec.ServerName) (tables.DevicesTable, error)

func NewPostgresFallbackKeysTable

func NewPostgresFallbackKeysTable(db *sql.DB) (tables.FallbackKeys, error)

func NewPostgresKeyBackupTable

func NewPostgresKeyBackupTable(db *sql.DB) (tables.KeyBackupTable, error)

func NewPostgresKeyBackupVersionTable

func NewPostgresKeyBackupVersionTable(db *sql.DB) (tables.KeyBackupVersionTable, error)

func NewPostgresKeyChangesTable

func NewPostgresKeyChangesTable(db *sql.DB) (tables.KeyChanges, error)

func NewPostgresLoginTokenTable

func NewPostgresLoginTokenTable(db *sql.DB) (tables.LoginTokenTable, error)

func NewPostgresNotificationTable

func NewPostgresNotificationTable(db *sql.DB) (tables.NotificationTable, error)

func NewPostgresOneTimeKeysTable

func NewPostgresOneTimeKeysTable(db *sql.DB) (tables.OneTimeKeys, error)

func NewPostgresOpenIDTable

func NewPostgresOpenIDTable(db *sql.DB, serverName spec.ServerName) (tables.OpenIDTable, error)

func NewPostgresProfilesTable

func NewPostgresProfilesTable(db *sql.DB, serverNoticesLocalpart string) (tables.ProfileTable, error)

func NewPostgresPusherTable

func NewPostgresPusherTable(db *sql.DB) (tables.PusherTable, error)

func NewPostgresRegistrationTokensTable

func NewPostgresRegistrationTokensTable(db *sql.DB) (tables.RegistrationTokensTable, error)

func NewPostgresStaleDeviceListsTable

func NewPostgresStaleDeviceListsTable(db *sql.DB) (tables.StaleDeviceLists, error)

func NewPostgresStatsTable

func NewPostgresStatsTable(db *sql.DB, serverName spec.ServerName) (tables.StatsTable, error)

func NewPostgresThreePIDTable

func NewPostgresThreePIDTable(db *sql.DB) (tables.ThreePIDTable, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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