MCPcopy Create free account

hub / github.com/apecloud/myduckserver / functions

Functions1,318 in github.com/apecloud/myduckserver

↓ 1 callersFunctionRemoveAllPipes
(dataDir string)
backend/pipe.go:27
↓ 1 callersMethodResetCounters
()
delta/delta.go:149
↓ 1 callersMethodRestart
(readOnly bool)
catalog/provider.go:514
↓ 1 callersMethodRowCount
()
delta/delta.go:113
↓ 1 callersMethodRun
(MySqlCommand cmd)
compatibility/mysql/csharp/MySQLTest.cs:100
↓ 1 callersFunctionRunAddColumnTest
(t *testing.T, harness enginetest.Harness)
main_test.go:1502
↓ 1 callersFunctionRunCreateTableTest
Adapted from enginetests to skip known issues and pending fixes
main_test.go:1147
↓ 1 callersFunctionRunModifyColumnTest
(t *testing.T, harness enginetest.Harness)
main_test.go:1685
↓ 1 callersFunctionRunReplicationScript
RunReplicationScript runs the given ReplicationTest.
pgserver/logrepl/replication_test.go:697
↓ 1 callersFunctionRunReplicationScripts
RunScripts runs the given collection of scripts.
pgserver/logrepl/replication_test.go:648
↓ 1 callersFunctionRunTestColumnDefaults
(t *testing.T, harness enginetest.Harness)
main_test.go:2066
↓ 1 callersMethodRunTests
()
compatibility/mysql/csharp/MySQLTest.cs:49
↓ 1 callersMethodRunTests
()
compatibility/pg/csharp/PGTest.cs:49
↓ 1 callersMethodRunning
Running returns whether replication is currently running
pgserver/logrepl/replication.go:481
↓ 1 callersMethodSQL
(ctx *sql.Context, dest []byte, v interface{})
pgtypes/pgtypes.go:441
↓ 1 callersMethodSave
Save persists the specified |position| to disk. The |position| represents the set of GTIDs that have been successfully executed and applied on this re
binlogreplication/binlog_position_store.go:71
↓ 1 callersMethodSelectColumnsStmt
(valueColumns []string)
catalog/internal_tables.go:118
↓ 1 callersFunctionSelectSubscriptionLsn
(ctx *sql.Context, subscription string)
pgserver/logrepl/subscription.go:131
↓ 1 callersMethodSessionManager
SessionManager returns the session manager that the listener is using.
pgserver/listener.go:128
↓ 1 callersMethodSetConnectionHandler
(handler *ConnectionHandler)
pgserver/duck_handler.go:90
↓ 1 callersMethodSetEngine
SetEngine sets the SQL engine this replica will use when running replicated statements and when loading the Catalog to find the "mysql" database.
binlogreplication/binlog_replica_controller.go:200
↓ 1 callersMethodSetExecutionContext
SetExecutionContext sets the unique |ctx| for the replica's applier to use when applying changes from binlog events to a database. The applier cannot
binlogreplication/binlog_replica_controller.go:194
↓ 1 callersMethodSetTableWriterProvider
SetTableWriterProvider sets the table writer provider for the replica's applier to use when writing replicated changes to the database.
binlogreplication/binlog_replica_controller.go:207
↓ 1 callersMethodSetValue
SetValue implements sql.SystemVariable.
pgserver/pgconfig/parameters.go:123
↓ 1 callersFunctionSimpleStrReplacement
This function will replace all type casts in the query with the corresponding type cast in the simpleStringsConversion map.
pgserver/stmt.go:346
↓ 1 callersFunctionSqlInfoResultMap
()
flightsqlserver/sqlite_info.go:27
↓ 1 callersMethodStart
()
pgserver/server.go:38
↓ 1 callersMethodStart
(globalErr *atomic.Pointer[error])
pgserver/datawriter.go:17
↓ 1 callersFunctionStartPostgresServer
StartPostgresServer configures a starts a fresh Postgres server instance in a Docker container and returns the port it is running on. If unable to sta
pgserver/logrepl/common_test.go:37
↓ 1 callersMethodStartReplica
StartReplica implements the BinlogReplicaController interface.
binlogreplication/binlog_replica_controller.go:94
↓ 1 callersMethodString
()
pgserver/iter.go:39
↓ 1 callersMethodSupportsNativeIndexCreation
()
harness/duck_harness.go:334
↓ 1 callersMethodTest
(string query, string[][] expectedResults)
compatibility/mysql/csharp/MySQLTest.cs:94
↓ 1 callersMethodTest
(string query, string[][] expectedResults)
compatibility/pg/csharp/PGTest.cs:94
↓ 1 callersFunctionToArrowSchema
(s sql.Schema, dictionary ...int)
myarrow/schema.go:10
↓ 1 callersFunctionToArrowType
ToArrowType translates the MySQL Type to Arrow Type.
myarrow/schema.go:33
↓ 1 callersMethodToConnectionInfo
ToConnectionInfo Format SubscriptionConfig into a ConnectionInfo
pgserver/subscription_handler.go:150
↓ 1 callersMethodTruncate
Truncate implements sql.TruncateableTable.
catalog/table.go:533
↓ 1 callersFunctionTzOffsetToDuration
TzOffsetToDuration takes in a timezone offset (e.g. "+01:00") and returns it as a time.Duration. If any problems are encountered, an error is returned
pgserver/pgconfig/parameters.go:263
↓ 1 callersMethodUpdate
(ctx *sql.Context, keyRows []sql.Row, valueRows []sql.Row)
binlogreplication/writer.go:16
↓ 1 callersMethodUpdateAllStmt
(valueColumns []string)
catalog/internal_tables.go:41
↓ 1 callersFunctionUpdateSubscriptionLsn
(ctx *sql.Context, lsn, name string)
pgserver/logrepl/subscription.go:126
↓ 1 callersFunctionValidateCopyFrom
ValidateCopyFrom returns an error if the CopyFrom node is invalid.
pgserver/validate.go:25
↓ 1 callersFunctionValidateCopyTo
ValidateCopyTo returns an error if the CopyTo node is invalid, for example if it contains columns that are not in the table schema.
pgserver/validate.go:42
↓ 1 callersFunctionVitessTypeToObjectID
VitessTypeToObjectID returns a type, as defined by Vitess, into a type as defined by Postgres. OIDs can be obtained with the following query: `SELECT
pgserver/connection_data.go:125
↓ 1 callersFunctionWithQueryOrigin
(ctx context.Context, kind QueryOriginKind)
mycontext/keys.go:18
↓ 1 callersFunctionWrapHandler
(provider *catalog.DatabaseProvider)
backend/handler.go:82
↓ 1 callersFunctionaddTest
compatibility/mysql/c/mysql_test.c:44
↓ 1 callersFunctionaddTest
compatibility/pg/c/pg_test.c:41
↓ 1 callersMethodaddTest
($query, $expectedResults)
compatibility/mysql/php/mysql_test.php:39
↓ 1 callersMethodaddTest
(String query, String[][] expectedResults)
compatibility/mysql/java/MySQLTest.java:31
↓ 1 callersMethodaddTest
($query, $expectedResults)
compatibility/pg/php/pg_test.php:39
↓ 1 callersMethodaddTest
(String query, String[][] expectedResults)
compatibility/pg/java/PGTest.java:31
↓ 1 callersMethodadd_test
(&mut self, query: String, expected_results: Vec<Vec<String>>)
compatibility/mysql/rust/mysql_test.rs:87
↓ 1 callersMethodadd_test
(&mut self, query: String, expected_results: Vec<Vec<String>>)
compatibility/pg/rust/pg_test.rs:77
↓ 1 callersMethodappendRowFormatChanges
( ctx *sql.Context, tableMap *mysql.TableMap, tableName string, schema sql.Schema, event binlog.RowEventTyp
binlogreplication/binlog_replica_applier.go:1156
↓ 1 callersFunctionappendStringLength
appendStringLength appends a variable number of bytes to the specified |bytes| to encode |length|, the length of a string. For string lengths, if the
binlogreplication/binlog_json_serialization.go:308
↓ 1 callersMethodattachCatalogs
attachCatalogs attaches all the databases in the data directory
catalog/provider.go:259
↓ 1 callersMethodbeginReplication
beginReplication starts a new replication connection to the primary server and returns it. The LSN provided is the last one we have confirmed that we
pgserver/logrepl/replication.go:504
↓ 1 callersMethodbuildClientSideLoadData
Since the data is sent to the server in the form of a byte stream, we use a Unix pipe to stream the data to DuckDB.
backend/loaddata.go:67
↓ 1 callersFunctionbuildColumnList
Helper function to build column list with timestamp handling
delta/controller.go:603
↓ 1 callersMethodbuildConfigForS3
()
storage/object_storage.go:120
↓ 1 callersMethodbuildConfigForS3Compatible
()
storage/object_storage.go:104
↓ 1 callersMethodbuildLoadData
buildLoadData translates a MySQL LOAD DATA statement into a DuckDB INSERT INTO statement and executes it.
backend/loaddata.go:58
↓ 1 callersMethodbuildSQL
buildSQL builds the DuckDB INSERT statement.
pgserver/arrowloader.go:60
↓ 1 callersMethodbuildSQL
buildSQL builds the DuckDB COPY FROM statement.
pgserver/dataloader.go:193
↓ 1 callersMethodbuildServerSideLoadData
In the non-local case, we can directly use the file path to read the data.
backend/loaddata.go:103
↓ 1 callersFunctionbuildUpdateTemplate
(tableName string, columnCount int, schema sql.Schema, pkColumns []int, identifyColumns, dataColumns mysql.Bit
replica/updater.go:187
↓ 1 callersFunctioncalculateInitialArrayValuesOffset
calculateInitialArrayValuesOffset returns the initial offset value for the first array value in the encoded array byte slice. When |largeEncoding| is
binlogreplication/binlog_json_serialization.go:336
↓ 1 callersFunctioncalculateInitialObjectKeysOffset
calculateInitialObjectKeysOffset returns the initial offset value for the first key in the encoded object byte slice. When |largeEncoding| is false, t
binlogreplication/binlog_json_serialization.go:353
↓ 1 callersMethodchooseInitialDatabase
chooseInitialDatabase attempts to choose the initial database for the connection, if one is specified in the startup message provided
pgserver/connection_handler.go:310
↓ 1 callersFunctioncolumnTypeHints
(b *strings.Builder, dst sql.Table, schema sql.Schema, colNames []string)
backend/loaddata.go:240
↓ 1 callersFunctionconfigureFastConnectionRetry
configureFastConnectionRetry configures the replica to retry a failed connection after 5s, instead of the default 60s connection retry interval. This
binlogreplication/binlog_replication_reconnect_test.go:81
↓ 1 callersMethodconfigureReplicationUser
configureReplicationUser creates or configures the super user account needed to apply replication changes and execute DDL statements on the running se
binlogreplication/binlog_replica_controller.go:165
↓ 1 callersFunctionconfigureToxiProxy
(t *testing.T)
binlogreplication/binlog_replication_reconnect_test.go:155
↓ 1 callersMethodconnect
(self, ip, port, user, password)
compatibility/mysql/python/mysql_test.py:40
↓ 1 callersMethodconnect
($ip, $port, $user, $password)
compatibility/mysql/php/mysql_test.php:26
↓ 1 callersMethodconnect
(ip, port, user, password)
compatibility/mysql/ruby/mysql_test.rb:10
↓ 1 callersMethodconnect
(ip string, port int, user, password string)
compatibility/mysql/go/mysql.go:24
↓ 1 callersMethodconnect
(String ip, int port, String user, String password)
compatibility/mysql/java/MySQLTest.java:12
↓ 1 callersMethodconnect
(ip, port, user, password)
compatibility/mysql/node/mysql_test.js:58
↓ 1 callersMethodconnect
(self, ip, port, user, password)
compatibility/pg/python/pg_test.py:40
↓ 1 callersMethodconnect
(ip, port, user, password)
compatibility/pg/ruby/pg_test.rb:10
↓ 1 callersMethodconnect
(ip string, port int, user, password string)
compatibility/pg/go/pg.go:24
↓ 1 callersMethodconnect
(String ip, int port, String user, String password)
compatibility/pg/java/PGTest.java:12
↓ 1 callersMethodconnect
(ip, port, user, password)
compatibility/pg/node/pg_test.js:56
↓ 1 callersMethodconnectAndStartReplicationEventStream
connectAndStartReplicationEventStream connects to the configured MySQL replication source, including pausing and retrying if errors are encountered.
binlogreplication/binlog_replica_applier.go:170
↓ 1 callersFunctionconnectDB
compatibility/mysql/c/mysql_test.c:26
↓ 1 callersFunctionconnectDB
compatibility/pg/c/pg_test.c:26
↓ 1 callersFunctioncontainsVariable
containsVariable inspects if the plan contains a system or user variable.
backend/executor.go:272
↓ 1 callersMethodconvertBindParameters
convertBindParameters handles the conversion from bind parameters to variable values.
pgserver/connection_handler.go:975
↓ 1 callersFunctionconvertSliceScanResultToStrings
convertSliceScanResultToStrings returns a new slice, formed by converting each value in the slice |ss| into a string. This is necessary because SliceS
binlogreplication/binlog_replication_reconnect_test.go:215
↓ 1 callersFunctionconvertSqlTypesValue
convertSqlTypesValues converts a sqltypes.Value instance (from vitess) into a sql.Type value (for go-mysql-server).
binlogreplication/binlog_replica_applier.go:1402
↓ 1 callersFunctionconvertToHexString
Generic util functions... convertToHexString returns a lower-case hex string representation of the specified uint16 value |v|.
binlogreplication/binlog_replica_applier.go:1513
↓ 1 callersFunctioncreateDatabaseConnection
Create database connection
compatibility/flightsql/go/flightsql_test.go:21
↓ 1 callersFunctioncreateEmptyFile
createEmptyFile creates an empty file at |fullFilepath| if a file does not exist already. If a file does exist at that path, no action is taken.
binlogreplication/binlog_metadata_persistence.go:146
↓ 1 callersFunctioncreateReplicaDir
createReplicaDir creates the .replica directory if it doesn't already exist.
binlogreplication/binlog_position_store.go:101
↓ 1 callersMethodcreateReplicationSlot
Helper method to create a replication slot
pgserver/logrepl/replication.go:653
↓ 1 callersMethoddeallocatePreparedStatement
(name string, preparedStatements map[string]PreparedStatementData, query ConvertedStatement, conn net.Conn)
pgserver/connection_handler.go:942
↓ 1 callersFunctiondecodeArrayToArrow
decodeArrayToArrow decodes Postgres array data and appends directly to Arrow builder
pgserver/logrepl/decode.go:307
← previousnext →501–600 of 1,318, ranked by callers