Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/Shopify/ghostferry
/ functions
Functions
1,224 in github.com/Shopify/ghostferry
⨍
Functions
1,224
◇
Types & classes
176
↓ 7 callers
Function
NewSlogLogger
NewSlogLogger returns a *slog.Logger that routes all log output through the given ghostferry Logger. Use this to bridge third-party libraries that log
slog_handler.go:127
↓ 7 callers
Method
NumericPosition
NumericPosition calculates a rough float position for progress tracking. Note: This method only uses the first 8 bytes of the binary key for progress
pagination_key.go:142
↓ 7 callers
Function
SetLogOutput
SetLogOutput sets the output writer for the active backend. This is primarily useful for testing (capturing log output).
logger.go:173
↓ 7 callers
Method
Size
()
row_batch.go:50
↓ 7 callers
Method
StartInBackground
Start the verifier in the background during the cutover phase. Traditionally, this is called from within the ControlServer. This method maybe called
verifier.go:66
↓ 7 callers
Method
VerifyBeforeCutover
If the Verifier needs to do anything immediately after the DataIterator finishes copying data and before cutover occurs, implement this function.
verifier.go:55
↓ 7 callers
Method
Warnf
(format string, args ...any)
logger.go:20
↓ 6 callers
Method
BuildConfig
()
config.go:35
↓ 6 callers
Method
Initialize
()
iterative_verifier.go:171
↓ 6 callers
Method
MySQLConfig
()
config.go:84
↓ 6 callers
Function
NewLagThrottler
(config *LagThrottlerConfig)
throttler.go:91
↓ 6 callers
Function
NewTestConfig
()
testhelpers/test_ferry.go:29
↓ 6 callers
Method
Post
(client *http.Client)
http_callback.go:17
↓ 6 callers
Method
Prepare
(string)
cursor.go:17
↓ 6 callers
Method
Set
(b bool)
utils.go:71
↓ 6 callers
Method
VerifyDuringCutover
()
iterative_verifier.go:235
↓ 6 callers
Method
VerifyOnce
()
iterative_verifier.go:183
↓ 6 callers
Method
callCustomAction
(f func(*TestFerry, *sql.DB, *sql.DB))
testhelpers/integration_test_case.go:168
↓ 6 callers
Method
on_callback
(callback, &block)
test/helpers/ghostferry_helper.rb:359
↓ 6 callers
Function
returnSuccess
(w http.ResponseWriter, r *http.Request)
control_server.go:449
↓ 5 callers
Method
Add
(table *TableSchema, paginationKey string)
inline_verifier.go:126
↓ 5 callers
Function
CheckDbIsAReplica
(db *sql.DB)
utils.go:254
↓ 5 callers
Method
CopyData
()
testhelpers/integration_test_case.go:40
↓ 5 callers
Method
CreateDatabasesAndTables
()
copydb/copydb.go:43
↓ 5 callers
Method
Disabled
()
throttler.go:14
↓ 5 callers
Method
FlushAndStop
()
binlog_streamer.go:347
↓ 5 callers
Method
FlushBinlogAndStopStreaming
After you stop writing to the source and made sure that all inflight transactions to the source are completed, call this method to ensure that the bin
ferry.go:876
↓ 5 callers
Method
IsDone
()
verifier.go:44
↓ 5 callers
Method
IsMax
IsMax returns true if this key represents the maximum possible value for its type.
pagination_key.go:31
↓ 5 callers
Method
MinSourceBinlogPosition
()
state_tracker.go:92
↓ 5 callers
Function
NewBinaryKeyWithColumn
(column string, value []byte)
pagination_key.go:112
↓ 5 callers
Function
NewBinlogDeleteEvents
(eventBase *DMLEventBase, rowsEvent *replication.RowsEvent)
dml_events.go:253
↓ 5 callers
Function
NewBinlogUpdateEvents
(eventBase *DMLEventBase, rowsEvent *replication.RowsEvent)
dml_events.go:193
↓ 5 callers
Function
NewCorrectVerificationResult
()
verifier.go:29
↓ 5 callers
Function
NewRowBatch
(table *TableSchema, values []RowData, paginationKeyIndex int)
row_batch.go:16
↓ 5 callers
Method
NumericPosition
NumericPosition returns a float64 approximation for progress tracking and estimation.
pagination_key.go:25
↓ 5 callers
Function
QuotedTableName
(table *TableSchema)
table_schema_cache.go:120
↓ 5 callers
Function
ScanGenericRow
(rows *sqlorig.Rows, columnCount int)
cursor.go:283
↓ 5 callers
Method
SetDisabled
(bool)
throttler.go:15
↓ 5 callers
Method
SetPaused
(bool)
throttler.go:16
↓ 5 callers
Function
ShowMasterStatusBinlogPosition
(db *sql.DB)
utils.go:208
↓ 5 callers
Method
StopTargetVerifier
()
ferry.go:902
↓ 5 callers
Method
Teardown
()
testhelpers/integration_test_case.go:131
↓ 5 callers
Method
Timer
(key string, duration time.Duration, tags []MetricTag, sampleRate float64)
metrics.go:80
↓ 5 callers
Method
Timestamp
()
dml_events.go:83
↓ 5 callers
Method
ValidateConfig
()
sharding/config.go:38
↓ 5 callers
Method
VerifyBeforeCutover
()
iterative_verifier.go:204
↓ 5 callers
Function
WaitForThrottle
(t Throttler)
throttler.go:20
↓ 5 callers
Method
assertBothFilters
(expected []string, filter copydb.FilterAndRewriteConfigs, list []string)
copydb/test/filter_test.go:129
↓ 5 callers
Method
assertLoadTablesWithCascadingPaginationColumnConfig
(table, expectedpaginationColumn string, cascadingPaginationColumnConfig *ghostferry.CascadingPaginationColumn
test/go/table_schema_cache_test.go:35
↓ 5 callers
Function
compareDecompressedData
(source, target map[string]map[string][]byte)
inline_verifier.go:657
↓ 5 callers
Method
requestMap
(r *http.Request)
sharding/test/callbacks_test.go:181
↓ 5 callers
Method
run_expecting_failure
Same as above - ensure that the datawriter has been stopped properly (if you're using stop_datawriter_during_cutover).
test/helpers/ghostferry_helper.rb:126
↓ 5 callers
Function
setupIterativeVerifierFromFerry
(v *ghostferry.IterativeVerifier, f *ghostferry.Ferry)
test/go/iterative_verifier_integration_test.go:247
↓ 5 callers
Function
verifyValuesHasTheSameLengthAsColumns
(table *TableSchema, values ...RowData)
dml_events.go:335
↓ 4 callers
Method
ApplicableTables
(tables []*ghostferry.TableSchema)
sharding/filter.go:287
↓ 4 callers
Method
AssertIdentical
(data, from, to string)
test/go/iterative_verifier_collation_test.go:65
↓ 4 callers
Method
Begin
()
sqlwrapper/ghostferry_db.go:56
↓ 4 callers
Method
Compare
(other PaginationKey)
pagination_key.go:126
↓ 4 callers
Method
Debugf
(format string, args ...any)
logger.go:16
↓ 4 callers
Method
GetTableListWithPriority
Helper to sort a given map of tables with a second list giving a priority. If an element is present in the input and the priority lists, the item will
table_schema_cache.go:354
↓ 4 callers
Method
IsCaughtUp
(targetMasterPos mysql.Position, retries int)
wait_until_replica_is_caught_up_to_master.go:56
↓ 4 callers
Method
IsStarted
()
verifier.go:40
↓ 4 callers
Function
LoadResults
(rows *sqlorig.Rows)
testhelpers/helper_methods.go:108
↓ 4 callers
Function
NewMysqlPosition
(file string, position uint32, err error, db *sql.DB)
utils.go:234
↓ 4 callers
Function
NewStateTracker
(speedLogCount int)
state_tracker.go:151
↓ 4 callers
Function
NewStaticTableFilter
(dbs, tables FilterAndRewriteConfigs)
copydb/filter.go:23
↓ 4 callers
Method
NewValues
()
dml_events.go:78
↓ 4 callers
Method
OldValues
()
dml_events.go:77
↓ 4 callers
Function
ParseLogLevel
ParseLogLevel converts a string to a LogLevel. It returns the parsed level and true on success, or LogLevelInfo and false if the string is not recogni
logger.go:46
↓ 4 callers
Function
RandData
()
testhelpers/data_writer.go:15
↓ 4 callers
Method
ReportError
Usually called from Fatal. When called from Fatal, if this method returns true, Fatal should panic, otherwise it should not.
error_handler.go:14
↓ 4 callers
Method
Result
Returns the result and the status of the verification. To check the status, call IsStarted() and IsDone() on VerificationResultAndStatus. If the veri
verifier.go:91
↓ 4 callers
Method
RowCount
()
inline_verifier.go:61
↓ 4 callers
Method
RowMd5Query
()
table_schema_cache.go:86
↓ 4 callers
Method
Stop
()
testhelpers/data_writer.go:103
↓ 4 callers
Function
TargetToSourceRewrites
(databaseRewrites map[string]string)
table_schema_cache.go:337
↓ 4 callers
Method
UpdateBatchSizes
(db *sql.DB, tables TableSchemaCache)
config.go:446
↓ 4 callers
Method
columnsToVerify
(table *TableSchema)
iterative_verifier.go:563
↓ 4 callers
Function
ensureTestRowsAreReverified
(ferry *testhelpers.TestFerry)
test/go/iterative_verifier_integration_test.go:262
↓ 4 callers
Method
kill_and_wait_for_exit
test/helpers/ghostferry_helper.rb:383
↓ 4 callers
Method
logDeprecated
(deprecatedConfig string, newConfig string)
config.go:933
↓ 4 callers
Method
mergeWithDefaultTags
(tags []MetricTag)
metrics.go:128
↓ 4 callers
Function
selectiveFerry
(tenantId interface{})
sharding/test/trivial_integration_test.go:23
↓ 4 callers
Function
setupLagTable
(db *sql.DB, ctx context.Context)
test/go/lag_throttler_test.go:36
↓ 4 callers
Function
zerologContextField
zerologContextField adds a key-value pair to a zerolog.Context using the native typed method when possible, avoiding Interface() reflection for the mo
zerolog_logger.go:43
↓ 3 callers
Method
AddBinlogEventHandler
Attach an event handler to a replication BinLogEvent We only support attaching events to any of the events defined in https://github.com/go-mysql-org/
binlog_streamer.go:320
↓ 3 callers
Method
AddDoneListener
(listener func() error)
data_iterator.go:203
↓ 3 callers
Method
ApplicableEvent
ApplicableEvent is used to filter events for rows that have been filtered in ConstrainSelect. ApplicableEvent should return true if the event is for a
filter.go:25
↓ 3 callers
Method
AsSQLQuery
(schemaName, tableName string)
row_batch.go:62
↓ 3 callers
Method
AssertOnlyDataOnSourceAndTargetIs
(data string)
testhelpers/integration_test_case.go:174
↓ 3 callers
Function
AssertQueriesHaveEqualResult
(t *testing.T, ferry *ghostferry.Ferry, query string, args ...interface{})
testhelpers/helper_methods.go:87
↓ 3 callers
Method
AssertQueriesHaveEqualResult
(query string, args ...interface{})
testhelpers/integration_test_case.go:193
↓ 3 callers
Method
ConnectBinlogStreamerToMysqlFrom
(startFromBinlogPosition mysql.Position)
binlog_streamer.go:124
↓ 3 callers
Method
Copy
()
inline_verifier.go:84
↓ 3 callers
Function
FixturePath
(name string)
testhelpers/fixtures.go:14
↓ 3 callers
Method
IndexConfigForTables
SchemaName => TableName => IndexConfig
sharding/config.go:88
↓ 3 callers
Function
Int64Value
(value interface{})
dml_events.go:477
↓ 3 callers
Method
MarshalJSON
MarshalJSON serializes the key for state persistence and checkpointing.
pagination_key.go:29
↓ 3 callers
Function
NewStmtCache
()
utils.go:154
← previous
next →
101–200 of 1,224, ranked by callers