sqlite

package
v0.0.0-...-9828505 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQLite

type SQLite struct{}

SQLite represents the client for file table

func NewSQLiteFileRepository

func NewSQLiteFileRepository() *SQLite

NewSQLiteFileRepository creates a new instance of SQLite

func (SQLite) Create

func (s SQLite) Create(db utildb.DB, file secretify.File) (secretify.File, error)

Create creates a new file on database

func (SQLite) Delete

func (s SQLite) Delete(db utildb.DB, identifier string) error

Delete deletes the file from the database

func (SQLite) DeleteExpired

func (s SQLite) DeleteExpired(db utildb.DB) error

DeleteExpired deletes all expired files

func (SQLite) ViewByIdentifier

func (s SQLite) ViewByIdentifier(db utildb.DB, identifier string) (secretify.File, error)

ViewByIdentifier returns a single file by identifier

Jump to

Keyboard shortcuts

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