Local development with cloud-spanner

前端 未结 4 2089
北海茫月
北海茫月 2021-02-18 16:45

Is there any way to do local development with cloud spanner? I\'ve taken a look through the docs and the CLI tool and there doesn\'t seem to be anything there. Alternatively, ca

4条回答
  •  独厮守ぢ
    2021-02-18 16:59

    CockroachDB should behave similarly to Cloud Spanner for reads and you can run it natively on Mac OS X and Linux, and on Windows using Docker. For local development, the lack of TrueTime will not make a difference as everything is running on one machine.

    For writes you're out of luck right now. Spanner has a custom API for writes while CockroachDB supports standard INSERT/UPDATE/DELETE statements. The upshot of this is that CockroachDB is more likely to work with your ORM of choice and we're working hard to extend that support.

提交回复
热议问题