package
Version:
v0.5.1
Opens a new window with list of versions in this module.
Published: Feb 27, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Max represents struct used to setting new autoincrement value
using simple "SELECT MAX(ID)" approach
func (n *Max) CanUse(iopts ...interface{}) bool
CanUse returns true if Handle function can be executed
Handle sets new autoincrement value using simple "SELECT MAX(ID)" approach
Next represents struct used to setting new autoincrement value
using insert inside new transaction finished by rollback
func (n *Next) CanUse(iopts ...interface{}) bool
CanUse returns true if Handle function can be executed
func (*Next) Handle ¶
added in
v0.2.2
Handle sets new autoincrement value by inserting row using new transaction finished by rollback, uses locking
Source Files
¶
Click to show internal directories.
Click to hide internal directories.