Interface: SnowflakeGenerateOptions
snowflake/src.SnowflakeGenerateOptions
Options for Snowflake#generate
Properties
increment
• Optional
increment: bigint
The increment to use
default
0n
remark
keep in mind that this bigint is auto-incremented between generate calls
Defined in
projects/utilities/packages/snowflake/src/lib/Snowflake.ts:126
processId
• Optional
processId: bigint
The process ID to use, will be truncated to 5 bits (0-31)
default
1n
Defined in
projects/utilities/packages/snowflake/src/lib/Snowflake.ts:138
timestamp
• Optional
timestamp: number
| bigint
| Date
Timestamp or date of the snowflake to generate
default
Date.now()
Defined in
projects/utilities/packages/snowflake/src/lib/Snowflake.ts:119
workerId
• Optional
workerId: bigint
The worker ID to use, will be truncated to 5 bits (0-31)
default
0n
Defined in
projects/utilities/packages/snowflake/src/lib/Snowflake.ts:132