Extends
Constructor
- options
- Type:
Object - id
- Type:
stringorinteger - prefix
- Type:
string - postfix
- Type:
string - Default:
"" - delimiter
- Type:
string - Default:
"_"
new IncrementalKey(options)
IncrementalKey
Parameters:
Methods
- instance
- Type:
Instance - id
- Type:
string
generate(instance)
Promise<IncrementalKey>
generates new key This method is called before inserting new document to a bucket The method must return a prosime
Parameters:
Promise<IncrementalKey>
setId(id)
undefined
Parameters:
undefined
Inherited Methods
- <undefined>
- Type:
string
getId()
Parameters:
getOptions()
KeyOptionsObject
Returns:
KeyOptionsObject
isGenerated()
boolean
Returns:
boolean
toString()
string
returns the key
Returns:string