vars.go 148 B

12345678910111213141516
  1. package db
  2. import (
  3. "sync"
  4. "github.com/jmoiron/sqlx"
  5. )
  6. var (
  7. config Config
  8. db *sqlx.DB
  9. //err error
  10. once sync.Once
  11. defaultDB *DB
  12. )