sqlitestore

package
v0.0.0-...-ae1d368 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package sqlitestore is the SQLite implementation of the Store type.

Note that we will use a mutex to ensure consistency when using SQLite 3. You can compile SQLite 3 so that it is multithread safe, and you might be tempted to try to do that, but eventually you will find that this is more trouble than it is worth and change your mind. Besides, this implementation of Store actually benefits from lack of performance because it will make you think twice about your interaction with the persistence layer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(dbFile string, create bool) (*sqliteStore, error)

New creates a new Store backed by SQLite 3. It will create any missing directories.

Types

This section is empty.

Jump to

Keyboard shortcuts

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