Documentation ¶
Overview ¶
http://gobook.io/read/github.com/go-xorm/manual-en-US/
Setup optional env JSON value:
goboot_postgres={ "name": "Your_Postgres_Service_Name", "connection": { "max_open": 0, "max_idle": 0 }, "orm": { "enable": false, "show_sql": false } }
See the following for connection settings: https://golang.org/pkg/database/sql/#DB.SetMaxIdleConns https://golang.org/pkg/database/sql/#SetMaxOpenConns
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitDB ¶
func InitDB(env PostgresEnv) *sql.DB
func InitORM ¶
func InitORM(env PostgresEnv) *xorm.Engine
Types ¶
type PostgresEnv ¶
Click to show internal directories.
Click to hide internal directories.