//
pkg.gl
Category
github.com/albertwidi/go-project-example
internal
pkg
sqldb
package
0.0.0-20200416044943-d22e7c36ff52
Repository:
https://github.com/albertwidi/go-project-example.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
8
Dependents
6
Files
164 SLOC
#
Functions
Connect
Connect to a new database.
Wrap
Wrap leader and follower sqlx object to one DB object this is for easier usage, so user doesn't have to specify leader or follower all exec is going to leader, all query is going to follower.
#
Structs
ConnectOptions
ConnectOptions to list options when connect to the db.
DB
DB struct to hold all database connections.