MCPcopy Create free account

hub / github.com/apecloud/myduckserver / functions

Functions1,318 in github.com/apecloud/myduckserver

↓ 1 callersFunctionCauseImplicitCommitBefore
CauseImplicitCommitBefore returns true if the statement implicitly commits the current transaction: https://dev.mysql.com/doc/refman/8.4/en/implicit-c
mysqlutil/mysqlutil.go:10
↓ 1 callersFunctionCauseSchemaChange
(node sql.Node)
mysqlutil/mysqlutil.go:40
↓ 1 callersMethodClose
()
catalog/provider.go:374
↓ 1 callersMethodClose
()
catalog/connpool.go:177
↓ 1 callersFunctionCloseConn
(ctx *sql.Context)
adapter/adapter.go:31
↓ 1 callersMethodComBind
ComBind is called when a connection receives a request to bind a prepared statement to a set of values.
pgserver/handler.go:29
↓ 1 callersMethodComExecuteBound
ComExecuteBound is called when a connection receives a request to execute a prepared statement that has already bound to a set of values.
pgserver/handler.go:31
↓ 1 callersMethodComPrepareParsed
ComPrepareParsed is called when a connection receives a prepared statement query that has already been parsed.
pgserver/handler.go:33
↓ 1 callersMethodConnect
(string ip, int port, string user, string password)
compatibility/mysql/csharp/MySQLTest.cs:15
↓ 1 callersFunctionConvertAnyOp
Replace the operator 'ANY' with a function call.
pgserver/stmt.go:311
↓ 1 callersFunctionConvertPgCatalogFuncToSys
Replaces all matching function names in the query with "__sys__.<funcName>". e.g. SELECT pg_catalog.abc(123, 'test') AS result1, defg('hello', world
pgserver/stmt.go:412
↓ 1 callersFunctionConvertToDuckDBMacro
Wraps all table macro calls in "(FROM ...)". e.g. If the function names in the list of InternalMacros are "information_schema._pg_expandarray"(Table M
pgserver/stmt.go:505
↓ 1 callersFunctionConvertToSys
(sql string)
pgserver/stmt.go:293
↓ 1 callersMethodCreateCatalog
(name string, ifNotExists bool)
catalog/provider.go:296
↓ 1 callersFunctionCreateTestServer
(t *testing.T, port int)
pgtest/server.go:21
↓ 1 callersMethodCurrentSchemaOfUnderlyingConn
()
backend/session.go:46
↓ 1 callersFunctionDecodeCreateindex
(createIndexSQL string)
catalog/identifier.go:48
↓ 1 callersFunctionDecodeIndexName
(encodedName string)
catalog/identifier.go:39
↓ 1 callersMethodDefaultCatalogName
()
catalog/provider.go:391
↓ 1 callersFunctionDeleteSubscription
(ctx *sql.Context, name string)
pgserver/logrepl/subscription.go:121
↓ 1 callersMethodDiscardDeltaBuffer
DiscardDeltaBuffer discards the accumulated changes.
binlogreplication/writer.go:57
↓ 1 callersMethodDropCatalog
(name string, ifExists bool)
catalog/provider.go:347
↓ 1 callersFunctionDropPublication
DropPublication drops the publication with the given name if it exists. Mostly useful for testing.
pgserver/logrepl/replication.go:537
↓ 1 callersMethodDropReplicationSlotIfExists
DropReplicationSlotIfExists drops the replication slot with the given name. Any error from the slot not existing is ignored.
pgserver/logrepl/replication.go:583
↓ 1 callersMethodErrorChan
ErrorChan returns the error channel through which this event producer sends any errors.
binlogreplication/binlog_replica_event_producer.go:57
↓ 1 callersMethodEventChan
EventChan returns the event channel through which this event producer sends binlog events.
binlogreplication/binlog_replica_event_producer.go:51
↓ 1 callersFunctionExecInTxn
(ctx *sql.Context, query string, args ...any)
adapter/adapter.go:121
↓ 1 callersFunctionExecuteRestore
ExecuteRestore downloads the specified file from the remote storage and restores it to the specified local directory. Note that this should only be ca
pgserver/restore_handler.go:110
↓ 1 callersMethodExpressions
Expressions returns the indexed expressions. If the result is more than one expression, it means the index has multiple columns indexed. If it's just
catalog/index.go:46
↓ 1 callersMethodExtraTableInfo
()
catalog/table.go:99
↓ 1 callersMethodFinish
Finish finalizes the current load operation and commits the inserted rows so that the data becomes visibile to clients. Implementations should check t
pgserver/dataloader.go:40
↓ 1 callersFunctionFullIndexName
(catalog, schema, index string)
catalog/identifier.go:26
↓ 1 callersMethodGetChecks
CheckConstraints implements sql.CheckTable.
catalog/table.go:964
↓ 1 callersMethodGetConn
(ctx context.Context, id uint32)
catalog/connpool.go:82
↓ 1 callersMethodGetCurrentCatalog
()
adapter/adapter.go:17
↓ 1 callersMethodGetCurrentSchema
()
adapter/adapter.go:18
↓ 1 callersMethodGetDefault
GetDefault implements sql.SystemVariable.
pgserver/pgconfig/parameters.go:94
↓ 1 callersFunctionGetFilteredTypeInfoResult
(mem memory.Allocator, filter int32)
flightsqlserver/type_info.go:100
↓ 1 callersMethodGetIndexes
GetIndexes implements sql.IndexAddressableTable. This is only used for show index in SHOW INDEX and SHOW CREATE TABLE.
catalog/table.go:647
↓ 1 callersFunctionGetInternalTables
()
catalog/internal_tables.go:674
↓ 1 callersMethodGetScriptQueries
Find the test statements under ScriptTest by name.
harness/duck_harness.go:445
↓ 1 callersFunctionGetSqlDatabaseFromContext
GetSqlDatabaseFromContext returns the database from the context. Uses the context's current database if an empty string is provided. Returns nil if th
pgserver/core.go:25
↓ 1 callersMethodGetTableWriter
GetTableWriter returns a TableWriter for writing to the specified |table| in the specified |database|.
binlogreplication/writer.go:35
↓ 1 callersMethodGetTxn
GetTxn implements adapter.ConnectionHolder.
backend/session.go:214
↓ 1 callersMethodGetType
GetType implements sql.SystemVariable.
pgserver/pgconfig/parameters.go:79
↓ 1 callersMethodGo
Go starts this binlogEventProducer in a new goroutine. Right before this routine exits, it will close the two communication channels it owns.
binlogreplication/binlog_replica_event_producer.go:63
↓ 1 callersMethodHandleConnection
HandleConnection handles a connection's session, reading messages, executing queries, and sending responses. Expected to run in a goroutine per connec
pgserver/connection_handler.go:128
↓ 1 callersMethodHasPrimaryKey
()
catalog/table.go:103
↓ 1 callersFunctionInit
Init initializes or appends to SystemVariables as it functions as a global variable. Currently, we append all of postgres configuration parameters to
pgserver/pgconfig/parameters.go:37
↓ 1 callersFunctionInitSuperuser
(password string)
pgserver/authentication_scram.go:44
↓ 1 callersMethodInitValue
InitValue implements sql.SystemVariable.
pgserver/pgconfig/parameters.go:99
↓ 1 callersMethodInsert
(ctx *sql.Context, keyRows []sql.Row)
binlogreplication/writer.go:14
↓ 1 callersFunctionIsDuckDBIndexAlreadyExistsError
ERROR 1105 (HY000): duckdb: Catalog Error: Index with name "x_idx" already exists!
catalog/errors.go:37
↓ 1 callersFunctionIsDuckDBNotNullConstraintViolationError
Constraint Error: NOT NULL constraint failed: <column>
catalog/errors.go:47
↓ 1 callersFunctionIsDuckDBUniqueConstraintViolationError
ERROR 1105 (HY000): duckdb: Constraint Error: Data contains duplicates on indexed column(s)
catalog/errors.go:42
↓ 1 callersFunctionIsDuckDBViewNotFoundError
(err error)
catalog/errors.go:27
↓ 1 callersMethodIsFullText
IsFullText returns whether this index is a Full-Text index
catalog/index.go:65
↓ 1 callersFunctionIsReplicationQuery
(ctx context.Context)
mycontext/keys.go:29
↓ 1 callersMethodIsSpatial
IsSpatial returns whether this index is a spatial index
catalog/index.go:60
↓ 1 callersFunctionIsSystemView
(viewName string)
catalog/system_views.go:19
↓ 1 callersFunctionIsWellKnownStatementTag
(tag string)
pgserver/stmt.go:32
↓ 1 callersMethodLoadChunk
LoadChunk reads the records from |data| and inserts them into the previously configured table. Data records are not guaranteed to stard and end cleanl
pgserver/dataloader.go:31
↓ 1 callersMethodMaxTextResponseByteLength
(_ *sql.Context)
pgtypes/pgtypes.go:433
↓ 1 callersMethodMessageBare
MessageBare returns the message without the GS2 header.
pgserver/authentication_scram.go:341
↓ 1 callersMethodMessageWithoutProof
MessageWithoutProof returns the client-final-message-without-proof.
pgserver/authentication_scram.go:369
↓ 1 callersFunctionNewArrowAppender
(schema sql.Schema, dictionary ...int)
myarrow/appender.go:19
↓ 1 callersFunctionNewArrowDataLoader
(ctx *sql.Context, handler *DuckHandler, schema string, table sql.InsertableTable, columns tree.NameList, opti
pgserver/arrowloader.go:25
↓ 1 callersFunctionNewArrowWriter
( ctx *sql.Context, handler *DuckHandler, schema string, table sql.Table, columns tree.NameList, query str
pgserver/arrowwriter.go:24
↓ 1 callersFunctionNewBackupConfig
(dbName, remotePath string, storageConfig *storage.ObjectStorageConfig)
pgserver/backup_handler.go:40
↓ 1 callersFunctionNewConnectionHandler
NewConnectionHandler returns a new ConnectionHandler for the connection provided
pgserver/connection_handler.go:76
↓ 1 callersFunctionNewConnectionPool
(connector *duckdb.Connector, db *stdsql.DB)
catalog/connpool.go:37
↓ 1 callersMethodNewContext
()
harness/duck_harness.go:350
↓ 1 callersMethodNewContext
NewContext implements the Handler interface.
pgserver/duck_handler.go:283
↓ 1 callersFunctionNewCsvDataLoader
( ctx *sql.Context, handler *DuckHandler, schema string, table sql.InsertableTable, columns tree.NameList, o
pgserver/dataloader.go:156
↓ 1 callersMethodNewDatabaseProvider
()
harness/duck_harness.go:403
↓ 1 callersFunctionNewDuckDataWriter
( ctx *sql.Context, handler *DuckHandler, schema string, table sql.Table, columns tree.NameList, query str
pgserver/datawriter.go:33
↓ 1 callersFunctionNewEngine
copy from go-mysql-server/enginetest/initialization.go NewEngine creates an engine and sets it up for testing using harness, provider, and setup data
harness/duck_harness.go:297
↓ 1 callersFunctionNewPostgresType
(registry *pgtype.Map, oid uint32, modifier int32)
pgtypes/pgtypes.go:391
↓ 1 callersFunctionNewQueryReplacer
(regex string, replacement string)
pgserver/query_modifier.go:7
↓ 1 callersFunctionNewSqlRowIter
(rows *stdsql.Rows, schema sql.Schema)
pgserver/iter.go:94
↓ 1 callersFunctionNewSqliteTablesSchemaBatchReader
(ctx context.Context, mem memory.Allocator, rdr array.RecordReader, db *sql.DB, mainQuery string)
flightsqlserver/sqlite_tables_schema_batch_reader.go:50
↓ 1 callersFunctionNewTable
(db *Database, name string, hasPrimaryKey bool)
catalog/table.go:65
↓ 1 callersFunctionNormalizeArrayType
NormalizeArrayType normalizes array types by normalizing its elements first, then to a string using the type IoOutput method.
pgtest/framework.go:244
↓ 1 callersFunctionNormalizeExpectedRow
NormalizeExpectedRow normalizes each value's type, as the tests only want to compare values. Returns a new row.
pgtest/framework.go:105
↓ 1 callersFunctionNormalizeRow
NormalizeRow normalizes each value's type, as the tests only want to compare values. Returns a new row.
pgtest/framework.go:86
↓ 1 callersFunctionNormalizeRows
NormalizeRows normalizes each value's type within each row, as the tests only want to compare values. Returns a new set of rows in the same order.
pgtest/framework.go:76
↓ 1 callersFunctionNormalizeValToString
NormalizeValToString normalizes values into types that can be compared. JSON types, any pg types and time and decimal type values are converted into s
pgtest/framework.go:176
↓ 1 callersFunctionParseCopyFrom
ParseCopyFrom parses a COPY FROM statement and returns the query, format, and options.
pgserver/copy.go:65
↓ 1 callersFunctionParseCopyOptions
ParseCopyOptions parses the options string and returns the CopyOptions. The options string is a comma-separated list of key-value pairs: `OPT1 1, OPT2
pgserver/copy.go:90
↓ 1 callersFunctionParseCopyTo
ParseCopyTo parses a COPY TO statement and returns the query, format, and options.
pgserver/copy.go:51
↓ 1 callersFunctionPostgresTypeToArrowType
(p PostgresType)
pgtypes/pgtypes.go:173
↓ 1 callersMethodPrimaryKeySchema
PrimaryKeySchema implements sql.PrimaryKeyTable.
catalog/table.go:187
↓ 1 callersMethodProvider
Provider returns the database provider for the session.
backend/session.go:42
↓ 1 callersFunctionQueryOrigin
(ctx context.Context)
mycontext/keys.go:22
↓ 1 callersFunctionReadRows
ReadRows reads all of the given rows into a slice, then closes the rows. If `normalizeRows` is true, then the rows will be normalized such that all in
pgtest/framework.go:59
↓ 1 callersMethodReadTestsFromFile
(string filename)
compatibility/mysql/csharp/MySQLTest.cs:61
↓ 1 callersMethodReadTestsFromFile
(string filename)
compatibility/pg/csharp/PGTest.cs:61
↓ 1 callersMethodRecord
()
flightsqlserver/sqlite_tables_schema_batch_reader.go:95
↓ 1 callersFunctionRegisterReplicaController
registerReplicaController registers the replica controller into the engine to handle the replication commands, such as START REPLICA, STOP REPLICA, et
replica/replication.go:36
↓ 1 callersFunctionRegisterReplicaOptions
(options *ReplicaOptions)
replica/options.go:17
← previousnext →401–500 of 1,318, ranked by callers