| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
eDBxmlMapping()
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Also made the result XML from eDBadminAttemptsLog(...) more efficient
by not adding the username/certificate/ipaddress group tags if the
information is not present.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This field will be used to determine what kind of filter logic to add
when building SQL queries. The filter type is set in the fieldMapping
field nodes as an attribute named 'filter'. Their values and the
corresponding SQL conditions are:
filter | SQL condition
-----------------------+---------------
equals | =
not-equals | != / NOT(...)
less-than | <
less-than-equals | <=
greater-than | >
greater-than-equals | >=
-----------------------+---------------
The default value for each field is set in the eurephiadb_mapping.h
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Made sure we only include needed include files and checked that
the copyright headers are equal and correct
|
|
|
|
|
| |
Had to also extend the FIELD_* assignments to allow two
new fields to be mapped
|
|
|
|
| |
Implemented eDBadminEditAdminAccess(...) function in db driver
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
- lastlog
|
|
|
|
|
|
|
|
| |
document as input.
The node name of the input node must be <fieldMapping/>. In addition
this node must have an attribute called "table" which must match the
eDBfieldMap* structure given as input.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This new mapping function uses a flexible XML document as input, and
will be generic to all other tables as well. XML structure is:
<fieldMapping table="{table name}>
<{fieldname}>{value}</{fieldname}>
</fieldMapping>
An example:
<fieldMapping table="users">
<uid>1</uid>
<username>testuser1</username>
</fieldMapping>
This function will return a eDBfieldMap structure contatining the proper
fieldnames with values assigned, depending on the database map given
when called.
|
|
|
|
| |
possibility for table aliases
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
sqlite_query_mapped(...) function
The new sqlite_query_mapped(...) function will now consider the field
type when formatting the data values for SQLite. In addition reserved
words on the DATETIME data type will be preserved without quote
encapsulation.
Improved the sqlite_query_mapped(...) to also handle UPDATE, INSERT and
DELETE in addition to SELECT. The function now needs two eDBfieldMap
mappings. The first one will contain update/insert values, while the
last one defines search criteria.
|
|
|
|
|
| |
The functions in eurephiadb_common.[ch] was only adding functions
which was connected to the unified field mapping interface
|
| |
|
|
|
|
|
|
|
| |
In other words, rewrote commit 6d4373e026b3f12c5685e45e35f9f060379ed0f3.
Moved over all functions from that commit which could take advantage of
the new API for unified table/field translation.
|
|
|