database

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chat

type Chat interface {
	GetAllChats(user string) ([]*chat.Chat, error)
	SaveChat(user string, yakity *chat.Chat) (string, error)
}

type ChatBot

type ChatBot struct {
	SQL *sqlite.DB
}

func NewSQLiteDB

func NewSQLiteDB() (*ChatBot, error)

func (*ChatBot) CreateTable

func (db *ChatBot) CreateTable() error

func (*ChatBot) DeleteChat

func (db *ChatBot) DeleteChat(id int64) error

func (*ChatBot) GetAllChats

func (db *ChatBot) GetAllChats(user string) ([]*chat.Chat, error)

func (*ChatBot) SaveChat

func (db *ChatBot) SaveChat(chatEntry *chat.Chat) error

func (*ChatBot) UpdateChat

func (db *ChatBot) UpdateChat(chatEntry *chat.Chat) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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