sqlite3

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 License: Apache-2.0 Imports: 19 Imported by: 4

Documentation

Index

Constants

View Source
const (
	FilterOrderNone = iota
	FilterOrderAsc
	FilterOrderDesc
)

Variables

This section is empty.

Functions

func NewSqliteAccountDataTable

func NewSqliteAccountDataTable(db *sql.DB, streamID *StreamIDStatements) (tables.AccountData, error)

func NewSqliteBackwardsExtremitiesTable

func NewSqliteBackwardsExtremitiesTable(db *sql.DB) (tables.BackwardsExtremities, error)

func NewSqliteCurrentRoomStateTable

func NewSqliteCurrentRoomStateTable(db *sql.DB, streamID *StreamIDStatements) (tables.CurrentRoomState, error)

func NewSqliteEventsTable

func NewSqliteEventsTable(db *sql.DB, streamID *StreamIDStatements) (tables.Events, error)

func NewSqliteFilterTable

func NewSqliteFilterTable(db *sql.DB) (tables.Filter, error)

func NewSqliteIgnoresTable added in v0.8.0

func NewSqliteIgnoresTable(db *sql.DB) (tables.Ignores, error)

func NewSqliteInvitesTable

func NewSqliteInvitesTable(db *sql.DB, streamID *StreamIDStatements) (tables.Invites, error)

func NewSqliteMembershipsTable added in v0.3.7

func NewSqliteMembershipsTable(db *sql.DB) (tables.Memberships, error)

func NewSqliteNotificationDataTable added in v0.6.5

func NewSqliteNotificationDataTable(db *sql.DB) (tables.NotificationData, error)

func NewSqlitePeeksTable

func NewSqlitePeeksTable(db *sql.DB, streamID *StreamIDStatements) (tables.Peeks, error)

func NewSqlitePresenceTable added in v0.8.0

func NewSqlitePresenceTable(db *sql.DB, streamID *StreamIDStatements) (*presenceStatements, error)

func NewSqliteReceiptsTable added in v0.3.0

func NewSqliteReceiptsTable(db *sql.DB, streamID *StreamIDStatements) (tables.Receipts, error)

func NewSqliteSendToDeviceTable

func NewSqliteSendToDeviceTable(db *sql.DB) (tables.SendToDevice, error)

func NewSqliteTopologyTable

func NewSqliteTopologyTable(db *sql.DB) (tables.Topology, error)

Types

type FilterOrder added in v0.3.7

type FilterOrder int

type StreamIDStatements added in v0.8.2

type StreamIDStatements struct {
	// contains filtered or unexported fields
}

func (*StreamIDStatements) Prepare added in v0.8.2

func (s *StreamIDStatements) Prepare(db *sql.DB) (err error)

type SyncServerDatasource

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

SyncServerDatasource represents a sync server datasource which manages both the database for PDUs and caches for EDUs.

func NewDatabase

func NewDatabase(base *base.BaseDendrite, dbProperties *config.DatabaseOptions) (*SyncServerDatasource, error)

NewDatabase creates a new sync server database nolint: gocyclo

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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