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
main
ROOT
/
go
/
cmd
/
dolt
/
commands
/
sql.go
Search
History
1622 lines
|
ISO-8859-1
|
50 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
batchMode
invalidBatchMode
:
batchMode
insertBatchMode
deleteBatchMode
sqlDocs
ErrMultipleDoltCfgDirs
QueryFlag
FormatFlag
saveFlag
executeFlag
listSavedFlag
messageFlag
BatchFlag
DataDirFlag
MultiDBDirFlag
CfgDirFlag
DefaultCfgDirName
PrivsFilePathFlag
BranchCtrlPathFlag
DefaultPrivsName
DefaultBranchCtrlName
continueFlag
fileInputFlag
UserFlag
DefaultUser
DefaultHost
welcomeMsg
delimiterRegex
init
()
SqlCmd
VersionStr
:
string
InstallsSignalHandlers
()
:
bool
Name
()
:
string
Description
()
:
string
Docs
()
:
*cli.CommandDocumentation
ArgParser
()
:
*argparser.ArgParser
EventType
()
:
eventsapi.ClientEventType
RequiresRepo
()
:
bool
Exec
(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv)
:
int
_
:
cli.SignalCommand
listSavedQueriesMode
( ctx context.Context, mrEnv *env.MultiRepoEnv, initialRoots map[string]*doltdb.RootValue, format engine.PrintResultFormat, usage cli.UsagePrinter, config *engine.SqlEngineConfig, )
:
int
savedQueryMode
( ctx context.Context, mrEnv *env.MultiRepoEnv, initialRoots map[string]*doltdb.RootValue, savedQueryName string, format engine.PrintResultFormat, usage cli.UsagePrinter, config *engine.SqlEngineConfig, )
:
int
queryMode
( ctx context.Context, mrEnv *env.MultiRepoEnv, initialRoots map[string]*doltdb.RootValue, apr *argparser.ArgParseResults, query string, format engine.PrintResultFormat, usage cli.UsagePrinter, config *engine.SqlEngineConfig, )
:
int
getMultiRepoEnv
(ctx context.Context, apr *argparser.ArgParseResults, dEnv *env.DoltEnv, cmd SqlCmd)
:
(*env.MultiRepoEnv, errhand.VerboseError)
execShell
( ctx context.Context, mrEnv *env.MultiRepoEnv, format engine.PrintResultFormat, config *engine.SqlEngineConfig, )
:
errhand.VerboseError
execBatch
( ctx context.Context, continueOnErr bool, mrEnv *env.MultiRepoEnv, batchInput io.Reader, format engine.PrintResultFormat, config *engine.SqlEngineConfig, )
:
errhand.VerboseError
execMultiStatements
( ctx context.Context, continueOnErr bool, mrEnv *env.MultiRepoEnv, batchInput io.Reader, format engine.PrintResultFormat, config *engine.SqlEngineConfig, )
:
errhand.VerboseError
execQuery
( ctx context.Context, mrEnv *env.MultiRepoEnv, query string, format engine.PrintResultFormat, config *engine.SqlEngineConfig, )
:
errhand.VerboseError
formatQueryError
(message string, err error)
:
errhand.VerboseError
GetResultFormat
(format string)
:
(engine.PrintResultFormat, errhand.VerboseError)
validateSqlArgs
(apr *argparser.ArgParseResults)
:
error
saveQuery
(ctx context.Context, root *doltdb.RootValue, query string, name string, message string)
:
(*doltdb.RootValue, errhand.VerboseError)
runMultiStatementMode
(ctx *sql.Context, se *engine.SqlEngine, input io.Reader, continueOnErr bool)
:
error
handleError
(stmtStartLine int, query string, err error)
runBatchMode
(ctx *sql.Context, se *engine.SqlEngine, input io.Reader, continueOnErr bool)
:
error
runShell
(ctx context.Context, se *engine.SqlEngine, mrEnv *env.MultiRepoEnv, config *engine.SqlEngineConfig)
:
error
newCompleter
(ctx context.Context, dEnv *env.DoltEnv)
:
(*sqlCompleter, error)
sqlCompleter
allWords
:
[]string
columnNames
:
[]string
prepend
(s string, ss []string)
:
[]string
processQuery
(ctx *sql.Context, query string, se *engine.SqlEngine)
:
(sql.Schema, sql.RowIter, error)
processParsedQuery
(ctx *sql.Context, query string, se *engine.SqlEngine, sqlStatement sqlparser.Statement)
:
(sql.Schema, sql.RowIter, error)
stats
rowsInserted
:
int
rowsUpdated
:
int
rowsDeleted
:
int
unflushedEdits
:
int
unprintedEdits
:
int
displayStrLen
:
int
fileReadProgress
bytesRead
:
int64
totalBytes
:
int64
printed
:
int64
displayStrLen
:
int
batchEditStats
fileReadProg
:
*fileReadProgress
maxBatchSize
updateInterval
flushBatchedEdits
(ctx *sql.Context, se *engine.SqlEngine)
:
error
processBatchQuery
(ctx *sql.Context, query string, se *engine.SqlEngine)
:
error
processNonBatchableQuery
(ctx *sql.Context, se *engine.SqlEngine, query string, sqlStatement sqlparser.Statement)
:
(returnErr error)
processBatchableEditQuery
(ctx *sql.Context, se *engine.SqlEngine, query string, sqlStatement sqlparser.Statement)
:
(returnErr error)
canProcessAsBatchEdit
(ctx *sql.Context, sqlStatement sqlparser.Statement, se *engine.SqlEngine, query string)
:
(batchMode, error)
checkForSubqueries
(query string)
:
(bool, error)
foundSubquery
(node sqlparser.SQLNode)
:
bool
insertsIntoAutoIncrementCol
(ctx *sql.Context, se *engine.SqlEngine, query string)
:
(bool, error)
updateBatchEditOutput
()
updateFileReadProgressOutput
()
mergeResultIntoStats
(ctx *sql.Context, statement sqlparser.Statement, rowIter sql.RowIter, s *stats)
:
error
*sqlCompleter
Do
(line []rune, pos int)
:
(newLine [][]rune, length int)
getWords
(lastWord string)
:
(s []string)
*stats
numUpdates
()
:
int
shouldUpdateBatchModeOutput
()
:
bool
shouldFlush
()
:
bool
printNewLineIfNeeded
()
*fileReadProgress
close
()
setReadBytes
(b int64)
printNewLineIfNeeded
()
All occurrences
Please wait...
Page is in error, reload to recover