uuid

package
v0.29.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package uuid provides functions to generate RFC 4122 UUIDs.

https://sqlite.org/src/file/ext/misc/uuid.c

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(db *sqlite3.Conn) error

Register registers the SQL functions:

  • uuid([ version [, domain/namespace, [ id/data ]]]): to generate a UUID as a string
  • uuid_str(u): to convert a UUID into a well-formed UUID string
  • uuid_blob(u): to convert a UUID into a 16-byte blob
  • uuid_extract_version(u): to extract the version of a RFC 4122 UUID
  • uuid_extract_timestamp(u): to extract the timestamp of a version 1/2/6/7 UUID
  • gen_random_uuid(u): to generate a version 4 (random) UUID

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL