mirror of
https://github.com/documize/community.git
synced 2025-07-21 06:09:42 +02:00
Write HTTP methods, database connection limits, product entity
This commit is contained in:
parent
360d3d93e9
commit
7d38102eb6
10 changed files with 870 additions and 588 deletions
|
@ -15,14 +15,15 @@ import (
|
|||
"fmt"
|
||||
"os"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/jmoiron/sqlx"
|
||||
|
||||
"github.com/documize/community/core/database"
|
||||
"github.com/documize/community/core/web"
|
||||
"github.com/documize/community/core/environment"
|
||||
"github.com/documize/community/core/log"
|
||||
"github.com/documize/community/core/utility"
|
||||
"github.com/documize/community/core/web"
|
||||
)
|
||||
|
||||
var connectionString string
|
||||
|
@ -59,6 +60,7 @@ func init() {
|
|||
|
||||
Db.SetMaxIdleConns(30)
|
||||
Db.SetMaxOpenConns(100)
|
||||
Db.SetConnMaxLifetime(time.Second * 14400)
|
||||
|
||||
err = Db.Ping()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue