sqlite3

package
v0.0.0-...-39c77f2 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: MIT Imports: 3 Imported by: 0

README

DB usage in golang

for sqlite3

gorm should be taken into consideration, but autoMigrate func should be fix

now use gorp instead.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RegisterModels map[string]interface{}

Register models used in Sqlite3 Key : table name Value : Struct of data

Functions

func GetDbMap

func GetDbMap(path string) (*gorp.DbMap, error)

func InitDb

func InitDb(dbPath string) error

This should not be called everytime start in production env

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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