fwolfsjaeger/doctrine-cockroachdb-bundle

Doctrine DBAL CockroachDB Driver Bundle for Symfony

0.9.0 2024-04-11 17:58 UTC

This package is auto-updated.

Last update: 2024-11-11 19:11:27 UTC


README

Latest Stable Version Total Downloads PHP Version Require License

CockroachDB Driver Bundle for Symfony

CockroachDB Driver is a Doctrine DBAL Driver to handle incompatibilities with PostgreSQL. This package is meant to be used with (and requires) Symfony 6.0 or newer.

It is based on https://github.com/lapaygroup/doctrine-cockroachdb by Lapay Group.

CockroachDB Quick Setup Guide

Usage

Connection configuration example using a DSN

# doctrine.yaml
doctrine:
    dbal:
        url: crdb://<user>@<host>:<port(26257)>/<dbname>?sslmode=verify-full&sslrootcert=<path-to-ca.crt>&sslcert=<path-to-user.crt>&sslkey=<path-to-user.key>

Alternative: YAML connection configuration example

# doctrine.yaml
doctrine:
    dbal:
        user: <user>
        port: <port(26257)>
        host: <host>
        dbname: <dbname>
        sslmode: verify-full
        sslrootcert: <path-to-ca.crt>
        sslcert: <path-to-user.crt>
        sslkey: <path-to-user.key>
        driver: crdb

License

MIT