#include <connection.h>
Public Member Functions | |
virtual | ~Connection () |
GdaConnection * | gobj () |
Provides access to the underlying C GObject. | |
const GdaConnection * | gobj () const |
Provides access to the underlying C GObject. | |
GdaConnection * | gobj_copy () |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. | |
bool | close () |
bool | is_open () const |
Glib::RefPtr< Client > | get_client () |
Glib::RefPtr< const Client > | get_client () const |
void | set_client (const Glib::RefPtr< Client > &client) |
ConnectionOptions | get_options () const |
Glib::ustring | get_server_version () const |
Glib::ustring | get_database () const |
Glib::ustring | get_dsn () const |
Glib::ustring | get_cnc_string () const |
Glib::ustring | get_provider () const |
Glib::ustring | get_username () const |
Glib::ustring | get_password () const |
void | add_error (const Glib::RefPtr< Error > &error) |
void | add_error (const Glib::ustring &error) |
void | add_error_list (GList *error_list) |
bool | change_database (const Glib::ustring &name) |
bool | create_database (const Glib::ustring &name) |
bool | drop_database (const Glib::ustring &name) |
Glib::ListHandle< Glib::RefPtr < DataModel > > | execute_command (const Command &cmd, const ParameterList ¶ms) |
Glib::ListHandle< Glib::RefPtr < DataModel > > | execute_command (const Command &cmd) |
Glib::RefPtr< DataModel > | execute_single_command (const Command &cmd, const ParameterList ¶ms) |
Glib::RefPtr< DataModel > | execute_single_command (const Command &cmd) |
Glib::RefPtr< DataModel > | execute_single_command (const Glib::ustring &cmd) |
int | execute_non_query (const Command &cmd, const ParameterList ¶ms) |
int | execute_non_query (const Command &cmd) |
bool | begin_transaction (const Glib::RefPtr< Transaction > &transaction) |
bool | commit_transaction (const Glib::RefPtr< Transaction > &transaction) |
bool | rollback_transaction (const Glib::RefPtr< Transaction > &transaction) |
Glib::ListHandle< Glib::RefPtr < Error > > | get_errors () |
Glib::ListHandle< Glib::RefPtr < const Error > > | get_errors () const |
bool | create_blob (GdaBlob *blob) |
bool | supports (ConnectionFeature feature) const |
Glib::RefPtr< DataModel > | get_schema (ConnectionSchema schema, const ParameterList ¶ms) |
Glib::RefPtr< const DataModel > | get_schema (ConnectionSchema schema, const ParameterList ¶ms) const |
Glib::RefPtr< DataModel > | get_schema (ConnectionSchema schema) |
Glib::RefPtr< const DataModel > | get_schema (ConnectionSchema schema) const |
Glib::ustring | get_last_insert_id (const Glib::RefPtr< DataModel > &recset) const |
Glib::SignalProxy1< void, GList * > | signal_error () |
Static Public Member Functions | |
static Glib::RefPtr< Connection > | create () |
Protected Member Functions | |
Connection () | |
virtual void | on_error (GList *error_list) |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr < Gnome::Gda::Connection > | wrap (GdaConnection *object, bool take_copy=false) |
virtual Gnome::Gda::Connection::~Connection | ( | ) | [virtual] |
Gnome::Gda::Connection::Connection | ( | ) | [protected] |
void Gnome::Gda::Connection::add_error | ( | const Glib::ustring & | error | ) |
void Gnome::Gda::Connection::add_error | ( | const Glib::RefPtr< Error > & | error | ) |
void Gnome::Gda::Connection::add_error_list | ( | GList * | error_list | ) |
bool Gnome::Gda::Connection::begin_transaction | ( | const Glib::RefPtr< Transaction > & | transaction | ) |
bool Gnome::Gda::Connection::change_database | ( | const Glib::ustring & | name | ) |
bool Gnome::Gda::Connection::close | ( | ) |
bool Gnome::Gda::Connection::commit_transaction | ( | const Glib::RefPtr< Transaction > & | transaction | ) |
static Glib::RefPtr<Connection> Gnome::Gda::Connection::create | ( | ) | [static] |
bool Gnome::Gda::Connection::create_blob | ( | GdaBlob * | blob | ) |
bool Gnome::Gda::Connection::create_database | ( | const Glib::ustring & | name | ) |
bool Gnome::Gda::Connection::drop_database | ( | const Glib::ustring & | name | ) |
Glib::ListHandle< Glib::RefPtr<DataModel> > Gnome::Gda::Connection::execute_command | ( | const Command & | cmd | ) |
Glib::ListHandle< Glib::RefPtr<DataModel> > Gnome::Gda::Connection::execute_command | ( | const Command & | cmd, | |
const ParameterList & | params | |||
) |
int Gnome::Gda::Connection::execute_non_query | ( | const Command & | cmd | ) |
int Gnome::Gda::Connection::execute_non_query | ( | const Command & | cmd, | |
const ParameterList & | params | |||
) |
Glib::RefPtr<DataModel> Gnome::Gda::Connection::execute_single_command | ( | const Glib::ustring & | cmd | ) |
Glib::RefPtr<DataModel> Gnome::Gda::Connection::execute_single_command | ( | const Command & | cmd, | |
const ParameterList & | params | |||
) |
Glib::RefPtr<const Client> Gnome::Gda::Connection::get_client | ( | ) | const |
Glib::RefPtr<Client> Gnome::Gda::Connection::get_client | ( | ) |
Glib::ustring Gnome::Gda::Connection::get_cnc_string | ( | ) | const |
Glib::ustring Gnome::Gda::Connection::get_database | ( | ) | const |
Glib::ustring Gnome::Gda::Connection::get_dsn | ( | ) | const |
Glib::ListHandle< Glib::RefPtr<const Error> > Gnome::Gda::Connection::get_errors | ( | ) | const |
Glib::ListHandle< Glib::RefPtr<Error> > Gnome::Gda::Connection::get_errors | ( | ) |
Glib::ustring Gnome::Gda::Connection::get_last_insert_id | ( | const Glib::RefPtr< DataModel > & | recset | ) | const |
ConnectionOptions Gnome::Gda::Connection::get_options | ( | ) | const |
Glib::ustring Gnome::Gda::Connection::get_password | ( | ) | const |
Glib::ustring Gnome::Gda::Connection::get_provider | ( | ) | const |
Glib::RefPtr<const DataModel> Gnome::Gda::Connection::get_schema | ( | ConnectionSchema | schema | ) | const |
Glib::RefPtr<DataModel> Gnome::Gda::Connection::get_schema | ( | ConnectionSchema | schema | ) |
Glib::RefPtr<const DataModel> Gnome::Gda::Connection::get_schema | ( | ConnectionSchema | schema, | |
const ParameterList & | params | |||
) | const |
Glib::RefPtr<DataModel> Gnome::Gda::Connection::get_schema | ( | ConnectionSchema | schema, | |
const ParameterList & | params | |||
) |
Glib::ustring Gnome::Gda::Connection::get_server_version | ( | ) | const |
Glib::ustring Gnome::Gda::Connection::get_username | ( | ) | const |
const GdaConnection* Gnome::Gda::Connection::gobj | ( | ) | const [inline] |
Provides access to the underlying C GObject.
GdaConnection* Gnome::Gda::Connection::gobj | ( | ) | [inline] |
Provides access to the underlying C GObject.
GdaConnection* Gnome::Gda::Connection::gobj_copy | ( | ) |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
bool Gnome::Gda::Connection::is_open | ( | ) | const |
virtual void Gnome::Gda::Connection::on_error | ( | GList * | error_list | ) | [protected, virtual] |
bool Gnome::Gda::Connection::rollback_transaction | ( | const Glib::RefPtr< Transaction > & | transaction | ) |
void Gnome::Gda::Connection::set_client | ( | const Glib::RefPtr< Client > & | client | ) |
Glib::SignalProxy1< void,GList* > Gnome::Gda::Connection::signal_error | ( | ) |
bool Gnome::Gda::Connection::supports | ( | ConnectionFeature | feature | ) | const |
Glib::RefPtr< Gnome::Gda::Connection > wrap | ( | GdaConnection * | object, | |
bool | take_copy = false | |||
) | [related] |
object | The C instance | |
take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |