sqlite

package
v0.0.0-...-96ba25f Latest Latest
Warning

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

Go to latest
Published: May 28, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StdDB = New()

Functions

This section is empty.

Types

type DB

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

func New

func New() *DB

func (*DB) AddAccount

func (db *DB) AddAccount(acc ds.Account) error

func (*DB) AddAttachment

func (db *DB) AddAttachment(cipherId string, attachment ds.Attachment) (ds.Cipher, error)

func (*DB) AddCipher

func (db *DB) AddCipher(cipher ds.Cipher, accId string) (ds.Cipher, error)

func (*DB) AddFolder

func (db *DB) AddFolder(accountId, name string) (ds.Folder, error)

func (*DB) Close

func (db *DB) Close()

func (*DB) DeleteAttachment

func (db *DB) DeleteAttachment(cipherId, attachmentId string) (url string, err error)

func (*DB) DeleteCipher

func (db *DB) DeleteCipher(accId, cipherId string) error

func (*DB) DeleteFolder

func (db *DB) DeleteFolder(folderUUID string) error

func (*DB) GetAccount

func (db *DB) GetAccount(s string) (ds.Account, error)

func (*DB) GetAttachment

func (db *DB) GetAttachment(cipherId, attachmentId string) (ds.Attachment, error)

func (*DB) GetCiphers

func (db *DB) GetCiphers(accId string) ([]ds.Cipher, error)

func (*DB) GetFolders

func (db *DB) GetFolders(accId string) ([]ds.Folder, error)

func (*DB) Init

func (db *DB) Init() error

func (*DB) Open

func (db *DB) Open() error

func (*DB) RenameFolder

func (db *DB) RenameFolder(name, folderUUID string) (ds.Folder, error)

func (*DB) SaveCSV

func (db *DB) SaveCSV(csvs []ds.CSV, email string) error

func (*DB) SetDir

func (db *DB) SetDir(d string)

func (*DB) UpdateAccount

func (db *DB) UpdateAccount(acc ds.Account) error

func (*DB) UpdateCipher

func (db *DB) UpdateCipher(cipher ds.Cipher, accId string) (ds.Cipher, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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