You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/guides/pages/bloblang/functions.adoc
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -334,6 +334,26 @@ Generates a new RFC-4122 UUID each time it is invoked and prints a string repres
334
334
root.id = uuid_v4()
335
335
```
336
336
337
+
=== `uuid_v7`
338
+
339
+
Generates a new time-ordered UUID each time it is invoked and prints a string representation. This function is useful when the exact timing of events is important, such as during data migration or replication.
340
+
341
+
==== Parameters
342
+
343
+
- *`time`* <(optional) timestamp> The timestamp to use for the time-ordered portion of the UUID. If not specified, the current time is used.
344
+
345
+
==== Examples
346
+
347
+
```coffeescript
348
+
root.id = uuid_v7()
349
+
```
350
+
351
+
You can also specify the timestamp for the `uuid_v7`.
0 commit comments