crash.software
Projects
Pull Requests
Issues
Builds
dolt
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
dolt
Files
🤬
Sign In
88ec14b1
ROOT
/
go
/
libraries
/
doltcore
/
sqle
/
dsess
/
session.go
Search
History
1417 lines
|
ISO-8859-1
|
41 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
batchMode
single
:
batchMode
Batched
ErrWorkingSetChanges
ErrSessionNotPeristable
ErrCurrentBranchDeleted
DoltSession
sql.Session
batchMode
:
batchMode
username
:
string
email
:
string
dbStates
:
map[string]*DatabaseSessionState
provider
:
DoltDatabaseProvider
tempTables
:
map[string][]sql.Table
globalsConf
:
config.ReadWriteConfig
branchController
:
*branch_control.Controller
mu
:
*sync.Mutex
validateErr
:
error
WithGlobals
(conf config.ReadWriteConfig)
:
*DoltSession
_
:
sql.Session
_
:
sql.PersistableSession
_
:
branch_control.Context
DefaultSession
(pro DoltDatabaseProvider)
:
*DoltSession
NewDoltSession
( ctx *sql.Context, sqlSess *sql.BaseSession, pro DoltDatabaseProvider, conf config.ReadWriteConfig, branchController *branch_control.Controller, dbs ...InitialDbState)
:
(*DoltSession, error)
DSessFromSess
(sess sql.Session)
:
*DoltSession
doCommitFunc
validatePersistableSysVar
(name string)
:
(sql.SystemVariable, interface{}, error)
getPersistedValue
(conf config.ReadableConfig, k string)
:
(interface{}, error)
setPersistedValue
(conf config.WritableConfig, key string, value interface{})
:
error
SystemVariablesInConfig
(conf config.ReadableConfig)
:
([]sql.SystemVariable, []string, error)
initMu
InitPersistedSystemVars
(dEnv *env.DoltEnv)
:
error
*DoltSession
Provider
()
:
DoltDatabaseProvider
EnableBatchedMode
()
lookupDbState
(ctx *sql.Context, dbName string)
:
(*DatabaseSessionState, bool, error)
LookupDbState
(ctx *sql.Context, dbName string)
:
(*DatabaseSessionState, bool, error)
GetDbStates
()
:
map[string]*DatabaseSessionState
Flush
(ctx *sql.Context, dbName string)
:
error
SetValidateErr
(err error)
ValidateSession
(ctx *sql.Context, dbName string)
:
error
StartTransaction
(ctx *sql.Context, dbName string, tCharacteristic sql.TransactionCharacteristic)
:
(sql.Transaction, error)
newWorkingSetForHead
(ctx *sql.Context, wsRef ref.WorkingSetRef, dbName string)
:
(*doltdb.WorkingSet, error)
CommitTransaction
(ctx *sql.Context, dbName string, tx sql.Transaction)
:
error
CommitWorkingSet
(ctx *sql.Context, dbName string, tx sql.Transaction)
:
error
DoltCommit
( ctx *sql.Context, dbName string, tx sql.Transaction, commit *doltdb.PendingCommit, )
:
(*doltdb.Commit, error)
doCommit
(ctx *sql.Context, dbName string, tx sql.Transaction, commitFunc doCommitFunc)
:
(*doltdb.Commit, error)
PendingCommitAllStaged
(ctx *sql.Context, dbName string, props actions.CommitStagedProps)
:
(*doltdb.PendingCommit, error)
NewPendingCommit
(ctx *sql.Context, dbName string, roots doltdb.Roots, props actions.CommitStagedProps)
:
(*doltdb.PendingCommit, error)
RollbackTransaction
(ctx *sql.Context, dbName string, tx sql.Transaction)
:
error
CreateSavepoint
(ctx *sql.Context, savepointName, dbName string, tx sql.Transaction)
:
error
RollbackToSavepoint
(ctx *sql.Context, savepointName, dbName string, tx sql.Transaction)
:
error
ReleaseSavepoint
(ctx *sql.Context, savepointName, dbName string, tx sql.Transaction)
:
error
GetDoltDB
(ctx *sql.Context, dbName string)
:
(*doltdb.DoltDB, bool)
GetDbData
(ctx *sql.Context, dbName string)
:
(env.DbData, bool)
GetRoots
(ctx *sql.Context, dbName string)
:
(doltdb.Roots, bool)
ResolveRootForRef
(ctx *sql.Context, dbName, hashStr string)
:
(*doltdb.RootValue, *types.Timestamp, error)
SetRoot
(ctx *sql.Context, dbName string, newRoot *doltdb.RootValue)
:
error
SetRoots
(ctx *sql.Context, dbName string, roots doltdb.Roots)
:
error
SetWorkingSet
(ctx *sql.Context, dbName string, ws *doltdb.WorkingSet)
:
error
SwitchWorkingSet
( ctx *sql.Context, dbName string, wsRef ref.WorkingSetRef, )
:
error
WorkingSet
(ctx *sql.Context, dbName string)
:
(*doltdb.WorkingSet, error)
GetHeadCommit
(ctx *sql.Context, dbName string)
:
(*doltdb.Commit, error)
SetSessionVariable
(ctx *sql.Context, key string, value interface{})
:
error
setHeadRefSessionVar
(ctx *sql.Context, db, value string)
:
error
setForeignKeyChecksSessionVar
(ctx *sql.Context, key string, value interface{})
:
error
HasDB
(ctx *sql.Context, dbName string)
:
bool
AddDB
(ctx *sql.Context, dbState InitialDbState)
:
error
AddTemporaryTable
(ctx *sql.Context, db string, tbl sql.Table)
DropTemporaryTable
(ctx *sql.Context, db, name string)
GetTemporaryTable
(ctx *sql.Context, db, name string)
:
(sql.Table, bool)
GetAllTemporaryTables
(ctx *sql.Context, db string)
:
([]sql.Table, error)
CWBHeadRef
(ctx *sql.Context, dbName string)
:
(ref.DoltRef, error)
Username
()
:
string
Email
()
:
string
BatchMode
()
:
batchMode
setSessionVarsForDb
(ctx *sql.Context, dbName string)
:
error
PersistGlobal
(sysVarName string, value interface{})
:
error
RemovePersistedGlobal
(sysVarName string)
:
error
RemoveAllPersistedGlobals
()
:
error
GetPersistedValue
(k string)
:
(interface{}, error)
SystemVariablesInConfig
()
:
([]sql.SystemVariable, error)
GetBranch
()
:
(string, error)
GetUser
()
:
string
GetHost
()
:
string
GetController
()
:
*branch_control.Controller
All occurrences
Please wait...
Page is in error, reload to recover