| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
eDBxmlMapping()
|
| |
|
| |
|
| |
|
|
|
|
| |
This also improves debugging as well, if debug logging is enabled and log level is >= 40.
|
| |
|
| |
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Implemented eDBadminEditAdminAccess(...) function in db driver
|
|
|
|
| |
Follow up from commit 062a3c92343a5fa371f8637f8bca88aacca14cc4
|
|
|
|
| |
hashing algorithms
|
|
|
|
| |
eDBgetTableFieldMapping(...) function
|
| |
|
| |
|
| |
|
|
|
|
| |
- lastlog
|
| |
|
|
|
|
|
|
|
| |
This attribute can be "sha512" if the contents of the field is already
hashed with SHA512. The other official value is "none", which will then
tell eDBxmlMapping(...) to hash the value. Unknown values will be
treated like 'none'.
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
eurephiaXML_getRoot(...) function
|
|
|
|
|
| |
The function did not work after the change of the field mapping system
changed when reworking things from eurephiaUSER{LIST,INFO} to XML
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
This can make it possible to get a value getting set to NULL if
this flag contains the FIELD_* value of the field being set to NULL.
If more fields wants to be reset, these field values can be bitwise
ORed together into the setnull_flag.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|