[Pharo-dev] Using P3 to connect to CockroachDB
Sven Van Caekenberghe
sven at stfx.eu
Mon Apr 23 05:33:28 EDT 2018
Just a quick note: it is possible to use P3 (the lean and mean PostgreSQL client for Pharo using frontend/backend protocol 3.0, https://github.com/svenvc/P3) to connect to CockroachDB (an SQL database for global cloud services, an open source clone of Google Spannner, https://www.cockroachlabs.com) as it supports the same line protocol.
Just make sure to load the latest version of P3 (and ZTimestamp when you are on Pharo 7).
If you do their tutorial, you can set up your connection as follows:
P3Client url: 'psql://root@localhost:26257/bank'.
More information about the Pharo-dev