github.com/sttk/sabi@v0.5.0/dax_aux_for_test.go (about) 1 package sabi 2 3 func ClearGlobalDaxSrcs() { 4 isGlobalDaxSrcsFixed = false 5 globalDaxSrcMap = make(map[string]DaxSrc) 6 } 7 8 func IsGlobalDaxSrcsFixed() bool { 9 return isGlobalDaxSrcsFixed 10 } 11 12 func GlobalDaxSrcMap() map[string]DaxSrc { 13 return globalDaxSrcMap 14 } 15 16 func IsLocalDaxSrcsFixed(base DaxBase) bool { 17 return base.(*daxBaseImpl).isLocalDaxSrcsFixed 18 } 19 20 func LocalDaxSrcMap(base DaxBase) map[string]DaxSrc { 21 return base.(*daxBaseImpl).localDaxSrcMap 22 } 23 24 func DaxConnMap(base DaxBase) map[string]DaxConn { 25 return base.(*daxBaseImpl).daxConnMap 26 } 27 28 func Begin(base DaxBase) { 29 base.begin() 30 } 31 32 func Commit(base DaxBase) Err { 33 return base.commit() 34 } 35 36 func Rollback(base DaxBase) { 37 base.rollback() 38 } 39 40 func End(base DaxBase) { 41 base.end() 42 }