Classes | |
| class | Binding |
| Abstract base class for data binding. More... | |
| class | wxWindow_updater |
| Base updater for window. More... | |
| class | wxWindow_def_updater |
| Default updater for wxWindow. More... | |
| class | wxCalendarCtrl_updater |
| Updater for wxCalendarCtrl. More... | |
| class | wxComboBox_updater |
| Updater for wxComboBox. More... | |
| class | wxComboCtrl_updater |
| Updater for wxComboCtrl. More... | |
| class | wxRichTextCtrl_updater |
| Updater for wxRichTextCtrl. More... | |
| class | wxTextCtrl_updater |
| Updater for wxTextCtrl. More... | |
| class | wxSpinCtrl_updater |
| Updater for wxSpinCtrl. More... | |
| class | wxStaticText_updater |
| Updater for wxStaticText. More... | |
| class | wxHyperlinkCtrl_updater |
| Updater for wxHyperlinkCtrl. More... | |
| class | wxHyperlinkCtrl_updater_wlabel |
| Updater for wxHyperlinkCtrl with label update. More... | |
| class | wxDatePickerCtrl_updater |
| Updater for wxDatePickerCtrl. More... | |
| class | wxCheckBox_updater |
| Updater for wxCheckBox. More... | |
| class | wxGauge_updater |
| Updater for wxGauge. More... | |
| class | wxSpinButton_updater |
| Updater for wxSpinButton. More... | |
| class | wxItemContainer_updater |
| Updater for various wxItemContainer decendants. More... | |
| class | wxRadioBox_updater |
| Updater for wxRadioBox. More... | |
| class | wxVListBox_updater |
| Updater for wxVListBox. More... | |
| class | wxHtmlWindow_updater |
| Updater for wxHtmlWindow. More... | |
| class | wxWindow_list_updater |
| Base updater for window. More... | |
| class | wxItemContainer_list_updater |
| List updater for wxItemContainer. More... | |
| class | Grid_bind_def |
| Grid binding definitions. More... | |
| class | Grid_binding |
| Binding wxGrid to display data from wxPg::Result_data_provider. More... | |
| class | List_binding |
| Binding containers to contain values from entire column in wxPg::Result_data_provider. More... | |
| class | Row_binding |
| Binding widgets to display values from wxPg::Data_row. More... | |
| class | UI_manager |
| A container class for updating UI by multiple UI_updaters at once. More... | |
| class | UI_updater |
| Abstract base class for changing user interface. More... | |
| class | Updatable_row_binding |
| Binding widgets to modify values from wxPg::Updatable_row. More... | |
| class | Cached_result |
| Stores entire result of query locally. More... | |
| class | Cached_row_provider |
| Abstract class, representing a single cached row of SQL query result. More... | |
| class | Data_row |
| Class, representing a single row of SQL query result. More... | |
| class | Data_row_provider |
| Interface, representing a single row of SQL query result. More... | |
| class | Database |
| Class for connecting to database and executing SQL statements. More... | |
| class | DB_client |
| Class for attaching to wxPg::Database. More... | |
| class | Prepared_statement |
| Prepared statement class. More... | |
| class | Query |
| Class for executing SQL queries, returning result. More... | |
| class | Query_browser |
| Class for executing SQL queries, that return large results. More... | |
| class | Result_data |
| Class, representing result of SQL query. More... | |
| class | Result_data_provider |
| Interface, representing result of SQL query. More... | |
| class | Updatable_row |
| Class for inserting, updating or deleting a single row in a table. More... | |
| class | Grid_table |
| A table for wxGrid. More... | |
| class | Grid |
| Grid for displaying a result of SQL query. More... | |
Functions | |
| wxPG_DECLSPEC int | oid_to_type_simple (int oid) |
| Converts OID to type descriptor. | |
| wxPG_DECLSPEC const wxString | escape_string (Database &db, const wxString &s, wxString *error=NULL) |
| Escapes string. | |
| wxPG_DECLSPEC void | cache_result_data (Cached_result &dest, Result_data &src) |
| Cache query result locally. | |
| wxPG_DECLSPEC bool | cstr_to_bool (char *str, int type) |
| Convert C-string to bool. | |
Variables | |
| const int | TYPE_UNKNOWN = 0 |
| Unknown data type. | |
| const int | TYPE_INT = 1 |
| Represents int2 and int4 types. | |
| const int | TYPE_FLOAT = 2 |
| Represents float4 and float8 types. | |
| const int | TYPE_STRING = 3 |
| Represents char, name and varchar types. | |
| const int | TYPE_DATE = 4 |
| Represents date type. | |
| const int | TYPE_TIME = 5 |
| Represents time type. | |
| const int | TYPE_TIMESTAMP = 6 |
| Represents timestamp type. | |
| const int | TYPE_BOOL = 7 |
| Represents boolean type. | |
| wxPG_DECLSPEC void wxPg::cache_result_data | ( | Cached_result & | dest, | |
| Result_data & | src | |||
| ) |
Cache query result locally.
| dest | - destination, where to store data. | |
| src | - source to be stored. |
| wxPG_DECLSPEC bool wxPg::cstr_to_bool | ( | char * | str, | |
| int | type | |||
| ) |
Convert C-string to bool.
Used internally by library. See wxPg::Data_row_provider::get_bool() for details.
| str | - C-string to convert to bool. | |
| type | - one of type constants defined in type.h. |
| wxPG_DECLSPEC const wxString wxPg::escape_string | ( | Database & | db, | |
| const wxString & | s, | |||
| wxString * | error = NULL | |||
| ) |
Escapes string.
This function is a wrapper around PQescapeStringConn(), see PostgreSQL documentation for more info.
| db | - a database connection. | |
| s | - a string to be escaped. | |
| error | - a pointer to string to write error to, can be NULL. |
| wxPG_DECLSPEC int wxPg::oid_to_type_simple | ( | int | oid | ) |
| const int wxPg::TYPE_BOOL = 7 |
Represents boolean type.
| const int wxPg::TYPE_DATE = 4 |
Represents date type.
| const int wxPg::TYPE_FLOAT = 2 |
Represents float4 and float8 types.
| const int wxPg::TYPE_INT = 1 |
Represents int2 and int4 types.
| const int wxPg::TYPE_STRING = 3 |
Represents char, name and varchar types.
| const int wxPg::TYPE_TIME = 5 |
Represents time type.
| const int wxPg::TYPE_TIMESTAMP = 6 |
Represents timestamp type.
| const int wxPg::TYPE_UNKNOWN = 0 |
Unknown data type.
1.5.8