Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSQLStore ¶
func NewSQLStore(connStr, tableName string, maxConcurrency int) (persistence.Persistence, error)
NewSQLStore initializes a new SQLStore with the specified table name.
Types ¶
type SQLStore ¶
type SQLStore struct {
// contains filtered or unexported fields
}
SQLStore represents a store backed by an SQL database.
func (*SQLStore) SaveAllToDisk ¶
SaveAllToDisk writes all key-value pairs to the SQL database concurrently.
func (*SQLStore) SaveToDisk ¶
SaveToDisk writes a single key-value pair to the SQL database.
Click to show internal directories.
Click to hide internal directories.