sql Class Reference

SQL Help class. More...

Public Member Functions

 limit_parse ($str)
 Parse the limit string and split into more sql standard LIMIT (val) OFFSET (val).

Static Public Member Functions

static concat ($arg1, $arg2, $arg3)
 Concatenate arguments for use in sql query Since we are using 3 arguments, this method handles just this and nothing else.
static combine ()
 Given one SQL function F and N elements E, return (E_0) F (E_1) F (E_2) F .

Detailed Description

SQL Help class.


Member Function Documentation

static sql::combine (  )  [static]

Given one SQL function F and N elements E, return (E_0) F (E_1) F (E_2) F .

.. (E_N) Handles empty arguments just fine. Is helpful for ANDing or ORing long expressions without having to resort to hacks like WHERE 1=1

static sql::concat ( arg1,
arg2,
arg3 
) [static]

Concatenate arguments for use in sql query Since we are using 3 arguments, this method handles just this and nothing else.

Arguments 1 and 3 are assumed to be field names and argument 2 i assumed to be a string.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables

Generated on 30 Sep 2014 for ninja by  doxygen 1.6.1