Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/craigpastro/sqlite-uuidv7
https://github.com/craigpastro/sqlite-uuidv7
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/craigpastro/sqlite-uuidv7
- Owner: craigpastro
- License: mit
- Created: 2023-06-08T03:03:04.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-06-08T15:11:03.000Z (over 1 year ago)
- Last Synced: 2024-06-21T17:03:55.837Z (6 months ago)
- Language: Go
- Size: 3.91 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sqlite-uuidv7
An SQLite extension for generating
[UUIDv7s](https://datatracker.ietf.org/doc/html/draft-peabody-dispatch-new-uuid-format).
It wraps https://github.com/gofrs/uuid.## Usage
You will need a version of SQLite that allows loading of extensions. If you are
on a Mac, you can `brew install sqlite`.```text
$ make
$ sqlite3
> .load uuidv7.so
> select uuid_generate_v7();
01889914-efa9-7ec3-997b-c2b1de310c56
> select hex(uuid_generate_v7_bytes());
0188991513087EC3B78D3FD9361C5B32
> .quit
```