Skip to content

uuid capability

uuid adds UUIDv7 primary key generation to your Go service — time-sortable, index-friendly, and wrapped in type-safe ID types.

  • UUID generation
  • Type-safe ID wrappers

Use uuid with any relational database. Auto-increment integers leak business data (your competitor can enumerate your orders). Random UUIDs (v4) fragment B-tree indexes and hurt write performance at scale. UUIDv7 is time-sortable, so inserts are sequential and indexes stay healthy.

Terminal window
verikt new my-service --language go --cap uuid
# or add to an existing service:
verikt add uuid

postgres

PostgreSQL — the primary pairing for UUIDv7 primary keys.

mysql

MySQL with UUIDv7 for index-friendly primary keys.

repository

Repository pattern using type-safe UUID ID wrappers.