//
pkg.gl
Category
github.com/ohlcware/pkg
database
package
0.0.4
Repository:
https://github.com/ohlcware/pkg.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
6
Dependents
0
Files
114 SLOC
#
README
Openware package for database interactions
#
Functions
Connect
Connect to database MySQL/SQLite using gorm gorm (GO ORM for SQL): http://gorm.io/docs/connecting_to_the_database.html TODO Switch to Config struct.
Create
Create the database MySQL/SQLite by name with existing connection.
Drop
Drop the database MySQL/SQLite with given db context.
#
Structs
Config
Config for database connection TODO Set all default values.
Timestamps
Timestamps adding time at the end of models.