MCPcopy Create free account

hub / github.com/apecloud/myduckserver / functions

Functions1,318 in github.com/apecloud/myduckserver

↓ 2 callersFunctionchangeSourceLogFileToInvalidIfEmpty
(status *binlogreplication.ReplicaStatus)
binlogreplication/binlog_replica_controller.go:360
↓ 2 callersMethodcleanup
()
transpiler/translate.go:216
↓ 2 callersMethodclear
(ctx *sql.Context)
catalog/inserter.go:135
↓ 2 callersMethodcloseBackendConn
()
pgserver/connection_handler.go:117
↓ 2 callersFunctioncolumnTypeHint
(b *strings.Builder, col *sql.Column)
backend/loaddata.go:273
↓ 2 callersMethodcommitOngoingTxnIfClean
(state *replicationState, reason delta.FlushReason)
pgserver/logrepl/replication.go:977
↓ 2 callersFunctionconnectionForQuery
connectionForQuery returns the connection to use for the given query
pgserver/logrepl/replication_test.go:839
↓ 2 callersFunctionconvertFilterMapToStringSlice
convertFilterMapToStringSlice converts the specified |filterMap| into a string slice, by iterating over every key in the top level map, which stores a
binlogreplication/binlog_replica_filtering.go:237
↓ 2 callersMethodcreateAllTable
(ctx *sql.Context, name string, schema sql.PrimaryKeySchema, collation sql.CollationID, comment string, tempor
catalog/database.go:127
↓ 2 callersMethoddeletePortal
(name string)
pgserver/connection_handler.go:964
↓ 2 callersMethoddiscardToSync
DiscardToSync discards all messages in the buffer until a Sync has been reached. If a Sync was never sent, then this may cause the connection to lock
pgserver/connection_handler.go:1348
↓ 2 callersMethoddisconnect
(self)
compatibility/mysql/python/mysql_test.py:51
↓ 2 callersMethoddisconnect
()
compatibility/mysql/php/mysql_test.php:35
↓ 2 callersMethoddisconnect
compatibility/mysql/ruby/mysql_test.rb:18
↓ 2 callersMethoddisconnect
()
compatibility/mysql/java/MySQLTest.java:22
↓ 2 callersMethoddisconnect
()
compatibility/mysql/node/mysql_test.js:76
↓ 2 callersMethoddisconnect
(self)
compatibility/pg/python/pg_test.py:53
↓ 2 callersMethoddisconnect
()
compatibility/pg/php/pg_test.php:35
↓ 2 callersMethoddisconnect
compatibility/pg/ruby/pg_test.rb:18
↓ 2 callersMethoddisconnect
()
compatibility/pg/java/PGTest.java:22
↓ 2 callersMethoddisconnect
()
compatibility/pg/node/pg_test.js:67
↓ 2 callersMethoddoQuery
(ctx context.Context, c *mysql.Conn, query string, parsed tree.Statement, stmt *duckdb.Stmt, vars []any, resul
pgserver/duck_handler.go:314
↓ 2 callersFunctionencodeJsonArray
encodeJsonArray encodes the specified |jsonArray| into MySQL's internal JSON encoding and returns the type ID indicating whether this is a small or la
binlogreplication/binlog_json_serialization.go:82
↓ 2 callersFunctionencodeJsonDoc
encodeJsonDoc encodes the specified |jsonDoc| into MySQL's custom/internal binary encoding so that it can be included in a binlog event. The internal
binlogreplication/binlog_json_serialization.go:57
↓ 2 callersFunctionencodeJsonObject
encodeJsonObject encodes the specified |jsonObject| into MySQL's internal JSON encoding and returns the type ID indicating whether this is a small or
binlogreplication/binlog_json_serialization.go:148
↓ 2 callersMethodexecuteLoadData
(ctx *sql.Context, insert *plan.InsertInto, dst sql.InsertableTable, load *plan.LoadData, filePath string)
backend/loaddata.go:115
↓ 2 callersMethodexecuteQueryWithEngine
executeQueryWithEngine executes a query against the engine and returns an error if the query failed.
binlogreplication/binlog_replica_applier.go:864
↓ 2 callersMethodextractViewDefinitions
extractViewDefinitions is a helper function to extract view definitions from DuckDB
catalog/database.go:331
↓ 2 callersFunctionfileExists
fileExists returns true if the specified |filepath| exists on disk and is not a directory, otherwise returns false. |filepath| is a fully specified pa
binlogreplication/binlog_file_utils.go:33
↓ 2 callersFunctionfindFreePort
findFreePort returns an available port that can be used for a server. If any errors are encountered, this function will panic and fail the current tes
pgserver/logrepl/common_test.go:17
↓ 2 callersMethodflushDeltaBuffer
(ctx *sql.Context, reason delta.FlushReason)
binlogreplication/binlog_replica_applier.go:1267
↓ 2 callersMethodflushDeltaBuffer
flushDeltaBuffer flushes the accumulated changes in the delta buffer
pgserver/logrepl/replication.go:1027
↓ 2 callersFunctionformatSchema
(schema sql.Schema)
pgserver/iter.go:238
↓ 2 callersFunctiongenRandomString
()
flightsqlserver/sqlite_server.go:64
↓ 2 callersFunctiongenerateInsertValuesStatement
(tableName string, assertionIndex int)
binlogreplication/binlog_replication_alltypes_test.go:557
↓ 2 callersFunctiongenerateUpdateValuesStatement
(tableName string, pk int, assertionIndex int)
binlogreplication/binlog_replication_alltypes_test.go:600
↓ 2 callersFunctiongetArrowTypeFromString
(dbtype string)
flightsqlserver/sql_batch_reader.go:40
↓ 2 callersFunctiongetColumnMetadata
(bldr *flightsql.ColumnMetadataBuilder, sqltype int, table string)
flightsqlserver/sqlite_tables_schema_batch_reader.go:132
↓ 2 callersFunctiongetDataDir
(engine *gms.Engine)
binlogreplication/binlog_metadata_persistence.go:54
↓ 2 callersMethodgetNextAutoIncrementValue
(ctx *sql.Context)
catalog/table.go:795
↓ 2 callersFunctiongetOptionValueAsDatabaseNames
(option binlogreplication.ReplicationOption)
binlogreplication/binlog_replica_controller.go:540
↓ 2 callersFunctiongetOptionValueAsTableNames
(option binlogreplication.ReplicationOption)
binlogreplication/binlog_replica_controller.go:530
↓ 2 callersFunctiongetParamsForStatement
(rdr flight.MessageReader)
flightsqlserver/sqlite_server.go:600
↓ 2 callersFunctiongetPgAnyOpRegex
get the regex to match the operator 'ANY'
pgserver/stmt.go:303
↓ 2 callersFunctiongetPgCatalogRegex
get the regex to match any table in pg_catalog in the query.
pgserver/stmt.go:272
↓ 2 callersFunctiongetPrimaryKeyIndices
(schema sql.Schema, columns mysql.Bitmap)
replica/updater.go:27
↓ 2 callersFunctiongetPrimaryLogPosition
(t *testing.T, gtidEnabled bool)
binlogreplication/binlog_replication_test.go:723
↓ 2 callersFunctiongetSimpleStringMatchingRegex
This function will return a regex that matches all type casts in the query.
pgserver/stmt.go:334
↓ 2 callersFunctiongetSqlTypeFromTypeName
(sqltype string)
flightsqlserver/sqlite_tables_schema_batch_reader.go:97
↓ 2 callersMethodhandleCopyFromStdinQuery
handleCopyFromStdinQuery handles the COPY FROM STDIN query at the Doltgres layer, without passing it to the engine. COPY FROM STDIN can't be handled d
pgserver/connection_handler.go:1312
↓ 2 callersFunctionhandlePseudoQuery
handlePseudoQuery handles special pseudo-queries that are used to orchestrate replication tests and returns whether one was handled.
pgserver/logrepl/replication_test.go:861
↓ 2 callersMethodhandleStatementOutsideEngine
handleStatementOutsideEngine handles any queries that should be handled by the handler directly, rather than being passed to the engine. The response
pgserver/connection_handler.go:510
↓ 2 callersFunctionhasDatabase
(ctx *sql.Context, catalog string, name string)
catalog/provider.go:477
↓ 2 callersMethodinitCatalog
()
catalog/provider.go:108
↓ 2 callersFunctionisIndexCreationDisabled
(ctx *sql.Context)
catalog/database.go:265
↓ 2 callersFunctionisTimestampType
(t sql.Type)
delta/controller.go:699
↓ 2 callersFunctionloadReplicaServerId
loadReplicaServerId loads the @@GLOBAL.server_id system variable needed to register the replica with the source, and returns an error specific to repl
binlogreplication/binlog_replica_applier.go:1482
↓ 2 callersMethodmain
($args)
compatibility/pg/php/pg_test.php:4
↓ 2 callersMethodmaterializeCondensedDelta
Materialize the condensed delta view as a temporary table.
delta/controller.go:404
↓ 2 callersMethodmayExtendBatchTxn
()
binlogreplication/binlog_replica_applier.go:837
↓ 2 callersMethodmayExtendBatchTxn
mayExtendBatchTxn checks if we should extend the current batch transaction
pgserver/logrepl/replication.go:960
↓ 2 callersMethodmaybeReleaseAllLocks
maybeReleaseAllLocks makes a best effort attempt to release all locks on the given connection. If the attempt fails, an error is logged but not return
pgserver/duck_handler.go:597
↓ 2 callersMethodnew
(query: String, expected_results: Vec<Vec<String>>)
compatibility/pg/rust/pg_test.rs:14
↓ 2 callersFunctionnewDateTimeType
(mysqlName string, precision int)
catalog/type_mapping.go:86
↓ 2 callersFunctionnewFilterConfiguration
newFilterConfiguration creates a new filterConfiguration instance and initializes members.
binlogreplication/binlog_replica_filtering.go:41
↓ 2 callersMethodnewSession
()
harness/duck_harness.go:361
↓ 2 callersFunctionnewSimpleType
(duckName, mysqlName string)
catalog/type_mapping.go:48
↓ 2 callersFunctionparseBucketAndPath
(fullPath string)
storage/object_storage.go:150
↓ 2 callersFunctionparseRow
parseRow parses the binary row data from a MySQL binlog event and converts it into a go-mysql-server Row using the |schema| information provided. |col
binlogreplication/binlog_replica_applier.go:1359
↓ 2 callersFunctionpersistReplicaRunningState
persistReplicaRunningState records the running |state| of a replica to disk by creating a "replica-running" empty file in the .replica directory. An e
binlogreplication/binlog_metadata_persistence.go:78
↓ 2 callersFunctionpersistReplicationConfiguration
persistReplicationConfiguration saves the specified |replicaSourceInfo| to the "mysql" database |mysqlDb|. If any problems are encountered while savin
binlogreplication/binlog_metadata_persistence.go:47
↓ 2 callersFunctionpreProcessing
(inputQuery string)
pgserver/full_match_handler.go:52
↓ 2 callersFunctionprintFile
printFile opens the specified filepath |path| and outputs the contents of that file to stdout.
binlogreplication/binlog_replication_test.go:904
↓ 2 callersFunctionqueryColumns
(ctx *sql.Context, catalogName, schemaName, tableName string)
catalog/table.go:732
↓ 2 callersMethodqueryPGSetting
queryPGSetting will query the system variable value from the system variable map
pgserver/in_place_handler.go:71
↓ 2 callersFunctionreadAllRowsIntoSlices
readAllRowsIntoSlices reads all data from |rows| and returns a slice of slices, with all values converted to strings.
binlogreplication/binlog_replication_test.go:670
↓ 2 callersFunctionremoveNewline
compatibility/mysql/c/mysql_test.c:94
↓ 2 callersFunctionremoveNewline
compatibility/pg/c/pg_test.c:89
↓ 2 callersMethodreplicationSlotExists
Helper method to check if a replication slot exists
pgserver/logrepl/replication.go:635
↓ 2 callersFunctionrequireResults
(t *testing.T, db *sqlx.DB, query string, expectedResults [][]any)
binlogreplication/binlog_replication_test.go:943
↓ 2 callersMethodreset
(ctx *sql.Context, slotName string, lsn pglogrepl.LSN)
pgserver/logrepl/replication.go:197
↓ 2 callersMethodrestartServer
(readOnly bool)
pgserver/backup_handler.go:128
↓ 2 callersFunctionreturnsRow
returnsRow returns whether the query returns set of rows such as SELECT and FETCH statements.
pgserver/connection_handler.go:1368
↓ 2 callersMethodrollback
(ctx *sql.Context)
pgserver/logrepl/replication.go:452
↓ 2 callersMethodrowToBytes
(ctx *sql.Context, s sql.Schema, fields []pgproto3.FieldDescription, row sql.Row)
pgserver/duck_handler.go:856
↓ 2 callersFunctionsendString
the schema is 4 bytes length + data
transpiler/translate.go:188
↓ 2 callersMethodsetAutoIncrementValue
setAutoIncrementValue is a helper function to update the sequence value
catalog/table.go:871
↓ 2 callersMethodsetPgSessionVar
setPgSessionVar will set the session variable to the value provided for pg. And reply with the CommandComplete and ParameterStatus messages.
pgserver/in_place_handler.go:89
↓ 2 callersMethodspoolRowsCallback
spoolRowsCallback returns a callback function that will send RowDescription message, then a DataRow message for each row in the result set.
pgserver/connection_handler.go:1048
↓ 2 callersMethodtablesInsensitive
(ctx *sql.Context, pattern string)
catalog/database.go:73
↓ 2 callersMethodtranslate
(sql string)
transpiler/translate.go:151
↓ 2 callersFunctionverifyAllTablesAreQualified
(urts []sql.UnresolvedTable)
binlogreplication/binlog_replica_controller.go:558
↓ 2 callersFunctionwrapResultCallback
(callback mysql.ResultSpoolFn, modifiers ...ResultModifier)
backend/handler.go:45
↓ 1 callersMethodAbort
(ctx *sql.Context)
pgserver/dataloader.go:115
↓ 1 callersMethodAccept
Accept handles incoming connections.
pgserver/listener.go:90
↓ 1 callersMethodAction
()
delta/delta.go:89
↓ 1 callersMethodAutoStart
AutoStart starts up replication if replication was running before the server was shutdown. If replication is not configured, hasn't been started, or h
binlogreplication/binlog_replica_controller.go:490
↓ 1 callersMethodBase64Header
Base64Header returns the base64-encoded GS2 header and channel binding data.
pgserver/authentication_scram.go:336
↓ 1 callersMethodBuild
()
delta/delta.go:117
↓ 1 callersMethodCaughtUp
CaughtUp returns true if the replication slot is caught up to the primary, and false otherwise. This only works if there is only a single replication
pgserver/logrepl/replication.go:99
← previousnext →301–400 of 1,318, ranked by callers