Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apecloud/myduckserver
/ functions
Functions
1,318 in github.com/apecloud/myduckserver
⨍
Functions
1,318
◇
Types & classes
179
↓ 1 callers
Function
RemoveAllPipes
(dataDir string)
backend/pipe.go:27
↓ 1 callers
Method
ResetCounters
()
delta/delta.go:149
↓ 1 callers
Method
Restart
(readOnly bool)
catalog/provider.go:514
↓ 1 callers
Method
RowCount
()
delta/delta.go:113
↓ 1 callers
Method
Run
(MySqlCommand cmd)
compatibility/mysql/csharp/MySQLTest.cs:100
↓ 1 callers
Function
RunAddColumnTest
(t *testing.T, harness enginetest.Harness)
main_test.go:1502
↓ 1 callers
Function
RunCreateTableTest
Adapted from enginetests to skip known issues and pending fixes
main_test.go:1147
↓ 1 callers
Function
RunModifyColumnTest
(t *testing.T, harness enginetest.Harness)
main_test.go:1685
↓ 1 callers
Function
RunReplicationScript
RunReplicationScript runs the given ReplicationTest.
pgserver/logrepl/replication_test.go:697
↓ 1 callers
Function
RunReplicationScripts
RunScripts runs the given collection of scripts.
pgserver/logrepl/replication_test.go:648
↓ 1 callers
Function
RunTestColumnDefaults
(t *testing.T, harness enginetest.Harness)
main_test.go:2066
↓ 1 callers
Method
RunTests
()
compatibility/mysql/csharp/MySQLTest.cs:49
↓ 1 callers
Method
RunTests
()
compatibility/pg/csharp/PGTest.cs:49
↓ 1 callers
Method
Running
Running returns whether replication is currently running
pgserver/logrepl/replication.go:481
↓ 1 callers
Method
SQL
(ctx *sql.Context, dest []byte, v interface{})
pgtypes/pgtypes.go:441
↓ 1 callers
Method
Save
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 callers
Method
SelectColumnsStmt
(valueColumns []string)
catalog/internal_tables.go:118
↓ 1 callers
Function
SelectSubscriptionLsn
(ctx *sql.Context, subscription string)
pgserver/logrepl/subscription.go:131
↓ 1 callers
Method
SessionManager
SessionManager returns the session manager that the listener is using.
pgserver/listener.go:128
↓ 1 callers
Method
SetConnectionHandler
(handler *ConnectionHandler)
pgserver/duck_handler.go:90
↓ 1 callers
Method
SetEngine
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 callers
Method
SetExecutionContext
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 callers
Method
SetTableWriterProvider
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 callers
Method
SetValue
SetValue implements sql.SystemVariable.
pgserver/pgconfig/parameters.go:123
↓ 1 callers
Function
SimpleStrReplacement
This function will replace all type casts in the query with the corresponding type cast in the simpleStringsConversion map.
pgserver/stmt.go:346
↓ 1 callers
Function
SqlInfoResultMap
()
flightsqlserver/sqlite_info.go:27
↓ 1 callers
Method
Start
()
pgserver/server.go:38
↓ 1 callers
Method
Start
(globalErr *atomic.Pointer[error])
pgserver/datawriter.go:17
↓ 1 callers
Function
StartPostgresServer
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 callers
Method
StartReplica
StartReplica implements the BinlogReplicaController interface.
binlogreplication/binlog_replica_controller.go:94
↓ 1 callers
Method
String
()
pgserver/iter.go:39
↓ 1 callers
Method
SupportsNativeIndexCreation
()
harness/duck_harness.go:334
↓ 1 callers
Method
Test
(string query, string[][] expectedResults)
compatibility/mysql/csharp/MySQLTest.cs:94
↓ 1 callers
Method
Test
(string query, string[][] expectedResults)
compatibility/pg/csharp/PGTest.cs:94
↓ 1 callers
Function
ToArrowSchema
(s sql.Schema, dictionary ...int)
myarrow/schema.go:10
↓ 1 callers
Function
ToArrowType
ToArrowType translates the MySQL Type to Arrow Type.
myarrow/schema.go:33
↓ 1 callers
Method
ToConnectionInfo
ToConnectionInfo Format SubscriptionConfig into a ConnectionInfo
pgserver/subscription_handler.go:150
↓ 1 callers
Method
Truncate
Truncate implements sql.TruncateableTable.
catalog/table.go:533
↓ 1 callers
Function
TzOffsetToDuration
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 callers
Method
Update
(ctx *sql.Context, keyRows []sql.Row, valueRows []sql.Row)
binlogreplication/writer.go:16
↓ 1 callers
Method
UpdateAllStmt
(valueColumns []string)
catalog/internal_tables.go:41
↓ 1 callers
Function
UpdateSubscriptionLsn
(ctx *sql.Context, lsn, name string)
pgserver/logrepl/subscription.go:126
↓ 1 callers
Function
ValidateCopyFrom
ValidateCopyFrom returns an error if the CopyFrom node is invalid.
pgserver/validate.go:25
↓ 1 callers
Function
ValidateCopyTo
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 callers
Function
VitessTypeToObjectID
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 callers
Function
WithQueryOrigin
(ctx context.Context, kind QueryOriginKind)
mycontext/keys.go:18
↓ 1 callers
Function
WrapHandler
(provider *catalog.DatabaseProvider)
backend/handler.go:82
↓ 1 callers
Function
addTest
compatibility/mysql/c/mysql_test.c:44
↓ 1 callers
Function
addTest
compatibility/pg/c/pg_test.c:41
↓ 1 callers
Method
addTest
($query, $expectedResults)
compatibility/mysql/php/mysql_test.php:39
↓ 1 callers
Method
addTest
(String query, String[][] expectedResults)
compatibility/mysql/java/MySQLTest.java:31
↓ 1 callers
Method
addTest
($query, $expectedResults)
compatibility/pg/php/pg_test.php:39
↓ 1 callers
Method
addTest
(String query, String[][] expectedResults)
compatibility/pg/java/PGTest.java:31
↓ 1 callers
Method
add_test
(&mut self, query: String, expected_results: Vec<Vec<String>>)
compatibility/mysql/rust/mysql_test.rs:87
↓ 1 callers
Method
add_test
(&mut self, query: String, expected_results: Vec<Vec<String>>)
compatibility/pg/rust/pg_test.rs:77
↓ 1 callers
Method
appendRowFormatChanges
( ctx *sql.Context, tableMap *mysql.TableMap, tableName string, schema sql.Schema, event binlog.RowEventTyp
binlogreplication/binlog_replica_applier.go:1156
↓ 1 callers
Function
appendStringLength
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 callers
Method
attachCatalogs
attachCatalogs attaches all the databases in the data directory
catalog/provider.go:259
↓ 1 callers
Method
beginReplication
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 callers
Method
buildClientSideLoadData
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 callers
Function
buildColumnList
Helper function to build column list with timestamp handling
delta/controller.go:603
↓ 1 callers
Method
buildConfigForS3
()
storage/object_storage.go:120
↓ 1 callers
Method
buildConfigForS3Compatible
()
storage/object_storage.go:104
↓ 1 callers
Method
buildLoadData
buildLoadData translates a MySQL LOAD DATA statement into a DuckDB INSERT INTO statement and executes it.
backend/loaddata.go:58
↓ 1 callers
Method
buildSQL
buildSQL builds the DuckDB INSERT statement.
pgserver/arrowloader.go:60
↓ 1 callers
Method
buildSQL
buildSQL builds the DuckDB COPY FROM statement.
pgserver/dataloader.go:193
↓ 1 callers
Method
buildServerSideLoadData
In the non-local case, we can directly use the file path to read the data.
backend/loaddata.go:103
↓ 1 callers
Function
buildUpdateTemplate
(tableName string, columnCount int, schema sql.Schema, pkColumns []int, identifyColumns, dataColumns mysql.Bit
replica/updater.go:187
↓ 1 callers
Function
calculateInitialArrayValuesOffset
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 callers
Function
calculateInitialObjectKeysOffset
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 callers
Method
chooseInitialDatabase
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 callers
Function
columnTypeHints
(b *strings.Builder, dst sql.Table, schema sql.Schema, colNames []string)
backend/loaddata.go:240
↓ 1 callers
Function
configureFastConnectionRetry
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 callers
Method
configureReplicationUser
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 callers
Function
configureToxiProxy
(t *testing.T)
binlogreplication/binlog_replication_reconnect_test.go:155
↓ 1 callers
Method
connect
(self, ip, port, user, password)
compatibility/mysql/python/mysql_test.py:40
↓ 1 callers
Method
connect
($ip, $port, $user, $password)
compatibility/mysql/php/mysql_test.php:26
↓ 1 callers
Method
connect
(ip, port, user, password)
compatibility/mysql/ruby/mysql_test.rb:10
↓ 1 callers
Method
connect
(ip string, port int, user, password string)
compatibility/mysql/go/mysql.go:24
↓ 1 callers
Method
connect
(String ip, int port, String user, String password)
compatibility/mysql/java/MySQLTest.java:12
↓ 1 callers
Method
connect
(ip, port, user, password)
compatibility/mysql/node/mysql_test.js:58
↓ 1 callers
Method
connect
(self, ip, port, user, password)
compatibility/pg/python/pg_test.py:40
↓ 1 callers
Method
connect
(ip, port, user, password)
compatibility/pg/ruby/pg_test.rb:10
↓ 1 callers
Method
connect
(ip string, port int, user, password string)
compatibility/pg/go/pg.go:24
↓ 1 callers
Method
connect
(String ip, int port, String user, String password)
compatibility/pg/java/PGTest.java:12
↓ 1 callers
Method
connect
(ip, port, user, password)
compatibility/pg/node/pg_test.js:56
↓ 1 callers
Method
connectAndStartReplicationEventStream
connectAndStartReplicationEventStream connects to the configured MySQL replication source, including pausing and retrying if errors are encountered.
binlogreplication/binlog_replica_applier.go:170
↓ 1 callers
Function
connectDB
compatibility/mysql/c/mysql_test.c:26
↓ 1 callers
Function
connectDB
compatibility/pg/c/pg_test.c:26
↓ 1 callers
Function
containsVariable
containsVariable inspects if the plan contains a system or user variable.
backend/executor.go:272
↓ 1 callers
Method
convertBindParameters
convertBindParameters handles the conversion from bind parameters to variable values.
pgserver/connection_handler.go:975
↓ 1 callers
Function
convertSliceScanResultToStrings
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 callers
Function
convertSqlTypesValue
convertSqlTypesValues converts a sqltypes.Value instance (from vitess) into a sql.Type value (for go-mysql-server).
binlogreplication/binlog_replica_applier.go:1402
↓ 1 callers
Function
convertToHexString
Generic util functions... convertToHexString returns a lower-case hex string representation of the specified uint16 value |v|.
binlogreplication/binlog_replica_applier.go:1513
↓ 1 callers
Function
createDatabaseConnection
Create database connection
compatibility/flightsql/go/flightsql_test.go:21
↓ 1 callers
Function
createEmptyFile
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 callers
Function
createReplicaDir
createReplicaDir creates the .replica directory if it doesn't already exist.
binlogreplication/binlog_position_store.go:101
↓ 1 callers
Method
createReplicationSlot
Helper method to create a replication slot
pgserver/logrepl/replication.go:653
↓ 1 callers
Method
deallocatePreparedStatement
(name string, preparedStatements map[string]PreparedStatementData, query ConvertedStatement, conn net.Conn)
pgserver/connection_handler.go:942
↓ 1 callers
Function
decodeArrayToArrow
decodeArrayToArrow decodes Postgres array data and appends directly to Arrow builder
pgserver/logrepl/decode.go:307
← previous
next →
501–600 of 1,318, ranked by callers