sqlite3

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2025 License: AGPL-3.0 Imports: 22 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

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

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

func NewSqliteInvitesTable

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

func NewSqliteMembershipsTable

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

func NewSqliteNotificationDataTable

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

func NewSqlitePeeksTable

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

func NewSqlitePresenceTable

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

func NewSqliteReceiptsTable

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

func NewSqliteRelationsTable

func NewSqliteRelationsTable(db *sql.DB, streamID *StreamIDStatements) (tables.Relations, error)

func NewSqliteSendToDeviceTable

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

func NewSqliteTopologyTable

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

Types

type FilterOrder

type FilterOrder int

type StreamIDStatements

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

func (*StreamIDStatements) Prepare

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(ctx context.Context, conMan *sqlutil.Connections, dbProperties *config.DatabaseOptions) (*SyncServerDatasource, error)

NewDatabase creates a new sync server database nolint: gocyclo

func (*SyncServerDatasource) NewDatabaseSnapshot

func (d *SyncServerDatasource) NewDatabaseSnapshot(ctx context.Context) (*shared.DatabaseTransaction, error)

func (*SyncServerDatasource) NewDatabaseTransaction

func (d *SyncServerDatasource) NewDatabaseTransaction(ctx context.Context) (*shared.DatabaseTransaction, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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