summaryrefslogtreecommitdiff
path: root/doc/API
diff options
context:
space:
mode:
Diffstat (limited to 'doc/API')
-rw-r--r--doc/API/Database9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/API/Database b/doc/API/Database
new file mode 100644
index 00000000..70ac780a
--- /dev/null
+++ b/doc/API/Database
@@ -0,0 +1,9 @@
+Most of the important database access is through the $form object.
+
+$form->{dbh} is a non-autocommit database handle.
+
+$form->dbinit initiates the $form->{dbh} and caches the custom fields table.
+
+$form->callproc($procname, @arguments) returns @hashref_records
+This is a wrapper for the stored procedures. Prepares a parameterized query,
+fills in the arguments, and returns the results as a list of hashrefs.