Skip to content

Commit

Permalink
Showing 5 changed files with 477 additions and 5 deletions.
10 changes: 7 additions & 3 deletions docs/database.rst
Original file line number Diff line number Diff line change
@@ -30,7 +30,9 @@ db_add
------

This operation is somewhat straight forward. It adds an entity to the
database::
database:

.. code-block:: lua
domain_id = db_add('domain', {
value='example.com',
@@ -47,7 +49,9 @@ triggered and an db_update is performed instead.
db_update
---------

Update some mutable fields of an entity::
Update some mutable fields of an entity:

.. code-block:: lua
db_update('ipaddr', arg, {
asn=lookup['asn'],
@@ -69,7 +73,7 @@ added to the database and has not been removed from scope, this function
returns that entities id. This is somewhat similar to ``db_add``, except that
``db_select`` never adds anything to the database.

::
.. code-block:: lua
domain_id = db_select('domain', 'example.com')
if domain_id ~= nil then
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
@@ -28,3 +28,4 @@ Getting Started
usage
scripting
database
reference
2 changes: 1 addition & 1 deletion docs/man.rst
Original file line number Diff line number Diff line change
@@ -10,4 +10,4 @@ todo
:glob:

usage
scripting
reference
Loading
Oops, something went wrong.

0 comments on commit 9cf37f3

Please sign in to comment.