MCPcopy Create free account

hub / github.com/apecloud/myduckserver / functions

Functions1,318 in github.com/apecloud/myduckserver

↓ 361 callersFunctionGetPgsqlScope
(t PgsqlScopeType)
pgserver/pgconfig/parameters.go:202
↓ 197 callersMethodClose
()
pgserver/datawriter.go:18
↓ 113 callersMethodAppend
(row sql.Row)
myarrow/appender.go:43
↓ 94 callersFunctionNewDefaultDuckHarness
()
harness/duck_harness.go:101
↓ 84 callersFunctionnewTypeDescriptionAssertion
(v interface{})
binlogreplication/binlog_replication_alltypes_test.go:108
↓ 66 callersMethodString
String implements sql.Table.
catalog/table.go:182
↓ 53 callersMethodExecContext
(ctx context.Context, query string, args ...any)
backend/session.go:248
↓ 50 callersFunctionconvertMapScanResultToStrings
convertMapScanResultToStrings converts each value in the specified map |m| into a string. This is necessary because MapScan doesn't honor (or know abo
binlogreplication/binlog_replication_reconnect_test.go:196
↓ 49 callersFunctionreadNextRow
(t *testing.T, rows *sqlx.Rows)
binlogreplication/binlog_replication_test.go:644
↓ 45 callersMethodsend
Send sends the given message over the connection.
pgserver/connection_handler.go:1362
↓ 44 callersMethodLoad
Load loads a mysql.Position instance from the database. The returned mysql.Position represents the set of GTIDs that have been successfully executed a
binlogreplication/binlog_position_store.go:49
↓ 44 callersMethodName
Name implements sql.Table.
catalog/table.go:113
↓ 39 callersMethodRun
(NpgsqlCommand cmd)
compatibility/pg/csharp/PGTest.cs:100
↓ 37 callersMethodString
()
pgserver/iter.go:135
↓ 36 callersFunctionNewDuckHarness
(name string, parallelism int, numTablePartitions int, useNativeIndexes bool, driverInitializer IndexDriverIni
harness/duck_harness.go:77
↓ 33 callersFunctiongenerateLargeString
(length uint)
binlogreplication/binlog_json_serialization_test.go:296
↓ 31 callersMethodErr
()
flightsqlserver/sql_batch_reader.go:255
↓ 30 callersFunctionwaitForReplicaToCatchUp
Test Helper Functions waitForReplicaToCatchUp waits (up to 30s) for the replica to catch up with the primary database. The lag is measured by checki
binlogreplication/binlog_replication_test.go:548
↓ 28 callersMethodNext
Next retrieves the next row. It will return io.EOF if it's the last row.
backend/iter.go:112
↓ 28 callersFunctionQuoteIdentifierANSI
(identifier string)
catalog/identifier.go:69
↓ 27 callersMethodNewContext
NewContext creates a new sql.Context instance for the connection |c|. The optional |query| can be specified to populate the sql.Context's query field.
pgserver/handler.go:46
↓ 24 callersMethodexecute
(ctx *sql.Context, engine *gms.Engine, query string)
binlogreplication/binlog_replica_applier.go:964
↓ 23 callersMethodGrow
(n int)
delta/delta.go:121
↓ 22 callersFunctionFullTableName
(catalog, schema, table string)
catalog/identifier.go:22
↓ 22 callersFunctionteardown
(t *testing.T)
binlogreplication/binlog_replication_test.go:60
↓ 21 callersMethodQueryContext
(context.Context, string, ...any)
flightsqlserver/sqlite_server.go:486
↓ 21 callersFunctionstartReplicationAndCreateTestDb
startReplicationAndCreateTestDb starts up replication on the replica, connecting to |port| on the primary, creates the test database, db01, on the pri
binlogreplication/binlog_replication_test.go:778
↓ 20 callersMethodID
ID returns the identifier of the index.
catalog/index.go:29
↓ 20 callersMethodNext
()
flightsqlserver/sql_batch_reader.go:257
↓ 20 callersFunctionstartSqlServersWithSystemVars
startSqlServersWithSystemVars starts a MySQL server and a my-sql-server for use in tests. Before the my-sql-server is started, the specified |persiste
binlogreplication/binlog_replication_test.go:692
↓ 18 callersFunctionExec
(ctx *sql.Context, query string, args ...any)
adapter/adapter.go:94
↓ 18 callersMethodPool
()
catalog/provider.go:387
↓ 17 callersMethodRelease
()
flightsqlserver/sql_batch_reader.go:237
↓ 17 callersMethodString
()
binlog/events.go:26
↓ 16 callersMethodConnect
(string ip, int port, string user, string password)
compatibility/pg/csharp/PGTest.cs:15
↓ 16 callersMethodNext
Next retrieves the next row. It will return io.EOF if it's the last row.
pgserver/iter.go:140
↓ 14 callersFunctionRemoveComments
RemoveComments removes comments from a query string. It supports line comments (--), block comments (/* ... */), and quoted strings. Author: Claude So
pgserver/stmt.go:151
↓ 14 callersMethodrun
run runs the given statement and sends a CommandComplete message to the client
pgserver/connection_handler.go:996
↓ 13 callersFunctionConnectIdentifiersANSI
(identifiers ...string)
catalog/identifier.go:73
↓ 13 callersMethodType
()
pgtypes/pgtypes.go:445
↓ 13 callersFunctiongenerateTestDataString
(length uint)
binlogreplication/binlog_replication_alltypes_test.go:619
↓ 12 callersMethodDatabase
Database returns the database name this index belongs to.
catalog/index.go:34
↓ 12 callersMethodRelease
()
delta/delta.go:125
↓ 12 callersMethodSchema
Schema implements sql.Table.
catalog/table.go:128
↓ 12 callersFunctionnewMergableIndex
(dbs []sql.Database, tableName string, exprs ...sql.Expression)
main_test.go:2366
↓ 12 callersFunctionshowReplicaStatus
showReplicaStatus returns a map with the results of SHOW REPLICA STATUS, keyed by the name of each column.
binlogreplication/binlog_replication_reconnect_test.go:148
↓ 11 callersMethodConn
Conn returns the underlying net.Conn for this connection.
pgserver/connection_handler.go:187
↓ 11 callersMethodQueriesToSkip
see querySignature for the detail
harness/duck_harness.go:157
↓ 11 callersFunctionQueryCatalog
QueryCatalog is a helper function to query the catalog, such as information_schema. Unlike QueryContext, this function does not require a schema name
adapter/adapter.go:78
↓ 11 callersMethodSetup
(setupData ...[]setup.SetupScript)
harness/duck_harness.go:242
↓ 11 callersMethodappend
(state *replicationState, relationID uint32, tuple []*pglogrepl.TupleDataColumn, actionType, eventType binlog.
pgserver/logrepl/replication.go:1036
↓ 10 callersFunctionExecCatalogInTxn
(ctx *sql.Context, query string, args ...any)
adapter/adapter.go:113
↓ 10 callersMethodField
(i int)
binlogreplication/writer.go:20
↓ 10 callersMethodNewSession
()
harness/duck_harness.go:145
↓ 10 callersFunctiongetRandomString
(gen *rand.Rand, length int)
flightsqltest/driver_test.go:1941
↓ 9 callersMethodColumnName
()
binlogreplication/binlog_replication_alltypes_test.go:139
↓ 9 callersMethodEncode
()
catalog/comment.go:47
↓ 9 callersMethodEncode
Encode returns the struct as an AuthenticationSASLContinue message.
pgserver/authentication_scram.go:362
↓ 9 callersFunctionFullSchemaName
(catalog, schema string)
catalog/identifier.go:11
↓ 9 callersMethodIsUsingServer
()
harness/duck_harness.go:222
↓ 9 callersMethodQualifiedName
()
catalog/internal_tables.go:14
↓ 9 callersFunctionappendForEncoding
appendForEncoding appends the |value| to the specified |bytes| and returns the updated byte slice. If |largeEncoding| is true, then 4 bytes are added
binlogreplication/binlog_json_serialization.go:295
↓ 9 callersMethodflightInfoForCommand
(desc *flight.FlightDescriptor, schema *arrow.Schema)
flightsqlserver/sqlite_server.go:233
↓ 9 callersFunctionrequireReplicaResults
requireReplicaResults runs the specified |query| on the replica database and asserts that the results match |expectedResults|. Note that the actual re
binlogreplication/binlog_replication_test.go:931
↓ 8 callersFunctionCloseTxn
(ctx *sql.Context)
adapter/adapter.go:55
↓ 8 callersFunctionExecCatalog
ExecCatalog is a helper function to execute a catalog modification query, such as creating a database. Unlike ExecContext, this function does not requ
adapter/adapter.go:105
↓ 8 callersMethodFields
()
binlogreplication/writer.go:21
↓ 8 callersFunctionNewCommentWithMeta
(text string, meta T)
catalog/comment.go:43
↓ 8 callersMethodNewEngine
(t *testing.T)
harness/duck_harness.go:278
↓ 8 callersMethodRollback
Rollback implements sql.TransactionSession.
backend/session.go:132
↓ 8 callersFunctionStopDuckSqlServer
StopDuckSqlServer stops the running Dolt sql-server. If any errors are encountered while stopping the Dolt sql-server, this function will fail the cur
testutil/testutil.go:155
↓ 8 callersFunctionnewNumberType
(name string, displayWidth int)
catalog/type_mapping.go:70
↓ 8 callersMethodsetSqlError
setSqlError updates the current replication status with the specific |errno| and |message| to describe an SQL error.
binlogreplication/binlog_replica_controller.go:464
↓ 7 callersMethodAddr
Addr returns the address that the listener is listening on.
pgserver/listener.go:118
↓ 7 callersFunctionCommitAndCloseTxn
(sqlCtx *sql.Context)
adapter/adapter.go:129
↓ 7 callersMethodConvert
(v interface{})
pgtypes/pgtypes.go:425
↓ 7 callersMethodEncode
(v any, buf []byte)
pgtypes/pgtypes.go:411
↓ 7 callersFunctionGetConn
(ctx *sql.Context)
adapter/adapter.go:23
↓ 7 callersMethodGetValue
GetValue implements sql.SystemVariableScope.
pgserver/pgconfig/parameters.go:221
↓ 7 callersMethodSchema
()
flightsqlserver/sql_batch_reader.go:251
↓ 7 callersFunctionStartDuckSqlServer
StartDuckSqlServer starts a sql-server on a free port from the specified directory |dir|. If |peristentSystemVars| is populated, then those system var
testutil/testutil.go:53
↓ 7 callersMethodStop
Stop stops the replication process and blocks until clean shutdown occurs.
pgserver/logrepl/replication.go:488
↓ 7 callersFunctionUpdateSubscriptions
(ctx *sql.Context)
pgserver/logrepl/subscription.go:29
↓ 7 callersMethodgetProvider
()
harness/duck_harness.go:392
↓ 7 callersFunctionquerySignature
querySignature returns a normalized signature of the query Examples: - "SELECT 1 % true" -> "select_1_%_true" - "select_1_%_true" -> "select_1_%_true"
harness/duck_harness.go:171
↓ 7 callersFunctionquoteIdentifier
(identifier string)
replica/updater.go:347
↓ 7 callersFunctionreplaceQueryInScriptTest
(tests []queries.ScriptTest, targetScript string, targetQuery string, updatedQuery string)
main_test.go:2420
↓ 6 callersMethodBaseSchema
()
delta/delta.go:85
↓ 6 callersFunctionGetCurrentCatalog
(ctx *sql.Context)
adapter/adapter.go:47
↓ 6 callersMethodGetTableInsensitive
GetTableInsensitive implements sql.Database.
catalog/database.go:58
↓ 6 callersFunctionNewTestEnv
()
testutil/testutil.go:35
↓ 6 callersFunctionQueryRowCatalog
(ctx *sql.Context, query string, args ...any)
adapter/adapter.go:86
↓ 6 callersMethodTable
Table returns the table name this index belongs to.
catalog/index.go:39
↓ 6 callersFunctionTryGetTxn
(ctx *sql.Context)
adapter/adapter.go:43
↓ 6 callersFunctiondoGetQuery
(ctx context.Context, db *sql.DB, query string, schema *arrow.Schema, args ...interface{})
flightsqlserver/sqlite_server.go:489
↓ 6 callersFunctionloadReplicationConfiguration
loadReplicationConfiguration loads the replication configuration for default channel ("") from the "mysql" database, |mysqlDb|.
binlogreplication/binlog_metadata_persistence.go:108
↓ 6 callersFunctionnewStringType
(duckName, mysqlName string, typ sql.StringType)
catalog/type_mapping.go:52
↓ 5 callersMethodCreatePipe
(ctx *sql.Context, subdir string)
backend/pipe.go:12
↓ 5 callersMethodDataDir
()
configuration/providers.go:4
↓ 5 callersMethodDelete
(ctx *sql.Context, keyRows []sql.Row)
binlogreplication/writer.go:15
next →1–100 of 1,318, ranked by callers