data

package
v0.0.0-...-379a39a Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDatabase

func CreateDatabase() error

CreateDatabase() - Create a new database file called sqlite-database.db within the same project - We are actually mimicing the Database, we don't have server now.

func CreateTable

func CreateTable()

CreateTable() - Creates a NoteBooks(title primary key, notes, created_on) table in give sqlite-database.db file

func DeleteNotesWithGivenTitle

func DeleteNotesWithGivenTitle(title string)

DeleteNotesWithGivenTitle() - Deletes a row/notes with the selected title

func GetAllTitlesFromNoteBooksTable

func GetAllTitlesFromNoteBooksTable() []string

GetAllTitlesFromNoteBooksTable() - Returns all the titles in the given NoteBooks table

func InsertIntoNotebookTable

func InsertIntoNotebookTable(title string, notes string, created_on time.Time)

InsertIntoNotebookTable() - Inserts the passed title, notes, created_on in the table NoteBooks

func ShowNotes

func ShowNotes()

ShowNotes() - Show all the tuples/rows in the notebooks table

func UpdateNotesWithGivenTitle

func UpdateNotesWithGivenTitle(title string, newNotes string)

UpdateNotesWithGivenTitle() - Updates a row/notes with given newNotes text based on selected title

Types

This section is empty.

Jump to

Keyboard shortcuts

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