ServerProvider
Object Hierarchy:
Description:
[ CCode ( type_id = "gda_server_provider_get_type ()" ) ]
public abstract class ServerProvider : Object, Lockable
public abstract class ServerProvider : Object, Lockable
Namespace: Gda
Package: libgda-6.0
Content:
Static methods:
- public static Quark error_quark ()
- public static void* get_impl_functions_for_class (ObjectClass klass, ServerProviderFunctionsType type)
- public static MainContext get_real_main_context (Connection? cnc)
Obtain a MainContext on which to iterate.
- public static string load_resource_contents (string prov_name, string resource)
Loads and returns the contents of the specified resource.
Creation methods:
- protected ServerProvider ()
Methods:
- public ServerOperation? create_operation (Connection? cnc, ServerOperationType type, Set? options) throws Error
Creates a new ServerOperation object which can be modified in order to perform the
type
type of action. - public SqlParser create_parser (Connection? cnc)
Creates a new SqlParser object which is adapted to this (and possibly depending on
cnc
for the actual database version). - public string escape_string (Connection? cnc, string str)
Escapes
str
for use within an SQL command (to avoid SQL injection attacks). - public unowned DataHandler get_data_handler_dbms (Connection? cnc, string for_type)
Find a DataHandler object to manipulate data of type
for_type
. - public unowned DataHandler get_data_handler_g_type (Connection? cnc, Type for_type)
Find a DataHandler object to manipulate data of type
for_type
. - public unowned string? get_default_dbms_type (Connection? cnc, Type type)
Get the name of the most common data type which has
type
type. - public unowned string get_name ()
Get the name (identifier) of the provider
- public unowned string get_server_version (Connection cnc)
Get the version of the database to which the connection is opened.
- public unowned string get_version ()
Get the version of the provider.
- public void handler_declare (DataHandler dh, Connection cnc, Type g_type, string dbms_type)
- public unowned DataHandler handler_find (Connection? cnc, Type g_type, string? dbms_type)
Reserved to database provider's implementations: get the DataHandler associated to this for connection
cnc
. - public unowned DataHandler handler_use_default (Type type)
Reserved to database provider's implementations.
- public unowned SqlParser internal_get_parser ()
This is a factory method to get a unique instance of a SqlParser object for each ServerProvider object Don't unref it.
- public bool perform_operation (Connection? cnc, ServerOperation op) throws Error
Performs the operation described by
op
. - public bool perform_operation_default (Connection? cnc, ServerOperation op) throws Error
Performs the operation described by
op
, using the SQL from the rendering of the operation - public string? render_operation (Connection? cnc, ServerOperation op) throws Error
Creates an SQL statement (possibly using some specific extensions of the DBMS) corresponding to the
op
operation. - public Value? string_to_value (Connection? cnc, string string, Type preferred_type, string? dbms_type)
Use this to create a new Value from a single string representation.
- public bool supports_feature (Connection? cnc, ConnectionFeature feature)
Tests if a feature is supported
- public bool supports_operation (Connection? cnc, ServerOperationType type, Set? options)
Tells if this supports the
type
of operation on thecnc
connection, using the (optional)options
parameters. - public string unescape_string (Connection? cnc, string str)
Unescapes
str
for use within an SQL command. - public string value_to_sql_string (Connection? cnc, Value from)
Produces a fully quoted and escaped string from a GValue
Inherited Members:
All known members inherited from class GLib.Object