Documentation ¶
Index ¶
- Variables
- func CloseOracleConnection(dbConnection *sql.DB) error
- func ConnectToMongo(host string) error
- func ConnectToOracle(connectionString string) (*sql.DB, error)
- func GetDB(session *mgo.Session, db string) *mgo.Database
- func GetSession() *mgo.Session
- func GetSessionAndDB(db string) (*mgo.Session, *mgo.Database)
- func InitDatabaseConnection() error
- func PageFromTo(page int, page_length int, arrayLen int) (int, int)
- func Query(q interface{}) error
- type MongoPool
Constants ¶
This section is empty.
Variables ¶
View Source
var IsConnectionDone = false
View Source
var MONGO_DB string
View Source
var MONGO_HOST string
View Source
var MONGO_PORT string
View Source
var ORACLE_CONNECTION_STRING string
View Source
var SD_TYPE = "file"
Functions ¶
func CloseOracleConnection ¶
func ConnectToMongo ¶
func GetSession ¶
func GetSession() *mgo.Session
func GetSessionAndDB ¶
func GetSessionAndDB(db string) (*mgo.Session, *mgo.Database)
func InitDatabaseConnection ¶
func InitDatabaseConnection() error
Types ¶
Click to show internal directories.
Click to hide internal directories.