postgres

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateEventJSONTable added in v0.8.3

func CreateEventJSONTable(db *sql.DB) error

func CreateEventStateKeysTable added in v0.8.3

func CreateEventStateKeysTable(db *sql.DB) error

func CreateEventTypesTable added in v0.8.3

func CreateEventTypesTable(db *sql.DB) error

func CreateEventsTable added in v0.8.3

func CreateEventsTable(db *sql.DB) error

func PrepareEventJSONTable added in v0.8.3

func PrepareEventJSONTable(db *sql.DB) (tables.EventJSON, error)

func PrepareEventStateKeysTable added in v0.8.3

func PrepareEventStateKeysTable(db *sql.DB) (tables.EventStateKeys, error)

func PrepareEventTypesTable added in v0.8.3

func PrepareEventTypesTable(db *sql.DB) (tables.EventTypes, error)

func PrepareEventsTable added in v0.8.3

func PrepareEventsTable(db *sql.DB) (tables.Events, error)

Types

type Database

type Database struct {
	shared.Database
}

A Database is used to store room events and stream offsets.

func Open

func Open(base *base.BaseDendrite, dbProperties *config.DatabaseOptions, cache caching.RoomServerCaches) (*Database, error)

Open a postgres database.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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