MCPcopy Create free account

hub / github.com/apecloud/myduckserver / functions

Functions1,318 in github.com/apecloud/myduckserver

↓ 5 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
testutil/testutil.go:219
↓ 5 callersFunctionIsDuckDBCatalogError
(err error)
catalog/errors.go:14
↓ 5 callersFunctionIsReplicationWithoutIndex
()
configuration/env.go:12
↓ 5 callersFunctionIsValidPostgresConfigParameter
IsValidPostgresConfigParameter returns true if the given parameter name is a valid postgres configuration parameter.
pgserver/pgconfig/parameters_list.go:28
↓ 5 callersFunctionNewSession
(base *memory.Session, provider *catalog.DatabaseProvider)
backend/session.go:37
↓ 5 callersMethodQualifiedName
()
catalog/internal_views.go:9
↓ 5 callersMethodQueryRow
(ctx context.Context, query string, args ...any)
backend/session.go:256
↓ 5 callersMethodReset
(connector *duckdb.Connector, db *stdsql.DB)
catalog/connpool.go:205
↓ 5 callersMethodStart
Start prepares the DataLoader for loading data. This may involve creating goroutines, opening files, etc. Start must be called before any calls to Loa
pgserver/dataloader.go:26
↓ 5 callersFunctionTranslateWithSQLGlot
(sql string)
transpiler/translate.go:223
↓ 5 callersMethodcommitOngoingTxn
(ctx *sql.Context, engine *gms.Engine, kind CommitKind, reason delta.FlushReason)
binlogreplication/binlog_replica_applier.go:779
↓ 5 callersMethodexecuteDML
(ctx *sql.Context, n sql.Node, conn *stdsql.Conn)
backend/executor.go:221
↓ 5 callersFunctionexecuteSQLStatement
Execute SQL statement
compatibility/flightsql/go/flightsql_test.go:38
↓ 5 callersFunctiongetGtidEnabled
()
binlogreplication/binlog_replication_test.go:822
↓ 5 callersFunctiongetOptionValueAsInt
(option binlogreplication.ReplicationOption)
binlogreplication/binlog_replica_controller.go:520
↓ 5 callersFunctionnewCommonType
(name string)
catalog/type_mapping.go:44
↓ 5 callersFunctionqueryReplicaStatus
queryReplicaStatus returns the results of `SHOW REPLICA STATUS` as a map, for the replica database. If any errors are encountered, this function will
binlogreplication/binlog_replication_test.go:956
↓ 5 callersMethodsetIoError
setIoError updates the current replication status with the specific |errno| and |message| to describe an IO error.
binlogreplication/binlog_replica_controller.go:448
↓ 5 callersMethodupdateStatus
updateStatus allows the caller to safely update the replica controller's status. The controller locks it's mutex before the specified function |f| is
binlogreplication/binlog_replica_controller.go:441
↓ 5 callersMethodwithSchema
(ctx *sql.Context)
catalog/table.go:79
↓ 4 callersFunctionCreateTestDir
(t *testing.T)
testutil/testutil.go:39
↓ 4 callersFunctionDecodeBytes
(id sql.CharacterSetID, encoded []byte)
charset/charset.go:105
↓ 4 callersFunctionDuckdbDataType
(mysqlType sql.Type)
catalog/type_mapping.go:120
↓ 4 callersFunctionFullColumnName
(catalog, schema, table, column string)
catalog/identifier.go:30
↓ 4 callersMethodGetCatalogConn
(ctx context.Context)
adapter/adapter.go:14
↓ 4 callersFunctionGetCatalogTxn
(ctx *sql.Context, options *stdsql.TxOptions)
adapter/adapter.go:39
↓ 4 callersMethodGetConnForSchema
(ctx context.Context, id uint32, schemaName string)
catalog/connpool.go:98
↓ 4 callersMethodGo
Go spawns a new goroutine to run the applier's binlog event handler.
binlogreplication/binlog_replica_applier.go:108
↓ 4 callersMethodReplicationDns
ReplicationDns returns the DNS for the primary database with the replication query parameter appended. Not suitable for normal query RPCs.
pgserver/logrepl/replication.go:85
↓ 4 callersMethodSessionBuilder
func NewReadOnlyDuckHarness() *DuckHarness { h := NewDefaultDuckHarness() h.readonly = true return h }
harness/duck_harness.go:113
↓ 4 callersMethodStartReplication
StartReplication starts the replication process for the given slot name. This function blocks until replication is stopped via the Stop method, or an
pgserver/logrepl/replication.go:222
↓ 4 callersMethodStop
Stop requests for this binlogEventProducer to stop processing events as soon as possible.
binlogreplication/binlog_replica_event_producer.go:94
↓ 4 callersMethodString
()
delta/flush_reason.go:26
↓ 4 callersMethodUpsertStmt
()
catalog/internal_tables.go:57
↓ 4 callersFunctionassertValues
--------------------- Test Helper Functions ---------------------
binlogreplication/binlog_replication_alltypes_test.go:513
↓ 4 callersMethodcommitOngoingTxn
commitOngoingTxn commits the current transaction
pgserver/logrepl/replication.go:985
↓ 4 callersMethodconnect
($ip, $port, $user, $password)
compatibility/pg/php/pg_test.php:26
↓ 4 callersMethodconvertQuery
convertQuery takes the given Postgres query, and converts it as a list of ast.ConvertedStatement that will work with the handler.
pgserver/connection_handler.go:1235
↓ 4 callersMethodendOfMessages
endOfMessages should be called from HandleConnection or a function within HandleConnection. This represents the end of the message slice, which may oc
pgserver/connection_handler.go:1208
↓ 4 callersMethodextendOrCommitBatchTxn
(ctx *sql.Context, engine *gms.Engine)
binlogreplication/binlog_replica_applier.go:851
↓ 4 callersFunctiongetEncoding
(id sql.CharacterSetID)
charset/charset.go:45
↓ 4 callersFunctiongetOptionValueAsString
Helper functions
binlogreplication/binlog_replica_controller.go:510
↓ 4 callersFunctionloadEnvFromTestEnv
(testEnv *testutil.TestEnv)
binlogreplication/binlog_replication_test.go:119
↓ 4 callersFunctionmakeCommandComplete
(tag string, rows int32)
pgserver/connection_handler.go:777
↓ 4 callersFunctionmustNewEngine
(t *testing.T, h enginetest.Harness)
main_test.go:1229
↓ 4 callersFunctionnewTypeDescriptionAssertionWithExpectedValue
(v interface{}, x interface{})
binlogreplication/binlog_replication_alltypes_test.go:112
↓ 4 callersMethodprepareArrowView
Helper function to build the Arrow record and register the view
delta/controller.go:193
↓ 4 callersFunctionsetupTestEnv
(testEnv *testutil.TestEnv)
binlogreplication/binlog_replication_test.go:104
↓ 4 callersFunctionsingleQuotedDuckChar
(s string)
backend/loaddata.go:229
↓ 4 callersFunctionsingleQuotedDuckChar
(s string)
pgserver/dataloader.go:280
↓ 3 callersMethodCloseConn
()
adapter/adapter.go:20
↓ 3 callersMethodCollation
Collation implements sql.Table.
catalog/table.go:108
↓ 3 callersMethodComQuery
ComQuery is called when a connection receives a query. Note the contents of the query slice may change after the first call to callback. So the Doltgr
pgserver/handler.go:36
↓ 3 callersFunctionConstructStorageConfig
(remoteUri, endpoint, accessKeyId, secretAccessKey string)
storage/object_storage.go:128
↓ 3 callersMethodCurrentSchema
CurrentSchema retrieves the current schema of the connection. Returns an empty string if the connection is not established or the schema cannot be ret
catalog/connpool.go:51
↓ 3 callersFunctionDecodePrecisionScale
(typmod int)
pgtypes/pgtypes.go:461
↓ 3 callersMethodDeleteStmt
()
catalog/internal_tables.go:73
↓ 3 callersMethodDownloadFile
(ctx context.Context, bucketName string, objectKey string, fileName string)
storage/object_storage_client.go:68
↓ 3 callersFunctionEncodeIndexName
EncodeIndexName uses a simple encoding scheme (table$$index) for better visibility which is useful for debugging.
catalog/identifier.go:35
↓ 3 callersMethodEquals
(t sql.Type)
pgtypes/pgtypes.go:429
↓ 3 callersMethodFlush
Flush writes the accumulated changes to the database.
delta/controller.go:75
↓ 3 callersMethodGetCatalogProvider
()
pgserver/duck_handler.go:96
↓ 3 callersMethodGetConn
(ctx context.Context)
adapter/adapter.go:12
↓ 3 callersMethodGetDeltaAppender
GetDeltaAppender returns a DeltaAppender for appending updates to the specified |table| in the specified |database|.
binlogreplication/writer.go:47
↓ 3 callersMethodGetSessionScope
GetSessionScope implements sql.SystemVariable.
pgserver/pgconfig/parameters.go:84
↓ 3 callersMethodGetTxn
(ctx context.Context, options *stdsql.TxOptions)
adapter/adapter.go:13
↓ 3 callersFunctionInferSchema
(rows *stdsql.Rows)
pgtypes/pgtypes.go:294
↓ 3 callersMethodIsRunning
IsRunning returns true if this binlog applier is running and has not been stopped, otherwise returns false.
binlogreplication/binlog_replica_applier.go:121
↓ 3 callersMethodNewConnection
NewConnection reports that a new connection has been established.
pgserver/handler.go:43
↓ 3 callersFunctionNewDBProvider
(defaultTimeZone, dataDir, defaultDB string)
catalog/provider.go:52
↓ 3 callersFunctionNewDuckBuilder
(base sql.NodeExecBuilder, provider *catalog.DatabaseProvider)
backend/executor.go:43
↓ 3 callersFunctionNewInMemoryDBProvider
()
catalog/provider.go:44
↓ 3 callersFunctionNewSkippingDuckHarness
()
harness/duck_harness.go:232
↓ 3 callersFunctionNormalizeStrings
NormalizeStrings normalizes a query string to convert any MySQL syntax to Postgres syntax
transpiler/converter.go:52
↓ 3 callersFunctionNumeric
Numeric creates a numeric value from a string.
pgtest/framework.go:352
↓ 3 callersMethodObserveEvents
(event binlog.RowEventType, count int)
binlogreplication/writer.go:30
↓ 3 callersFunctionPostgresTypeSize
(oid uint32)
pgtypes/pgtypes.go:245
↓ 3 callersMethodPrimaryDns
PrimaryDns returns the DNS for the primary database. Not suitable for RPCs used in replication e.g. StartReplication. See ReplicationDns.
pgserver/logrepl/replication.go:79
↓ 3 callersMethodRecord
()
flightsqlserver/sql_batch_reader.go:253
↓ 3 callersMethodRelease
()
flightsqlserver/sqlite_tables_schema_batch_reader.go:75
↓ 3 callersMethodUpdateActionStats
(action binlog.RowEventType, count int)
binlogreplication/writer.go:29
↓ 3 callersFunctionassertWarning
assertWarning asserts that the specified |database| has a warning with |code| and |message|, otherwise it will fail the current test.
binlogreplication/binlog_replication_test.go:613
↓ 3 callersFunctionbuildInsertTemplate
(tableName string, columnCount int, replace bool)
replica/updater.go:135
↓ 3 callersFunctionclientSpecFromQueryComment
clientSpecFromQueryComment returns "replica" if the query is meant to be run on the replica, and "primary" if it's meant to be run on the primary, bas
pgserver/logrepl/replication_test.go:890
↓ 3 callersMethoddeletePreparedStatement
(name string)
pgserver/connection_handler.go:954
↓ 3 callersFunctionencodeJsonValue
encodeJsonObject encodes the specified |jsonValue| into MySQL's internal JSON encoding and returns the type ID indicating what type of value this is,
binlogreplication/binlog_json_serialization.go:233
↓ 3 callersMethodexecuteQuery
(ctx *sql.Context, n sql.Node, conn *stdsql.Conn)
backend/executor.go:183
↓ 3 callersFunctiongetCreateSequence
(temporary bool, sequenceName string)
catalog/table.go:214
↓ 3 callersFunctiongetPgFuncRegex
This function will return a regex that matches all function names in the list of InternalMacros. And the Macro must be a table macro. e.g. * A scalar
pgserver/stmt.go:462
↓ 3 callersFunctiongetPrimaryKeyStruct
Helper function to get the primary key. For composite primary keys, `row()` is used.
delta/controller.go:628
↓ 3 callersFunctiongetRenamePgCatalogFuncRegex
This function will return a regex that matches all function names in the list of InternalMacros. And they will have optional "pg_catalog." prefix. How
pgserver/stmt.go:374
↓ 3 callersMethodhandleCopyToStdout
(query ConvertedStatement, copyTo *tree.CopyTo, subquery string, format tree.CopyFormat, rawOptions string)
pgserver/connection_handler.go:1377
↓ 3 callersMethodnew
(query: String, expected_results: Vec<Vec<String>>)
compatibility/mysql/rust/mysql_test.rs:14
↓ 3 callersFunctionparseDefaultValue
(defaultValue string)
catalog/type_mapping.go:334
↓ 3 callersFunctionprepareQueryForGetKeys
(filter string)
flightsqlserver/sqlite_server.go:116
↓ 3 callersFunctionqueryGtid
(t *testing.T, database *sqlx.DB)
binlogreplication/binlog_replication_test.go:623
↓ 3 callersFunctionrecordReplicationError
(ctx *sql.Context, err error)
binlogreplication/binlog_replica_applier.go:483
↓ 3 callersFunctionschemaToFieldDescriptions
(ctx *sql.Context, s sql.Schema, resultFormatCodes []int16, mode QueryMode)
pgserver/duck_handler.go:612
↓ 3 callersFunctionstartSqlServers
startSqlServers starts a MySQL server and a Dolt sql-server for use in tests.
binlogreplication/binlog_replication_test.go:684
↓ 3 callersMethodupdateExtraTableInfo
(ctx *sql.Context, updater func(*ExtraTableInfo))
catalog/table.go:951
← previousnext →101–200 of 1,318, ranked by callers