package
module
Version:
v1.3.0
Opens a new window with list of versions in this module.
Published: Feb 20, 2025
License: GPL-3.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
gosqlite3

gosqlite3 provides basic CRUD functionalities and a predefined users tables that contains below columns
| Column name |
Type |
| Id |
INTEGER PRIMARY KEY AUTOINCREMENT |
| username |
TEXT NOT NULL UNIQUE |
| password |
TEXT |
Getting started with gosqlite3 package [Critical step]
- Create "db/config" folder under parent program folder .
- Create "config.yml" file inside config dir .
- Add below config in the "config.yml" file . Please note that the file can be updated based on users requirement .
dbConfig:
path: "./db" # Path where the db will be created and stored
name: "mydb.db" # Name of the db

Documentation
¶
type Config struct {
DatabaseConfig Database `yaml:"dbConfig"`
}
Struct to hold the full YAML config
type Database struct {
DbPath string `yaml:"path"`
DbName string `yaml:"name"`
}
Global vars will be used for storing config details
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.