Commit 365745bf authored by Akshay Bharambe's avatar Akshay Bharambe
Browse files

Add: Branch to AbstractBusinessLogicHolder

parent 9ab4b4f2
2 merge requests!220Release v2.0.0 alpha,!219Add: Support for branches
Showing with 5 additions and 0 deletions
......@@ -111,6 +111,7 @@ type AbstractBusinessLogicHolder struct {
TransactionEnable bool
DatabaseType string // database type for transaction begin(MYSQL,SQLSERVER etc.)
IgnoreStrictMode bool
Branch string // branch name provided in the header
TXN *sql.Tx // transaction for MySQL
SQLServerTXN *sql.Tx // Transaction for SQLServer
GraphDbTXN *dgo.Txn
......@@ -127,6 +128,10 @@ func SetGlobalConfig(configs map[string]GlobalConfigModel) {
})
}
func (ab *AbstractBusinessLogicHolder) SetBranch(branch string) {
ab.Branch = branch
}
// GetDataString will give you string
func (ab *AbstractBusinessLogicHolder) GetDataString(key string) (string, bool) {
//check in map
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment