1
0
Fork 0
forked from forgejo/forgejo

Able to fork repo to individuals

This commit is contained in:
Unknwon 2014-10-19 01:35:24 -04:00
parent d7d167ac63
commit a342d58d7e
12 changed files with 305 additions and 210 deletions

View file

@ -5,6 +5,7 @@
package models
import (
"database/sql"
"fmt"
"os"
"path"
@ -17,9 +18,16 @@ import (
"github.com/gogits/gogs/modules/setting"
)
// Engine represents a xorm engine or session.
type Engine interface {
Delete(interface{}) (int64, error)
Exec(string, ...interface{}) (sql.Result, error)
Insert(...interface{}) (int64, error)
}
var (
x *xorm.Engine
tables []interface{}
x *xorm.Engine
tables []interface{}
HasEngine bool
DbCfg struct {