Skip to content

Commit

Permalink
doc: Start documentation for extending aerovaldb
Browse files Browse the repository at this point in the history
  • Loading branch information
thorbjoernl committed Sep 3, 2024
1 parent c2358bb commit df6e599
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
9 changes: 9 additions & 0 deletions docs/extending-aerovaldb.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Extending AerovalDB
===================

AerovalDB is designed to allow custom implementations to allow storage in new storage formats. This is done by writing a new class inheriting from :class:`aerovaldb.AerovalDB`.

Unless overridden, getters and setters will be routed to :meth:`aerovaldb.AerovalDB._get` and :meth:`aerovaldb.AerovalDB._put` respectively, so this is were the main read and write behaviour should be implemented. These functions receive a route, as well as arguments based on which to get/put data and are intended to be used based on route-lookup (for example, :class:`aerovaldb.jsondb.jsonfiledb.AerovalJsonFileDB` translates the route into a file path template, while :class:`aerovaldb.sqlitedb.sqlitedb.AerovalSqliteDB` translates the route into a table name).

URI Scheme
----------
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ Writing
installation
api
locking
extending-aerovaldb
genindex

Indices and tables
Expand Down
4 changes: 2 additions & 2 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ This will install the latest stable aerovaldb version from PyPi:
::
pip install aerovaldb

Development releases
^^^^^^^^^^^^^^^^^^^^
Development releases:
^^^^^^^^^^^^^^^^^^^^^

This will install the most recent development version from Github:
::
Expand Down

0 comments on commit df6e599

Please sign in to comment.