#import <db_t.h>
Inheritance diagram for db_t:

Public Member Functions | |
| (id) | init |
| (int) | init_2nd_stage |
| (id) | free |
| (int) | save_record_to_db:: |
| (int) | fetch_record_from_db:: |
| (int) | delete_record_in_db:: |
| (int) | delete_subrecords_in_db:: |
| (void) | find_largest_keys_for_record:: |
| (void) | unlock_record_in_db: |
| (maybe_t) | lock_record_in_db: |
| (char *) | is_record_locked: |
| (long) | new_recid:: |
| (maybe_t) | find_keys_for_record:: |
| (int) | do_exec: |
| (void) | freeres |
| (void) | update_kort_ui: |
| (pointerlist_t *) | list_of_instances::: |
| (int) | find_last_saved_field: |
| (maybe_t) | find_allowed_value::::: |
Static Public Member Functions | |
| (id) | init_with_values: |
Protected Attributes | |
| appbus_t * | bus |
| MYSQL | mysli |
| char * | sql_statement |
| MYSQL_RES * | resultset_of_query |
| MYSQL_ROW | exactly_one_row |
| my_ulonglong | how_many_rows |
| char | lock_info_string [200] |
| char | lock_info_string_of_locked_record [200] |
|
||||||||||||
|
removes record from db
|
|
||||||||||||
|
removes sub-records from db
|
|
|
method for executing a query, takes input from instance variable sql_statement. this is the workhorse that does all select/update/delete/etc.
|
|
||||||||||||
|
gets record to db
|
|
||||||||||||||||||||||||
|
method for finding out if current value is among allowed ones and if not, helping user in choosing one. note that user has no other possibility but to choose one :-)
|
|
||||||||||||
|
method that finds keys for a record. may require user interaction.
|
|
||||||||||||
|
invents surrogate keys for a record not yet fetched
|
|
|
method that finds index of last field from form that is saved to db.
|
|
|
frees allocated memory |
|
|
method for releasing in safe manner memory allocated by query results |
|
|
default initializer |
|
|
this method asks for password and creates db connection |
|
|
the "allocator" usually used is here |
|
|
queries for lockedness of a record
|
|
||||||||||||||||
|
method that returns list of network addresses of other instances of this program. format of the list may depend on underlying network protocol, in UDP case it might be something like host:port
|
|
|
locks a record in db from others to use
|
|
||||||||||||
|
returns unique long for tab/col pair
|
|
||||||||||||
|
saves record to db
|
|
|
unlocks a record in db for others to use
|
|
|
method for maintaining kort_ui table |
|
|
application bus pointer |
|
|
one row from resultset of last query |
|
|
size of resultset of last query |
|
|
our id string saved to kort_ui table |
|
|
our id string saved to some data table |
|
|
actual database handle |
|
|
resultset of last query |
|
|
pointer to sql statement text about to be executed |
1.4.2