File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -330,9 +330,7 @@ type TruncateableTable interface {
330
330
// AUTO_INCREMENT sequence. These methods should only be used for tables with and AUTO_INCREMENT column in their schema.
331
331
type AutoIncrementTable interface {
332
332
Table
333
- // PeekNextAutoIncrementValue returns the next AUTO_INCREMENT value without incrementing the current
334
- // auto_increment counter.
335
- PeekNextAutoIncrementValue (ctx * Context ) (uint64 , error )
333
+ AutoIncrementGetter
336
334
// GetNextAutoIncrementValue gets the next AUTO_INCREMENT value. In the case that a table with an autoincrement
337
335
// column is passed in a row with the autoinc column failed, the next auto increment value must
338
336
// update its internal state accordingly and use the insert val at runtime.
@@ -346,6 +344,8 @@ type AutoIncrementTable interface {
346
344
// This can include tables that don't implement AutoIncrementTable if the table is a read-only snapshot
347
345
// of an auto-incremented table.
348
346
type AutoIncrementGetter interface {
347
+ // PeekNextAutoIncrementValue returns the next AUTO_INCREMENT value without incrementing the current
348
+ // auto_increment counter.
349
349
PeekNextAutoIncrementValue (ctx * Context ) (uint64 , error )
350
350
}
351
351
You can’t perform that action at this time.
0 commit comments