database

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTable

func CreateTable(db *sql.DB)

func InitDB

func InitDB() *sql.DB

func StoreSubscribe

func StoreSubscribe(db *sql.DB, subscribe Subscibe)

func StoreSubscribes

func StoreSubscribes(db *sql.DB, subscribes []Subscibe)

Types

type Subscibe

type Subscibe struct {
	Id         string
	Subscribe1 string
	Subscribe2 string
	Next       string
}

func ReadSubscribeByID

func ReadSubscribeByID(db *sql.DB, id string) (Subscibe, error)

func ReadSubscribes

func ReadSubscribes(db *sql.DB) []Subscibe

Jump to

Keyboard shortcuts

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