251 Commits

Author SHA1 Message Date
ryan
f9285fdb29 add schema 2016-12-13 11:59:57 +01:00
ryan
f3cc167edb refactor 2016-12-13 11:59:57 +01:00
ryan
ca94574150 more queries 2016-12-13 11:59:57 +01:00
ryan
2152c245ff more mongocalls 2016-12-13 11:59:57 +01:00
ryan
4877f5b03a more mongocalls 2016-12-13 11:59:57 +01:00
ryan
eb18d576e9 more mongocalls 2016-12-13 11:59:57 +01:00
ryan
aa08227740 add some mongodb setup 2016-12-13 11:59:57 +01:00
Sylvain Bellemare
caeea09d33 Put std lib import at the top 2016-12-13 11:50:04 +01:00
Rodolphe Marques
f09285d32f Fixed some code typos
Changed election pipeline to use the new changefeed abstraction
2016-12-13 11:16:29 +01:00
Rodolphe Marques
8266dfadb0 Fixed typos
Fixed failing test
2016-12-13 11:15:49 +01:00
Rodolphe Marques
dbf53c80e7 Removed rethinkdb dependencies in pipelines.block 2016-12-13 11:15:26 +01:00
Rodolphe Marques
341f43267a Initial implementation of the changefeed abstraction 2016-12-13 11:14:25 +01:00
Sylvain Bellemare
8a68e24e69 Abstract db layer cherrypick docs (#932)
* Add README.md to tests/ to describe test structure and pytest customizations

* Add package-level docstrings to backends

* Add README.md explaining the backend architecture

* Small improvements to docstrings in backend modules

* Restructure the backend automodule docs

* Add more docstrings to backend connections

* Add init to base backend Connection class to document expected interface

* Reword the backend/README.md docs
2016-12-12 18:28:43 +01:00
Sylvain Bellemare
24a701096d Filter out block id 2016-12-12 17:38:41 +01:00
Brett Sun
5f9c0f7b1b Fix docstring rst errors in the backend modules 2016-12-12 16:07:41 +01:00
Brett Sun
345fc27a39 Remove durability from all database-related calls 2016-12-12 16:07:41 +01:00
Sylvain Bellemare
b9cfc5d9a2 Sync up with master 2016-12-12 15:53:56 +01:00
vrde
2a820b46f3 Add connection Class 2016-12-12 15:53:56 +01:00
vrde
6814b06c7b Add db connection info to logging 2016-12-12 15:53:56 +01:00
vrde
a634aea5a7 Add logging statement 2016-12-12 15:53:56 +01:00
Brett Sun
b51a59e503 Use as the argument name for for clarity 2016-12-12 15:53:56 +01:00
Brett Sun
ad65e86131 Rename to in schema function arguments to for consistency 2016-12-12 15:53:56 +01:00
Brett Sun
3555b7ef94 Add argument to allow an existing connection to be reused when initializing the database 2016-12-12 15:53:56 +01:00
Brett Sun
27eaae01a7 Fix base connection's run query interface 2016-12-12 15:53:56 +01:00
Brett Sun
32b6c50d63 Fix usage of backend functions that weren't getting a connection passed in 2016-12-12 15:48:48 +01:00
Brett Sun
c6acd8e1f5 Add generic init_database() function to set up database schema 2016-12-12 15:48:48 +01:00
Brett Sun
4343a9297c Add docstrings for database schema interface 2016-12-12 15:48:48 +01:00
Brett Sun
c5d55783fa Move docstrings out of rethinkdb/query.py implementation into interface 2016-12-12 15:48:48 +01:00
Brett Sun
c9766b5e92 Generalize naming of module dispatch decorator factory 2016-12-12 15:48:48 +01:00
Brett Sun
eda1c1bf55 Rename backend implementation decorators to be aligned with their action of registering functions 2016-12-12 15:48:48 +01:00
Brett Sun
6e14a63291 Add backlog and votes secondary indexes to rethinkdb's create_index() 2016-12-12 15:48:48 +01:00
Sylvain Bellemare
d43e77ce4a Add docs for backend 2016-12-12 15:48:48 +01:00
Sylvain Bellemare
67af0deaae Remove unused exception variable 2016-12-12 15:48:48 +01:00
Sylvain Bellemare
261fe8ebf6 Remove superfluous else 2016-12-12 15:48:48 +01:00
Sylvain Bellemare
be8f3dc69d Remove superfluous parentheses 2016-12-12 15:48:48 +01:00
Sylvain Bellemare
cd8d038a83 End sentence with period :) 2016-12-12 15:48:48 +01:00
Sylvain Bellemare
2be623221f Add line between std lib & 3rd party imports 2016-12-12 15:48:48 +01:00
Sylvain Bellemare
f341bd1586 Rename backend.util to backend.utils 2016-12-12 15:48:48 +01:00
Brett Sun
d4da573389 Sync query interface with rethinkdb implementation based on latest changes 2016-12-12 15:48:48 +01:00
Brett Sun
75ef0f2fda Import the backend interfaces on module import 2016-12-12 15:48:48 +01:00
Brett Sun
ab18203b7c Register rethinkdb backend implementation to backend interface dispatchers 2016-12-12 15:48:48 +01:00
Brett Sun
daa0fe1f51 Add utility decorator for registering backend dispatches based on modules 2016-12-12 15:48:48 +01:00
Brett Sun
2eb83b9993 Remove unnecessary export of base Connection from backend/ 2016-12-12 15:48:48 +01:00
Brett Sun
dabb81ac98 Replace cherrypicked class-based architecture with singledispatch 2016-12-12 15:48:48 +01:00
vrde
a08ba013a0 Remove dependency from bigchaindb.config 2016-12-12 15:47:43 +01:00
vrde
87c7228bc4 Add docstring, fix name 2016-12-12 15:47:43 +01:00
vrde
26c844ec22 Add defaults, fix import 2016-12-12 15:47:43 +01:00
vrde
2fd0aeca9f Add error handling 2016-12-12 15:47:43 +01:00
Brett Sun
c9a3d01112 Move db/ files into backend/ 2016-12-12 15:47:43 +01:00
vrde
53fb9f3d5f Add connection Class 2016-12-12 15:47:43 +01:00