database

package
v0.0.0-...-1556139 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(path string) *sql.DB

Open create a new sqlite file

func PutItem

func PutItem(db *sql.DB, id string, body []byte)

PutItem puts item in database

Types

type Item

type Item struct {
	ID   string `json:"id"`
	Body []byte `json:"body"`
}

Item is a model for Ignore

func GetItem

func GetItem(db *sql.DB, id string) Item

GetItem returns item from database

Jump to

Keyboard shortcuts

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