1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
*** Building and installing ***
cmake .; make
sudo make install
*** Test from the build folder ***
qmlscene -I ./modules examples/u1db-qt-example-1.qml
qmltestrunner -import ./modules
make check
*** Run reference test cases ***
make
env PYTHONPATH=/path/to/u1db ./tests/test-upstream.py
*** Use U1DB Python API to check sqlite compatiblity ***
python -c "import u1db;db=u1db.open('pDb',create=False);print(db.get_all_docs());print(db.list_indexes())"
python -c "import u1db;db=u1db.open('pDb',create=True);db.create_index('by-phone', 'gents.phone');doc3 = db.create_doc({'gents': [ {'name': 'Mary', 'phone': '12345'}, {'name': 'Peter', 'phone': '54321'} ]})"
|