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
We need a way to name replicas, but then we can write an integration test for replication that does: