sqlite

package
v0.0.0-...-1ca2d18 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: MIT Imports: 7 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 {
	DB *sql.DB
}

func New

func New(c config.Config) (*SQLite, error)

New returns a instance of SQLiteStore.

func (*SQLite) Close

func (s *SQLite) Close() error

func (*SQLite) Create

func (s *SQLite) Create(ctx context.Context, m paste.Module) error

Create inserts paste to sqlite store.

func (*SQLite) Get

func (s *SQLite) Get(ctx context.Context, address string) (paste.Module, error)

Get gets paste by its address from sqlite store.

Jump to

Keyboard shortcuts

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