Merge lp:~jameinel/u1db/u1db-client-init into lp:u1db
Proposed by
John A Meinel
Status: | Merged |
---|---|
Merged at revision: | 105 |
Proposed branch: | lp:~jameinel/u1db/u1db-client-init |
Merge into: | lp:u1db |
Prerequisite: | lp:~jameinel/u1db/u1db-client-commandline |
Diff against target: |
79 lines (+37/-0) 2 files modified
u1db/commandline/client.py (+15/-0) u1db/tests/commandline/test_client.py (+22/-0) |
To merge this branch: | bzr merge lp:~jameinel/u1db/u1db-client-init |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Samuele Pedroni | Approve | ||
Review via email: mp+80896@code.launchpad.net |
Description of the change
This adds 'u1db-client init-db test.db' as a command. Basically get/put/create require the database to already exist, this exposes a way to create a database.
I think we'll want to have a more api-way of creating a database rather than creating the SQLite instance, but this at least gets us something for the demo.
To post a comment you must log in.
Small update, we need a way to set the 'replica_uid'.
We could do this by setting a random (an actual uuid), and make setting it optional.
But this was the fastest path to getting something.