sqlite

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage struct {
	DBConfig database.Config
	// contains filtered or unexported fields
}

func Open

func Open(dbDir, dbName string) (*Storage, error)

Open returns new storage implementaion that uses inmemory relation database(sqlite) as a storage.

The db is stored in passed dbDir and has dbName. If the db exists, then it is used. Otherwise new one is created.

func (*Storage) Close

func (s *Storage) Close() error

func (*Storage) GetCardRepo

func (s *Storage) GetCardRepo() storage.CardRepo

func (*Storage) GetDeckRepo

func (s *Storage) GetDeckRepo() storage.DeckRepo

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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