package
Version:
v0.0.0-...-cc73b8b
Opens a new window with list of versions in this module.
Published: Feb 7, 2019
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func SetMainStorage(storage *Storage)
SetMainStorage will a single-instance storage globally
Storage is a struct that holds important
database info like the connection pool and resource in use used
DB is a singleton instance of the Storage
New will generate a Storage containing a
pool of connections for a given resource type
Delete will make a DELETE query to the database given a resource and an id
Load will make a SELECT query to a database given a resource an id
Save will make a INSERT query to the database given a resource and an id
Source Files
¶
Click to show internal directories.
Click to hide internal directories.