Documentation Index
Fetch the complete documentation index at: https://mintlify.com/MemoriLabs/Memori/llms.txt
Use this file to discover all available pages before exploring further.
CockroachDB
CockroachDB is a distributed SQL database that uses the PostgreSQL wire protocol. It works with Memori through the samepsycopg driver as PostgreSQL — no special adapter needed.
Install
Quick Start
Connection Strings
| Environment | Connection String |
|---|---|
| Local | cockroachdb+psycopg2://root@localhost:26257/memori_db |
| With Auth | cockroachdb+psycopg2://user:pass@host:26257/memori_db |
| CockroachDB Cloud | cockroachdb+psycopg2://user:pass@cluster.cockroachlabs.cloud:26257/memori_db?sslmode=verify-full |
| PostgreSQL scheme | postgresql+psycopg2://user:pass@host:26257/memori_db |
Complete Example
CockroachDB’s distributed architecture makes it ideal for globally distributed AI applications that need strong consistency guarantees.
Why CockroachDB?
- Distributed SQL: Horizontal scaling with ACID guarantees
- PostgreSQL Compatible: Works with standard PostgreSQL drivers
- Resilient: Automatic failover and replication
- Global Scale: Multi-region deployments with low latency