crash.software
Projects
Pull Requests
Issues
Builds
graphql-engine
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
graphql-engine
Files
🤬
Sign In
release/v2.11
ROOT
/
cli
/
migrate
/
database
/
hasuradb
/
hasuradb.go
Search
History
439 lines
|
ISO-8859-1
|
10 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
init
()
DefaultDatabaseName
ErrNilConfig
ErrNoDatabaseName
ErrNoSchema
ErrDatabaseDirty
queryTypes
queryTypesMap
Config
MigrationsTable
:
string
SettingsTable
:
string
queryURL
:
*nurl.URL
metadataURL
:
*nurl.URL
graphqlURL
:
*nurl.URL
pgDumpURL
:
*nurl.URL
Headers
:
map[string]string
isCMD
:
bool
enableCheckMetadataConsistency
:
bool
HasuraDB
config
:
*Config
settings
:
[]settings.Setting
migrations
:
*database.Migrations
migrationQuery
:
HasuraInterfaceBulk
jsonPath
:
map[string]string
isLocked
:
bool
logger
:
*log.Logger
hasuraOpts
:
*database.HasuraOpts
metadataops
:
hasura.CommonMetadataOperations
v2metadataops
:
hasura.V2CommonMetadataOperations
pgDumpClient
:
hasura.PGDump
pgSourceOps
:
hasura.PGSourceOps
mssqlSourceOps
:
hasura.MSSQLSourceOps
citusSourceOps
:
hasura.CitusSourceOps
genericQueryRequest
:
hasura.GenericSend
hasuraClient
:
*hasura.Client
migrationsStateStore
:
statestore.MigrationsStateStore
settingsStateStore
:
statestore.SettingsStateStore
WithInstance
(config *Config, logger *log.Logger, hasuraOpts *database.HasuraOpts)
:
(database.Driver, error)
sendMetadataMigrations
(hasuradb *HasuraDB, requests []interface{})
:
error
*HasuraDB
Open
(url string, isCMD bool, logger *log.Logger, hasuraOpts *database.HasuraOpts)
:
(database.Driver, error)
Close
()
:
error
Scan
()
:
error
Lock
()
:
error
UnLock
()
:
error
Run
(migration io.Reader, fileType, fileName string)
:
error
ResetQuery
()
InsertVersion
(version int64)
:
error
SetVersion
(version int64, dirty bool)
:
error
RemoveVersion
(version int64)
:
error
getVersions
()
:
(err error)
Version
()
:
(version int64, dirty bool, err error)
Drop
()
:
error
First
()
:
(migrationVersion *database.MigrationVersion, ok bool)
Last
()
:
(*database.MigrationVersion, bool)
Prev
(version uint64)
:
(prevVersion *database.MigrationVersion, ok bool)
Next
(version uint64)
:
(migrationVersion *database.MigrationVersion, ok bool)
Read
(version uint64)
:
(ok bool)
Query
(data interface{})
:
error
All occurrences
Please wait...
Page is in error, reload to recover