|
@@ -23,11 +23,11 @@ import (
|
|
|
// Session keep a pointer to sql.DB and provides all execution of all
|
|
// Session keep a pointer to sql.DB and provides all execution of all
|
|
|
// kind of database operations.
|
|
// kind of database operations.
|
|
|
type Session struct {
|
|
type Session struct {
|
|
|
- db *core.DB
|
|
|
|
|
- Engine *Engine
|
|
|
|
|
- Tx *core.Tx
|
|
|
|
|
- Statement Statement
|
|
|
|
|
-
|
|
|
|
|
|
|
+ db *core.DB
|
|
|
|
|
+ Engine *Engine
|
|
|
|
|
+ Tx *core.Tx
|
|
|
|
|
+ Statement Statement
|
|
|
|
|
+ currentTransaction *Transaction
|
|
|
IsAutoCommit bool
|
|
IsAutoCommit bool
|
|
|
IsCommitedOrRollbacked bool
|
|
IsCommitedOrRollbacked bool
|
|
|
IsSqlFuc bool
|
|
IsSqlFuc bool
|