forked from discoproject/discodb
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* superb [DDB-12] [DDB-13] [DDB-14]
- Loading branch information
Showing
30 changed files
with
1,226 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Bionic Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- $default-branch | ||
- dan | ||
jobs: | ||
build: | ||
runs-on: | ||
- disco-runner | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: update system | ||
run: | ||
sudo apt-get update -y; | ||
sudo apt-get upgrade -y; | ||
sudo rm -rf /usr/include/discodb.h /usr/include/ddb*.h /usr/lib/libdiscodb.so | ||
- name: install c dependency | ||
run: | ||
sudo apt-get install -y wget libcmph-dev cmake make build-essential; | ||
wget http://pkgs.bauman.space/discodb/sample.ddb -O /tmp/sample.ddb; | ||
wget http://pkgs.bauman.space/discodb/animals.ddb -O /tmp/animals.ddb; | ||
wget http://pkgs.bauman.space/discodb/cjk.ddb -O /tmp/cjk.ddb; | ||
wget http://pkgs.bauman.space/discodb/myths.ddb -O /tmp/myths.ddb; | ||
- name: build debug library | ||
run: | ||
rm -rf cmake-build; | ||
mkdir cmake-build && cd cmake-build; | ||
cmake -DCMAKE_BUILD_TYPE=Debug ..; | ||
make; | ||
make test; | ||
- name: build release library | ||
run: | ||
rm -rf cmake-release; | ||
mkdir cmake-release && cd cmake-release; | ||
cmake -DCMAKE_BUILD_TYPE=Release ..; | ||
make; | ||
make test; | ||
sudo install libdiscodb.so /usr/lib/libdiscodb.so ; | ||
sudo install ../src/*.h /usr/include/. ; | ||
- name: install python dependency | ||
run: | ||
sudo apt-get install -y python3-dev python3-wheel python3-pip | ||
- name: build python library | ||
run: | ||
cd python; | ||
python3 setup.py bdist_wheel ; | ||
find . -name "*.so" | xargs -P1 -n1 ldd ; | ||
pip3 install --force-reinstall dist/discodb*.whl ; | ||
python3 util/test_merge.py ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,5 @@ cmake_install.cmake | |
CmakeCache.txt | ||
libdiscodb.* | ||
*.whl | ||
*.egg-info/ | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
.. capi: | ||
capi -- C library to read/write DiscoDBs | ||
==================================================================== | ||
|
||
The C library is the native control application for reading and writing DiscoDBs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
.. cnf: | ||
cnf -- Query Language | ||
==================================================================== | ||
|
||
Both the Python API and C API will interpret CNF based queries to access values |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
|
||
.. pythonapi: | ||
pythonapi -- Python library to read/write DiscoDBs | ||
==================================================================== | ||
|
||
By default the python API links against libdiscodb at runtime and provides a thin wrapper to the functionality. | ||
|
||
|
||
|
||
Examples | ||
======== | ||
|
||
incrementally adding key/value pairs to a constructor:: | ||
|
||
from discodb import DiscoDBConstructor | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
.. automodule:: discodb.query | ||
:members: | ||
.. query: | ||
query -- Access methods to DiscoDB | ||
==================================================================== | ||
|
||
Overview of access methods | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
.. structure: | ||
structure -- C library to read/write DiscoDBs | ||
==================================================================== | ||
|
||
The C library is the native control application for reading and writing DiscoDBs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.