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: 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 NewDatabase

func NewDatabase(ctx context.Context, cm sqlutil.ConnectionManager, serverName spec.ServerName, bcryptCost int, openIDTokenLifetimeMS int64, loginTokenLifetime time.Duration, serverNoticesLocalpart string) (*shared.Database, error)

NewDatabase creates a new accounts and profiles database

func NewPostgresAccountDataTable

func NewPostgresAccountDataTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.AccountDataTable, error)

NewPostgresAccountDataTable creates a new account data table object.

func NewPostgresAccountsTable

func NewPostgresAccountsTable(ctx context.Context, cm sqlutil.ConnectionManager, serverName spec.ServerName) (tables.AccountsTable, error)

NewPostgresAccountsTable creates a new postgres accounts table.

func NewPostgresCrossSigningKeysTable

func NewPostgresCrossSigningKeysTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.CrossSigningKeys, error)

NewPostgresCrossSigningKeysTable creates a new postgres cross signing keys table.

func NewPostgresCrossSigningSigsTable

func NewPostgresCrossSigningSigsTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.CrossSigningSigs, error)

NewPostgresCrossSigningSigsTable creates a new postgres cross signing signatures table.

func NewPostgresDeviceKeysTable

func NewPostgresDeviceKeysTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.DeviceKeys, error)

NewPostgresDeviceKeysTable creates a new postgres device keys table

func NewPostgresDevicesTable

func NewPostgresDevicesTable(ctx context.Context, cm sqlutil.ConnectionManager, serverName spec.ServerName) (tables.DevicesTable, error)

NewPostgresDevicesTable creates a new devices table object.

func NewPostgresKeyBackupTable

func NewPostgresKeyBackupTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.KeyBackupTable, error)

NewPostgresKeyBackupTable creates a new postgres key backup table.

func NewPostgresKeyBackupVersionTable

func NewPostgresKeyBackupVersionTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.KeyBackupVersionTable, error)

NewPostgresKeyBackupVersionTable creates a new postgres key backup version table.

func NewPostgresKeyChangesTable

func NewPostgresKeyChangesTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.KeyChanges, error)

NewPostgresKeyChangesTable creates a new key changes table

func NewPostgresLoginTokenTable

func NewPostgresLoginTokenTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.LoginTokenTable, error)

NewPostgresLoginTokenTable creates a new postgres login token table.

func NewPostgresNotificationTable

func NewPostgresNotificationTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.NotificationTable, error)

NewPostgresNotificationTable creates a new postgres notification table

func NewPostgresOneTimeKeysTable

func NewPostgresOneTimeKeysTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.OneTimeKeys, error)

NewPostgresOneTimeKeysTable creates a new one-time keys table

func NewPostgresOpenIDTable

func NewPostgresOpenIDTable(ctx context.Context, cm sqlutil.ConnectionManager, serverName spec.ServerName) (tables.OpenIDTable, error)

NewPostgresOpenIDTable creates a new postgres openid table.

func NewPostgresProfilesTable

func NewPostgresProfilesTable(ctx context.Context, cm sqlutil.ConnectionManager, serverNoticesLocalpart string) (tables.ProfileTable, error)

NewPostgresProfilesTable creates a new profile table object.

func NewPostgresPusherTable

func NewPostgresPusherTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.PusherTable, error)

NewPostgresPusherTable creates a new postgres pusher table

func NewPostgresRegistrationTokensTable

func NewPostgresRegistrationTokensTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.RegistrationTokensTable, error)

NewPostgresRegistrationTokensTable creates a new postgres registration tokens table

func NewPostgresStaleDeviceListsTable

func NewPostgresStaleDeviceListsTable(_ context.Context, cm sqlutil.ConnectionManager) (tables.StaleDeviceLists, error)

NewPostgresStaleDeviceListsTable creates a new postgres stale device lists table.

func NewPostgresStatsTable

func NewPostgresStatsTable(ctx context.Context, cm sqlutil.ConnectionManager, serverName spec.ServerName) (tables.StatsTable, error)

func NewPostgresThreePIDTable

func NewPostgresThreePIDTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.ThreePIDTable, error)

NewPostgresThreePIDTable creates a new ThreePID table.

Types

This section is empty.

Jump to

Keyboard shortcuts

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