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 ¶
InsertIntoNotebookTable() - Inserts the passed title, notes, created_on in the table NoteBooks
func UpdateNotesWithGivenTitle ¶
UpdateNotesWithGivenTitle() - Updates a row/notes with given newNotes text based on selected title
Types ¶
This section is empty.