tursodatabase / turso-cli

Command line interface to Turso.
https://turso.tech
MIT License
215 stars 35 forks source link

Integration test for replication #96

Closed penberg closed 1 year ago

penberg commented 1 year ago

We need a way to name replicas, but then we can write an integration test for replication that does:

turso db create d1
turso db shell d1 "CREATE TABLE users (email TEXT)"
turso db shell d1 "INSERT INTO users (email) VALUES ('alice@examle.com')"
turso db replicate d1 # and give it name r1
turso db shell r1 "SELECT * FROM users"
# should return the inserted data
penberg commented 1 year ago

Depends on https://github.com/chiselstrike/iku-turso-cli/issues/97