|
Data Structures |
struct | sul_dataobj_header_t |
struct | sul_objfield_t |
struct | sul_objpeer_t |
struct | sul_peer_query_t |
struct | sul_peer_record_t |
Defines |
#define | SUL_PEER_NAME(table) peer_##table##_peer |
#define | SUL_PEER_PTR(table) &(SUL_PEER_NAME(table)) |
#define | SUL_PEER_DECLARE(table) extern sul_objpeer_t SUL_PEER_NAME(table) |
#define | SUL_PEER_IMPLEMENT(type, table) |
#define | SUL_PEER_IMPLEMENT_SEQ(type, table, seq) |
#define | SUL_PEER_FIELDS_BEGIN(table) sul_objfield_t peer_##table##_fields[] = { |
#define | SUL_PEER_FIELDS_FIELD(name, type) { name, type, 0, SUL_FIELD_FLAG_NONE, SUL_FIELD_KT_NONE } |
#define | SUL_PEER_FIELDS_FIELD_KEY(name, type, id) { name, type, 0, SUL_FIELD_FLAG_NONE, id } |
#define | SUL_PEER_FIELDS_PKFLD(name, type) { name, type, 0, SUL_FIELD_FLAG_PK, SUL_FIELD_KT_ID } |
#define | SUL_PEER_FIELDS_FKFLD(name, type) { name, type, 0, SUL_FIELD_FLAG_FK, SUL_FIELD_KT_NONE } |
#define | SUL_PEER_FIELDS_END() { NULL, SUL_FIELD_TYPE_NULL, 0, 0, 0 } } |
Typedefs |
typedef void * | sul_objectptr_t |
typedef enum sul_field_key_type_e | sul_field_key_type_e |
typedef enum sul_field_flags_e | sul_field_flags_e |
typedef enum sul_field_type_e | sul_field_type_e |
typedef sul_objfield_t | sul_objfield_t |
typedef sul_objpeer_t | sul_objpeer_t |
typedef sul_peer_query_t | sul_peer_query_t |
typedef sul_dataobj_header_t | sul_dataobj_header_t |
typedef sul_peer_record_t | sul_peer_record_t |
Enumerations |
enum | sul_field_key_type_e {
SUL_FIELD_KT_NONE = -1,
SUL_FIELD_KT_ID = 0,
SUL_FIELD_KT_NAME,
SUL_FIELD_KT_IP,
SUL_FIELD_KT_LAST
} |
enum | sul_field_flags_e { SUL_FIELD_FLAG_NONE = 0,
SUL_FIELD_FLAG_PK,
SUL_FIELD_FLAG_FK
} |
enum | sul_field_type_e {
SUL_FIELD_TYPE_NULL = 0,
SUL_FIELD_TYPE_STRING,
SUL_FIELD_TYPE_INTEGER,
SUL_FIELD_TYPE_BOOLEAN,
SUL_FIELD_TYPE_FK,
SUL_FIELD_TYPE_REAL,
SUL_FIELD_TYPE_TIMESTAMP,
SUL_FIELD_TYPE_TIME,
SUL_FIELD_TYPE_DATE
} |
Functions |
| sul_peer_initialize (sul_objpeer_t *peer) |
| sul_peer_query_execute (sul_peer_query_t **query, sul_objpeer_t *peer, sul_dbc_t *dbc, apr_pool_t *pool, const char *sql,...) |
| sul_peer_query_size (sul_peer_query_t *query) |
| sul_peer_generate_array (apr_array_header_t **arrayp, sul_peer_query_t *query, apr_pool_t *pool) |
| sul_peer_generate_single (sul_objectptr_t *ptr, sul_peer_query_t *query, apr_pool_t *pool) |
| sul_peer_type_size (sul_field_type_e type) |
| sul_peer_field_to_sql (sul_stringbuf_t *sql, sul_objpeer_t *peer, sul_objectptr_t ptr, apr_size_t fldi, apr_pool_t *pool) |
| sul_peer_sql_query (sul_objpeer_t *peer, apr_pool_t *pool) |
| sul_peer_sql_add (sul_objpeer_t *peer, sul_objectptr_t ptr, apr_pool_t *pool) |
| sul_peer_sql_update (sul_objpeer_t *peer, sul_objectptr_t ptr, apr_pool_t *pool) |
| sul_peer_sql_delete (sul_objpeer_t *peer, sul_objectptr_t ptr, apr_pool_t *pool) |
| sul_peer_object_key_get (sul_objpeer_t *peer, sul_objectptr_t ptr) |
| sul_peer_object_key_set (sul_objpeer_t *peer, sul_objectptr_t ptr, sul_key_t key) |
| sul_peer_populate (sul_objectptr_t ptr, sul_peer_query_t *query, apr_size_t row, apr_pool_t *pool) |
| sul_peer_save (sul_objpeer_t *peer, sul_objectptr_t ptr, sul_dbc_t *dbc, apr_pool_t *pool) |
| sul_peer_add (sul_objpeer_t *peer, sul_objectptr_t ptr, sul_dbc_t *dbc, apr_pool_t *pool) |
| sul_peer_delete (sul_objpeer_t *peer, sul_objectptr_t ptr, sul_dbc_t *dbc, apr_pool_t *pool) |
| sul_parse_time (apr_time_exp_t *tm, const char *str) |