sqlite

package
v0.0.0-...-020e20f Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package sqlite introduces a sqlite3 implementation of the xenomint/interfaces.Storage interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQLite3

type SQLite3 struct {
	// contains filtered or unexported fields
}

SQLite3 is the sqlite3 implementation of the xenomint/interfaces.Storage interface.

func NewSqlite

func NewSqlite(filename string) (s *SQLite3, err error)

NewSqlite returns a new SQLite3 instance attached to filename.

func (*SQLite3) Close

func (s *SQLite3) Close() (err error)

Close implements Close method of the xenomint/interfaces.Storage interface.

func (*SQLite3) DirtyReader

func (s *SQLite3) DirtyReader() *sql.DB

DirtyReader implements DirtyReader method of the xenomint/interfaces.Storage interface.

func (*SQLite3) Reader

func (s *SQLite3) Reader() *sql.DB

Reader implements Reader method of the xenomint/interfaces.Storage interface.

func (*SQLite3) Writer

func (s *SQLite3) Writer() *sql.DB

Writer implements Writer method of the xenomint/interfaces.Storage interface.

Jump to

Keyboard shortcuts

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