From 155cf6aeea9ba7ecbc39face6442d3ce1b03ad8e Mon Sep 17 00:00:00 2001
From: Nils Schwabe
Date: Wed, 4 Jun 2014 14:27:03 +0200
Subject: Add webinterface with functionallity
---
management-interface/lib/api/classDB_1_1SQL.html | 547 +++++++++++++++++++++++
1 file changed, 547 insertions(+)
create mode 100644 management-interface/lib/api/classDB_1_1SQL.html
(limited to 'management-interface/lib/api/classDB_1_1SQL.html')
diff --git a/management-interface/lib/api/classDB_1_1SQL.html b/management-interface/lib/api/classDB_1_1SQL.html
new file mode 100644
index 0000000..f993b6a
--- /dev/null
+++ b/management-interface/lib/api/classDB_1_1SQL.html
@@ -0,0 +1,547 @@
+
+
+
+
+
+
+
PDO wrapper.
+ More...
+
+
+
+
+
+

+
+
+
+ |
+| | begin () |
+| |
+| | rollback () |
+| |
+| | commit () |
+| |
+| | type ($val) |
+| |
+| | value ($type, $val) |
+| |
+| | exec ($cmds, $args=NULL, $ttl=0, $log=TRUE) |
+| |
+| | count () |
+| |
+| | log () |
+| |
+| | schema ($table, $fields=NULL, $ttl=0) |
+| |
+| | quote ($val, $type=\PDO::PARAM_STR) |
+| |
+| | uuid () |
+| |
+| | driver () |
+| |
+| | version () |
+| |
+| | name () |
+| |
+| | quotekey ($key) |
+| |
+| | __construct ($dsn, $user=NULL, $pw=NULL, array $options=NULL) |
+| |
+
+ |
+|
+ | $dsn |
+| | Data source name.
|
+| |
+|
+ | $engine |
+| | Database engine.
|
+| |
+|
+ | $dbname |
+| | Database name.
|
+| |
+|
+ | $trans =FALSE |
+| | Transaction flag.
|
+| |
+|
+ | $rows =0 |
+| | Number of rows affected by query.
|
+| |
+|
+ | $log |
+| | SQL log.
|
+| |
+
+
+
+
+
+
+
+
+ | DB\SQL::__construct |
+ ( |
+ |
+ $dsn, |
+
+
+ |
+ |
+ |
+ $user = NULL, |
+
+
+ |
+ |
+ |
+ $pw = NULL, |
+
+
+ |
+ |
+ array |
+ $options = NULL |
+
+
+ |
+ ) |
+ | |
+
+
+
+
Instantiate class
+
- Parameters
-
+
+ | $dsn | string |
+ | $user | string |
+ | $pw | string |
+ | $options | array |
+
+
+
+
+
+
+
+
+
+
+
+
+ | DB\SQL::begin |
+ ( |
+ | ) |
+ |
+
+
+
+
Begin SQL transaction
+
- Returns
- bool
+
+
+
+
+
+
+
+
+ | DB\SQL::commit |
+ ( |
+ | ) |
+ |
+
+
+
+
Commit SQL transaction
+
- Returns
- bool
+
+
+
+
+
+
+
+
+ | DB\SQL::count |
+ ( |
+ | ) |
+ |
+
+
+
+
Return number of rows affected by last query
+
- Returns
- int
+
+
+
+
+
+
+
+
+ | DB\SQL::driver |
+ ( |
+ | ) |
+ |
+
+
+
+
Return database engine
+
- Returns
- string
+
+
+
+
+
+
+
+
+ | DB\SQL::exec |
+ ( |
+ |
+ $cmds, |
+
+
+ |
+ |
+ |
+ $args = NULL, |
+
+
+ |
+ |
+ |
+ $ttl = 0, |
+
+
+ |
+ |
+ |
+ $log = TRUE |
+
+
+ |
+ ) |
+ | |
+
+
+
+
Execute SQL statement(s)
+
- Returns
- array|int|FALSE
+
- Parameters
-
+
+ | $cmds | string|array |
+ | $args | string|array |
+ | $ttl | int |
+ | $log | bool |
+
+
+
+
+
+
+
+
+
+
+
+ | DB\SQL::log |
+ ( |
+ | ) |
+ |
+
+
+
+
Return SQL profiler results
+
- Returns
- string
+
+
+
+
+
+
+
+
+ | DB\SQL::name |
+ ( |
+ | ) |
+ |
+
+
+
+
Return database name
+
- Returns
- string
+
+
+
+
+
+
+
+
+ | DB\SQL::quote |
+ ( |
+ |
+ $val, |
+
+
+ |
+ |
+ |
+ $type = \PDO::PARAM_STR |
+
+
+ |
+ ) |
+ | |
+
+
+
+
Quote string
+
- Returns
- string
+
- Parameters
-
+
+
+
+
+
+
+
+
+
+
+
+ | DB\SQL::quotekey |
+ ( |
+ |
+ $key | ) |
+ |
+
+
+
+
Return quoted identifier name
+
- Returns
- string
+
- Parameters
-
+
+
+
+
+
+
+
+
+
+
+
+ | DB\SQL::rollback |
+ ( |
+ | ) |
+ |
+
+
+
+
Rollback SQL transaction
+
- Returns
- bool
+
+
+
+
+
+
+
+
+ | DB\SQL::schema |
+ ( |
+ |
+ $table, |
+
+
+ |
+ |
+ |
+ $fields = NULL, |
+
+
+ |
+ |
+ |
+ $ttl = 0 |
+
+
+ |
+ ) |
+ | |
+
+
+
+
Retrieve schema of SQL table
+
- Returns
- array|FALSE
+
- Parameters
-
+
+ | $table | string |
+ | $fields | array|string |
+ | $ttl | int |
+
+
+
+
+
+
+
+
+
+
+
+ | DB\SQL::type |
+ ( |
+ |
+ $val | ) |
+ |
+
+
+
+
Map data type of argument to a PDO constant
+
- Returns
- int
+
- Parameters
-
+
+
+
+
+
+
+
+
+
+
+
+ | DB\SQL::uuid |
+ ( |
+ | ) |
+ |
+
+
+
+
Return UUID
+
- Returns
- string
+
+
+
+
+
+
+
+
+ | DB\SQL::value |
+ ( |
+ |
+ $type, |
+
+
+ |
+ |
+ |
+ $val |
+
+
+ |
+ ) |
+ | |
+
+
+
+
Cast value to PHP type
+
- Returns
- scalar
+
- Parameters
-
+
+ | $type | string |
+ | $val | scalar |
+
+
+
+
+
+
+
+
+
+
+
+ | DB\SQL::version |
+ ( |
+ | ) |
+ |
+
+
+
+
Return server version
+
- Returns
- string
+
+
+
+
The documentation for this class was generated from the following file:
+
--
cgit v1.2.3-55-g7522