Home / Companies / Cockroach Labs / Blog / Post Details
Content Deep Dive

Peewee ORM + CockroachDB

Blog post from Cockroach Labs

Post Details
Company
Date Published
Author
Charles Leifer
Word Count
337
Language
English
Hacker News Points
-
Summary

Peewee ORM, a lightweight and intuitive Python Object-Relational Mapping tool, has been updated to support CockroachDB, a distributed and horizontally-scalable SQL database. This new compatibility allows developers to easily configure a CockroachDatabase instance and leverage its SQL API, which is similar to Postgres, including features like jsonb and arrays. Peewee's integration with CockroachDB also supports client-side transaction retries through a helper method, enabling seamless execution of transactional SQL statements with automatic retries until a transaction is successfully committed. The update aims to simplify the use of distributed databases, making it more accessible for developers to scale their applications with minimal effort.