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
2aa11235
ROOT
/
go
/
libraries
/
doltcore
/
sqle
/
database.go
Search
History
1436 lines
|
ISO-8859-1
|
39 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
ErrInvalidTableName
ErrReservedTableName
ErrSystemTableAlter
SqlDatabase
sql.Database
GetRoot
(*sql.Context)
:
(*doltdb.RootValue, error)
DbData
()
:
env.DbData
Name
()
:
string
StartTransaction
(ctx *sql.Context, tCharacteristic sql.TransactionCharacteristic)
:
(sql.Transaction, error)
Flush
(*sql.Context)
:
error
EditOptions
()
:
editor.Options
DbsAsDSQLDBs
(dbs []sql.Database)
:
[]SqlDatabase
Database
name
:
string
ddb
:
*doltdb.DoltDB
rsr
:
env.RepoStateReader
rsw
:
env.RepoStateWriter
gs
:
globalstate.GlobalState
editOpts
:
editor.Options
revision
:
string
StartTransaction
(ctx *sql.Context, tCharacteristic sql.TransactionCharacteristic)
:
(sql.Transaction, error)
CommitTransaction
(ctx *sql.Context, tx sql.Transaction)
:
error
Rollback
(ctx *sql.Context, tx sql.Transaction)
:
error
CreateSavepoint
(ctx *sql.Context, tx sql.Transaction, name string)
:
error
RollbackToSavepoint
(ctx *sql.Context, tx sql.Transaction, name string)
:
error
ReleaseSavepoint
(ctx *sql.Context, tx sql.Transaction, name string)
:
error
Revision
()
:
string
EditOptions
()
:
editor.Options
Name
()
:
string
GetDoltDB
()
:
*doltdb.DoltDB
GetStateReader
()
:
env.RepoStateReader
GetStateWriter
()
:
env.RepoStateWriter
DbData
()
:
env.DbData
GetGlobalState
()
:
globalstate.GlobalState
GetTableInsensitive
(ctx *sql.Context, tblName string)
:
(sql.Table, bool, error)
GetTableInsensitiveAsOf
(ctx *sql.Context, tableName string, asOf interface{})
:
(sql.Table, bool, error)
getTableInsensitive
(ctx *sql.Context, head *doltdb.Commit, ds *dsess.DoltSession, root *doltdb.RootValue, tblName string)
:
(sql.Table, bool, error)
GetTableNamesAsOf
(ctx *sql.Context, time interface{})
:
([]string, error)
getTable
(ctx *sql.Context, root *doltdb.RootValue, tableName string)
:
(sql.Table, bool, error)
GetTableNames
(ctx *sql.Context)
:
([]string, error)
GetAllTableNames
(ctx *sql.Context)
:
([]string, error)
GetRoot
(ctx *sql.Context)
:
(*doltdb.RootValue, error)
GetWorkingSet
(ctx *sql.Context)
:
(*doltdb.WorkingSet, error)
SetRoot
(ctx *sql.Context, newRoot *doltdb.RootValue)
:
error
GetHeadRoot
(ctx *sql.Context)
:
(*doltdb.RootValue, error)
DropTable
(ctx *sql.Context, tableName string)
:
error
removeTableFromAutoIncrementTracker
( ctx *sql.Context, tableName string, ddb *doltdb.DoltDB, ws ref.WorkingSetRef, )
:
error
CreateTable
(ctx *sql.Context, tableName string, sch sql.PrimaryKeySchema, collation sql.CollationID)
:
error
CreateIndexedTable
(ctx *sql.Context, tableName string, sch sql.PrimaryKeySchema, idxDef sql.IndexDef, collation sql.CollationID)
:
error
createSqlTable
(ctx *sql.Context, tableName string, sch sql.PrimaryKeySchema, collation sql.CollationID)
:
error
createIndexedSqlTable
(ctx *sql.Context, tableName string, sch sql.PrimaryKeySchema, idxDef sql.IndexDef, collation sql.CollationID)
:
error
createDoltTable
(ctx *sql.Context, tableName string, root *doltdb.RootValue, doltSch schema.Schema)
:
error
CreateTemporaryTable
(ctx *sql.Context, tableName string, pkSch sql.PrimaryKeySchema, collation sql.CollationID)
:
error
RenameTable
(ctx *sql.Context, oldName, newName string)
:
error
Flush
(ctx *sql.Context)
:
error
GetView
(ctx *sql.Context, viewName string)
:
(string, bool, error)
AllViews
(ctx *sql.Context)
:
([]sql.ViewDefinition, error)
CreateView
(ctx *sql.Context, name string, definition string)
:
error
DropView
(ctx *sql.Context, name string)
:
error
GetTriggers
(ctx *sql.Context)
:
([]sql.TriggerDefinition, error)
CreateTrigger
(ctx *sql.Context, definition sql.TriggerDefinition)
:
error
DropTrigger
(ctx *sql.Context, name string)
:
error
GetStoredProcedures
(ctx *sql.Context)
:
([]sql.StoredProcedureDetails, error)
SaveStoredProcedure
(ctx *sql.Context, spd sql.StoredProcedureDetails)
:
error
DropStoredProcedure
(ctx *sql.Context, name string)
:
error
addFragToSchemasTable
(ctx *sql.Context, fragType, name, definition string, created time.Time, existingErr error)
:
(err error)
dropFragFromSchemasTable
(ctx *sql.Context, fragType, name string, missingErr error)
:
error
GetAllTemporaryTables
(ctx *sql.Context)
:
([]sql.Table, error)
GetCollation
(ctx *sql.Context)
:
sql.CollationID
SetCollation
(ctx *sql.Context, collation sql.CollationID)
:
error
_
:
SqlDatabase
_
:
dsess.RevisionDatabase
_
:
globalstate.StateProvider
_
:
sql.CollatedDatabase
_
:
sql.Database
_
:
sql.StoredProcedureDatabase
_
:
sql.TableCreator
_
:
sql.IndexedTableCreator
_
:
sql.TableDropper
_
:
sql.TableRenamer
_
:
sql.TemporaryTableCreator
_
:
sql.TemporaryTableDatabase
_
:
sql.TransactionDatabase
_
:
sql.TriggerDatabase
_
:
sql.VersionedDatabase
_
:
sql.ViewDatabase
ReadOnlyDatabase
Database
IsReadOnly
()
:
bool
_
:
sql.ReadOnlyDatabase
NewDatabase
(ctx context.Context, name string, dbData env.DbData, editOpts editor.Options)
:
(Database, error)
GetInitialDBState
(ctx context.Context, db SqlDatabase)
:
(dsess.InitialDbState, error)
resolveAsOf
(ctx *sql.Context, db Database, asOf interface{})
:
(*doltdb.Commit, *doltdb.RootValue, error)
resolveAsOfTime
(ctx *sql.Context, ddb *doltdb.DoltDB, head ref.DoltRef, asOf time.Time)
:
(*doltdb.Commit, *doltdb.RootValue, error)
resolveAsOfCommitRef
(ctx *sql.Context, ddb *doltdb.DoltDB, head ref.DoltRef, commitRef string)
:
(*doltdb.Commit, *doltdb.RootValue, error)
getAllTableNames
(ctx context.Context, root *doltdb.RootValue)
:
([]string, error)
filterDoltInternalTables
(tblNames []string)
:
[]string
getInitialDBStateForUserSpaceDb
(ctx context.Context, db SqlDatabase)
:
(dsess.InitialDbState, error)
noopRepoStateWriter
UpdateStagedRoot
(ctx context.Context, newRoot *doltdb.RootValue)
:
error
UpdateWorkingRoot
(ctx context.Context, newRoot *doltdb.RootValue)
:
error
SetCWBHeadRef
(ctx context.Context, marshalableRef ref.MarshalableRef)
:
error
AddRemote
(r env.Remote)
:
error
AddBackup
(r env.Remote)
:
error
RemoveRemote
(ctx context.Context, name string)
:
error
RemoveBackup
(ctx context.Context, name string)
:
error
TempTableFilesDir
()
:
(string, error)
UpdateBranch
(name string, new env.BranchConfig)
:
error
All occurrences
Please wait...
Page is in error, reload to recover