database

package
v0.0.0-...-24cf644 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 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 DB

type DB struct {
	*sql.DB
}

func NewDB

func NewDB() (*DB, error)

func (*DB) CreateCli

func (db *DB) CreateCli(cli models.Cli) error

func (*DB) DeleteAllRecords

func (db *DB) DeleteAllRecords() error

func (*DB) DeleteRecordById

func (db *DB) DeleteRecordById(id int) error

func (*DB) GetEntriesContainingText

func (db *DB) GetEntriesContainingText(text string) ([]models.Cli, error)

func (*DB) HasRecords

func (db *DB) HasRecords() (bool, error)

func (*DB) UpdateCli

func (db *DB) UpdateCli(cli models.Cli) error

Jump to

Keyboard shortcuts

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