MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / Storage

Struct Storage

storage/storage.go:116–123  ·  view source on GitHub ↗

Storage represents a underlying storage implementation based on sqlite3.

Source from the content-addressed store, hash-verified

114
115// Storage represents a underlying storage implementation based on sqlite3.
116type Storage struct {
117 sync.Mutex
118 dsn string
119 db *sql.DB
120 tx *sql.Tx // Current tx
121 id TxID
122 queries []Query
123}
124
125// New returns a new storage connected by dsn.
126func New(dsn string) (st *Storage, err error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected