Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Connection Connection
Table string
Reset bool
GCInterval time.Duration
}
Config defines the config for storage
type Connection ¶
Connection defines the interface for different database connection types
type EmbeddedReplica ¶
type EmbeddedReplica struct {
Database string
PrimaryURL string
AuthToken string
EncryptionKey string
SyncInterval time.Duration
}
EmbeddedReplica represents a Turso embedded replica connection
type Local ¶
type Local struct {
Database string
}
Local represents a local LibSQL database connection
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage interface implementation
func (*Storage) Close ¶
Close closes the storage, stopping the GC and closing the database connection
Click to show internal directories.
Click to hide internal directories.