postgres

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPostgresRelayQueueJSONTable

func NewPostgresRelayQueueJSONTable(db *sql.DB) (s *relayQueueJSONStatements, err error)

func NewPostgresRelayQueueTable

func NewPostgresRelayQueueTable(
	db *sql.DB,
) (s *relayQueueStatements, err error)

Types

type Database

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

Database stores information needed by the relayapi

func NewDatabase

func NewDatabase(
	conMan *sqlutil.Connections,
	dbProperties *config.DatabaseOptions,
	cache caching.FederationCache,
	isLocalServerName func(spec.ServerName) bool,
) (*Database, error)

NewDatabase opens a new database

Jump to

Keyboard shortcuts

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