Versions in this module Expand all Collapse all v5 v5.0.0 Jul 16, 2024 Changes in this version + type DB struct + func NewDB(ctx context.Context, serverCert *shared.CertInfo, ...) *DB + func (db *DB) Accept(conn net.Conn) + func (db *DB) Bootstrap(extensions extensions.Extensions, project string, addr api.URL, ...) error + func (db *DB) Cluster(ctx context.Context, client *dqliteClient.Client) ([]dqliteClient.NodeInfo, error) + func (db *DB) IsOpen() bool + func (db *DB) Join(extensions extensions.Extensions, project string, addr api.URL, ...) error + func (db *DB) Leader(ctx context.Context) (*dqliteClient.Client, error) + func (db *DB) NotifyUpgraded() + func (db *DB) Open(ext extensions.Extensions, bootstrap bool, project string) error + func (db *DB) Schema() *update.SchemaUpdate + func (db *DB) SetSchema(schemaExtensions []schema.Update) + func (db *DB) StartWithCluster(extensions extensions.Extensions, project string, addr api.URL, ...) error + func (db *DB) Stop() error + func (db *DB) Transaction(outerCtx context.Context, f func(context.Context, *sql.Tx) error) error + func (db *DB) Update() error Other modules containing this package github.com/masnax/microclustertest github.com/masnax/microclustertest/v2 github.com/masnax/microclustertest/v3