Skip to content

mysql capability

mysql wires MySQL into your Go service with a configured connection pool and repository pattern scaffold.

  • Connection setup with pool configuration
  • Health checks
  • Repository pattern scaffold

Use mysql for relational workloads on MySQL or MariaDB. Pair with migrations for versioned schema changes and uuid to avoid auto-increment IDs that leak business data.

Suggests: migrations, docker, uuid

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

migrations

Versioned schema migrations with golang-migrate.

uuid

UUIDv7 primary keys for index-friendly IDs.

docker

Local MySQL instance via Docker Compose.