Documentation
¶
Overview ¶
Package sequencer provides SQLX-backed identifier allocation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) Reserve ¶
Reserve records supplied values before the first allocation for a table. It does not allocate, change the destination, or advance a database sequence. Callers with original-presence evidence pass only originally supplied rows. Native metadata unifies supplied-only aliases before allocation. A supplied transaction acquires native write intent before reading sequence identity.
func (*Service) WithStrategy ¶
func (s *Service) WithStrategy(strategy dialect.PresetIDStrategy) *Service
WithStrategy explicitly selects a native strategy. Empty means the product default; Datly never substitutes a strategy based on transaction presence. Configure before the service is first used.