ServerProvider
Object Hierarchy:
Description:
[
CCode ( type_id =
"gda_server_provider_get_type ()" ) ]
public abstract class ServerProvider :
Object,
Lockable
Content:
Static methods:
Creation methods:
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 the cnc
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
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref
All known members inherited from interface Gda.Lockable