postgres

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPostgresBlacklistTable

func NewPostgresBlacklistTable(db *sql.DB) (s *blacklistStatements, err error)

func NewPostgresJoinedHostsTable

func NewPostgresJoinedHostsTable(db *sql.DB) (s *joinedHostsStatements, err error)

func NewPostgresQueueEDUsTable

func NewPostgresQueueEDUsTable(db *sql.DB) (s *queueEDUsStatements, err error)

func NewPostgresQueueJSONTable

func NewPostgresQueueJSONTable(db *sql.DB) (s *queueJSONStatements, err error)

func NewPostgresQueuePDUsTable

func NewPostgresQueuePDUsTable(db *sql.DB) (s *queuePDUsStatements, err error)

func NewPostgresRoomsTable

func NewPostgresRoomsTable(db *sql.DB) (s *roomStatements, err error)

Types

type Database

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

Database stores information needed by the federation sender

func NewDatabase

func NewDatabase(dbProperties *config.DatabaseOptions) (*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