db

package
v0.0.0-...-ae2eaf7 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear

func Clear(path string)

Clear - delete all records from table

func Create

func Create(path string)

Create - create table if not exists

func Delete

func Delete(path string, id int)

Delete - delete one record

func Insert

func Insert(path string, rec models.Record)

Insert - insert one rec into DB

func Migrate

func Migrate(path string)

Migrate - add column to table

func Select

func Select(path string) []models.Record

Select - select all from DB

Types

This section is empty.

Jump to

Keyboard shortcuts

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