Top | ![]() |
![]() |
![]() |
![]() |
GdaXmlConnection * | gda_xml_connection_new () |
GdaXmlConnection * | gda_xml_connection_new_from_file () |
GdaXmlConnection * | gda_xml_connection_new_from_string () |
gboolean | gda_xml_connection_set_from_file () |
gboolean | gda_xml_connection_set_from_string () |
const gchar * | gda_xml_connection_get_dsn () |
void | gda_xml_connection_set_dsn () |
const gchar * | gda_xml_connection_get_username () |
void | gda_xml_connection_set_username () |
const gchar * | gda_xml_connection_get_password () |
void | gda_xml_connection_set_password () |
GdaXmlConnection *
gda_xml_connection_new (void
);
Creates a new GdaXmlConnection object, which lets you parse and/or create .connection files, which are XML files used to specify all parameters needed to open a database connection, and which can be used to store user's connection preferences, or for automatic connection to databases from unattended scripts and such.
GdaXmlConnection *
gda_xml_connection_new_from_file (const gchar *filename
);
Creates a GdaXmlConnection object from the contents of filename
,
which must be a correct .connection file.
GdaXmlConnection *
gda_xml_connection_new_from_string (const gchar *string
);
Creates a GdaXmlConnection object from the given XML string.
gboolean gda_xml_connection_set_from_file (GdaXmlConnection *xmlcnc
,const gchar *filename
);
Loads a XML file into the given GdaXmlConnection object.
gboolean gda_xml_connection_set_from_string (GdaXmlConnection *xmlcnc
,const gchar *string
);
Loads a XML string into the given GdaXmlConnection object.
void gda_xml_connection_set_dsn (GdaXmlConnection *xmlcnc
,const gchar *dsn
);
Sets the data source name for the given GdaXmlConnection object.
const gchar *
gda_xml_connection_get_username (GdaXmlConnection *xmlcnc
);
void gda_xml_connection_set_username (GdaXmlConnection *xmlcnc
,const gchar *username
);
Sets the user name for the given GdaXmlConnection object.
const gchar *
gda_xml_connection_get_password (GdaXmlConnection *xmlcnc
);