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
↓ 5 callers
Function
FindFreePort
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 callers
Function
IsDuckDBCatalogError
(err error)
catalog/errors.go:14
↓ 5 callers
Function
IsReplicationWithoutIndex
()
configuration/env.go:12
↓ 5 callers
Function
IsValidPostgresConfigParameter
IsValidPostgresConfigParameter returns true if the given parameter name is a valid postgres configuration parameter.
pgserver/pgconfig/parameters_list.go:28
↓ 5 callers
Function
NewSession
(base *memory.Session, provider *catalog.DatabaseProvider)
backend/session.go:37
↓ 5 callers
Method
QualifiedName
()
catalog/internal_views.go:9
↓ 5 callers
Method
QueryRow
(ctx context.Context, query string, args ...any)
backend/session.go:256
↓ 5 callers
Method
Reset
(connector *duckdb.Connector, db *stdsql.DB)
catalog/connpool.go:205
↓ 5 callers
Method
Start
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 callers
Function
TranslateWithSQLGlot
(sql string)
transpiler/translate.go:223
↓ 5 callers
Method
commitOngoingTxn
(ctx *sql.Context, engine *gms.Engine, kind CommitKind, reason delta.FlushReason)
binlogreplication/binlog_replica_applier.go:779
↓ 5 callers
Method
executeDML
(ctx *sql.Context, n sql.Node, conn *stdsql.Conn)
backend/executor.go:221
↓ 5 callers
Function
executeSQLStatement
Execute SQL statement
compatibility/flightsql/go/flightsql_test.go:38
↓ 5 callers
Function
getGtidEnabled
()
binlogreplication/binlog_replication_test.go:822
↓ 5 callers
Function
getOptionValueAsInt
(option binlogreplication.ReplicationOption)
binlogreplication/binlog_replica_controller.go:520
↓ 5 callers
Function
newCommonType
(name string)
catalog/type_mapping.go:44
↓ 5 callers
Function
queryReplicaStatus
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 callers
Method
setIoError
setIoError updates the current replication status with the specific |errno| and |message| to describe an IO error.
binlogreplication/binlog_replica_controller.go:448
↓ 5 callers
Method
updateStatus
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 callers
Method
withSchema
(ctx *sql.Context)
catalog/table.go:79
↓ 4 callers
Function
CreateTestDir
(t *testing.T)
testutil/testutil.go:39
↓ 4 callers
Function
DecodeBytes
(id sql.CharacterSetID, encoded []byte)
charset/charset.go:105
↓ 4 callers
Function
DuckdbDataType
(mysqlType sql.Type)
catalog/type_mapping.go:120
↓ 4 callers
Function
FullColumnName
(catalog, schema, table, column string)
catalog/identifier.go:30
↓ 4 callers
Method
GetCatalogConn
(ctx context.Context)
adapter/adapter.go:14
↓ 4 callers
Function
GetCatalogTxn
(ctx *sql.Context, options *stdsql.TxOptions)
adapter/adapter.go:39
↓ 4 callers
Method
GetConnForSchema
(ctx context.Context, id uint32, schemaName string)
catalog/connpool.go:98
↓ 4 callers
Method
Go
Go spawns a new goroutine to run the applier's binlog event handler.
binlogreplication/binlog_replica_applier.go:108
↓ 4 callers
Method
ReplicationDns
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 callers
Method
SessionBuilder
func NewReadOnlyDuckHarness() *DuckHarness { h := NewDefaultDuckHarness() h.readonly = true return h }
harness/duck_harness.go:113
↓ 4 callers
Method
StartReplication
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 callers
Method
Stop
Stop requests for this binlogEventProducer to stop processing events as soon as possible.
binlogreplication/binlog_replica_event_producer.go:94
↓ 4 callers
Method
String
()
delta/flush_reason.go:26
↓ 4 callers
Method
UpsertStmt
()
catalog/internal_tables.go:57
↓ 4 callers
Function
assertValues
--------------------- Test Helper Functions ---------------------
binlogreplication/binlog_replication_alltypes_test.go:513
↓ 4 callers
Method
commitOngoingTxn
commitOngoingTxn commits the current transaction
pgserver/logrepl/replication.go:985
↓ 4 callers
Method
connect
($ip, $port, $user, $password)
compatibility/pg/php/pg_test.php:26
↓ 4 callers
Method
convertQuery
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 callers
Method
endOfMessages
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 callers
Method
extendOrCommitBatchTxn
(ctx *sql.Context, engine *gms.Engine)
binlogreplication/binlog_replica_applier.go:851
↓ 4 callers
Function
getEncoding
(id sql.CharacterSetID)
charset/charset.go:45
↓ 4 callers
Function
getOptionValueAsString
Helper functions
binlogreplication/binlog_replica_controller.go:510
↓ 4 callers
Function
loadEnvFromTestEnv
(testEnv *testutil.TestEnv)
binlogreplication/binlog_replication_test.go:119
↓ 4 callers
Function
makeCommandComplete
(tag string, rows int32)
pgserver/connection_handler.go:777
↓ 4 callers
Function
mustNewEngine
(t *testing.T, h enginetest.Harness)
main_test.go:1229
↓ 4 callers
Function
newTypeDescriptionAssertionWithExpectedValue
(v interface{}, x interface{})
binlogreplication/binlog_replication_alltypes_test.go:112
↓ 4 callers
Method
prepareArrowView
Helper function to build the Arrow record and register the view
delta/controller.go:193
↓ 4 callers
Function
setupTestEnv
(testEnv *testutil.TestEnv)
binlogreplication/binlog_replication_test.go:104
↓ 4 callers
Function
singleQuotedDuckChar
(s string)
backend/loaddata.go:229
↓ 4 callers
Function
singleQuotedDuckChar
(s string)
pgserver/dataloader.go:280
↓ 3 callers
Method
CloseConn
()
adapter/adapter.go:20
↓ 3 callers
Method
Collation
Collation implements sql.Table.
catalog/table.go:108
↓ 3 callers
Method
ComQuery
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 callers
Function
ConstructStorageConfig
(remoteUri, endpoint, accessKeyId, secretAccessKey string)
storage/object_storage.go:128
↓ 3 callers
Method
CurrentSchema
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 callers
Function
DecodePrecisionScale
(typmod int)
pgtypes/pgtypes.go:461
↓ 3 callers
Method
DeleteStmt
()
catalog/internal_tables.go:73
↓ 3 callers
Method
DownloadFile
(ctx context.Context, bucketName string, objectKey string, fileName string)
storage/object_storage_client.go:68
↓ 3 callers
Function
EncodeIndexName
EncodeIndexName uses a simple encoding scheme (table$$index) for better visibility which is useful for debugging.
catalog/identifier.go:35
↓ 3 callers
Method
Equals
(t sql.Type)
pgtypes/pgtypes.go:429
↓ 3 callers
Method
Flush
Flush writes the accumulated changes to the database.
delta/controller.go:75
↓ 3 callers
Method
GetCatalogProvider
()
pgserver/duck_handler.go:96
↓ 3 callers
Method
GetConn
(ctx context.Context)
adapter/adapter.go:12
↓ 3 callers
Method
GetDeltaAppender
GetDeltaAppender returns a DeltaAppender for appending updates to the specified |table| in the specified |database|.
binlogreplication/writer.go:47
↓ 3 callers
Method
GetSessionScope
GetSessionScope implements sql.SystemVariable.
pgserver/pgconfig/parameters.go:84
↓ 3 callers
Method
GetTxn
(ctx context.Context, options *stdsql.TxOptions)
adapter/adapter.go:13
↓ 3 callers
Function
InferSchema
(rows *stdsql.Rows)
pgtypes/pgtypes.go:294
↓ 3 callers
Method
IsRunning
IsRunning returns true if this binlog applier is running and has not been stopped, otherwise returns false.
binlogreplication/binlog_replica_applier.go:121
↓ 3 callers
Method
NewConnection
NewConnection reports that a new connection has been established.
pgserver/handler.go:43
↓ 3 callers
Function
NewDBProvider
(defaultTimeZone, dataDir, defaultDB string)
catalog/provider.go:52
↓ 3 callers
Function
NewDuckBuilder
(base sql.NodeExecBuilder, provider *catalog.DatabaseProvider)
backend/executor.go:43
↓ 3 callers
Function
NewInMemoryDBProvider
()
catalog/provider.go:44
↓ 3 callers
Function
NewSkippingDuckHarness
()
harness/duck_harness.go:232
↓ 3 callers
Function
NormalizeStrings
NormalizeStrings normalizes a query string to convert any MySQL syntax to Postgres syntax
transpiler/converter.go:52
↓ 3 callers
Function
Numeric
Numeric creates a numeric value from a string.
pgtest/framework.go:352
↓ 3 callers
Method
ObserveEvents
(event binlog.RowEventType, count int)
binlogreplication/writer.go:30
↓ 3 callers
Function
PostgresTypeSize
(oid uint32)
pgtypes/pgtypes.go:245
↓ 3 callers
Method
PrimaryDns
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 callers
Method
Record
()
flightsqlserver/sql_batch_reader.go:253
↓ 3 callers
Method
Release
()
flightsqlserver/sqlite_tables_schema_batch_reader.go:75
↓ 3 callers
Method
UpdateActionStats
(action binlog.RowEventType, count int)
binlogreplication/writer.go:29
↓ 3 callers
Function
assertWarning
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 callers
Function
buildInsertTemplate
(tableName string, columnCount int, replace bool)
replica/updater.go:135
↓ 3 callers
Function
clientSpecFromQueryComment
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 callers
Method
deletePreparedStatement
(name string)
pgserver/connection_handler.go:954
↓ 3 callers
Function
encodeJsonValue
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 callers
Method
executeQuery
(ctx *sql.Context, n sql.Node, conn *stdsql.Conn)
backend/executor.go:183
↓ 3 callers
Function
getCreateSequence
(temporary bool, sequenceName string)
catalog/table.go:214
↓ 3 callers
Function
getPgFuncRegex
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 callers
Function
getPrimaryKeyStruct
Helper function to get the primary key. For composite primary keys, `row()` is used.
delta/controller.go:628
↓ 3 callers
Function
getRenamePgCatalogFuncRegex
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 callers
Method
handleCopyToStdout
(query ConvertedStatement, copyTo *tree.CopyTo, subquery string, format tree.CopyFormat, rawOptions string)
pgserver/connection_handler.go:1377
↓ 3 callers
Method
new
(query: String, expected_results: Vec<Vec<String>>)
compatibility/mysql/rust/mysql_test.rs:14
↓ 3 callers
Function
parseDefaultValue
(defaultValue string)
catalog/type_mapping.go:334
↓ 3 callers
Function
prepareQueryForGetKeys
(filter string)
flightsqlserver/sqlite_server.go:116
↓ 3 callers
Function
queryGtid
(t *testing.T, database *sqlx.DB)
binlogreplication/binlog_replication_test.go:623
↓ 3 callers
Function
recordReplicationError
(ctx *sql.Context, err error)
binlogreplication/binlog_replica_applier.go:483
↓ 3 callers
Function
schemaToFieldDescriptions
(ctx *sql.Context, s sql.Schema, resultFormatCodes []int16, mode QueryMode)
pgserver/duck_handler.go:612
↓ 3 callers
Function
startSqlServers
startSqlServers starts a MySQL server and a Dolt sql-server for use in tests.
binlogreplication/binlog_replication_test.go:684
↓ 3 callers
Method
updateExtraTableInfo
(ctx *sql.Context, updater func(*ExtraTableInfo))
catalog/table.go:951
← previous
next →
101–200 of 1,318, ranked by callers