MCPcopy Create free account
hub / github.com/Shopify/ghostferry / NewCursor

Method NewCursor

cursor.go:49–57  ·  view source on GitHub ↗

returns a new Cursor with an embedded copy of itself

(table *TableSchema, startPaginationKey, maxPaginationKey PaginationKey)

Source from the content-addressed store, hash-verified

47
48// returns a new Cursor with an embedded copy of itself
49func (c *CursorConfig) NewCursor(table *TableSchema, startPaginationKey, maxPaginationKey PaginationKey) *Cursor {
50 return &Cursor{
51 CursorConfig: *c,
52 Table: table,
53 MaxPaginationKey: maxPaginationKey,
54 RowLock: true,
55 lastSuccessfulPaginationKey: startPaginationKey,
56 }
57}
58
59// returns a new Cursor with an embedded copy of itself
60func (c *CursorConfig) NewCursorWithoutRowLock(table *TableSchema, startPaginationKey, maxPaginationKey PaginationKey) *Cursor {

Callers 2

RunMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected