ServerProvider
Object Hierarchy:
Gda.ServerProvider
Gda.ServerProvider
Gda.ServerProvider
GLib.Object
GLib.Object
GLib.Object->Gda.ServerProvider
Description:
[ CCode ( type_id = "gda_server_provider_get_type ()" ) ]public abstract class ServerProvider : Object
Content:
Static methods:
Creation methods:
Methods:
public virtual bool add_savepoint (Connection cnc, string name) throws Error
public virtual bool begin_transaction (Connection cnc, string name, TransactionIsolation level) throws Error
public virtual bool cancel (Connection cnc, uint task_id) throws Error
public virtual bool close_connection (Connection cnc)
public virtual bool commit_transaction (Connection cnc, string name) throws Error
public virtual 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 virtual 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 virtual bool delete_savepoint (Connection cnc, string name) throws Error
public virtual string escape_string (Connection ? cnc, string str)
Escapes str
for use within an SQL command (to avoid SQL
injection attacks).
public string find_file (string inst_dir, string filename)
Finds the location of a filename
.
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_default (Connection ? cnc, Type type, string dbms_type)
Provides the implementation when the default Libgda's data handlers
must be used
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 virtual unowned string get_database (Connection cnc)
public virtual unowned string get_def_dbms_type (Connection cnc, Type g_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 virtual unowned string get_name ()
Get the name (identifier) of the provider
public virtual unowned string get_server_version (Connection cnc)
Get the version of the database to which the connection is opened.
public virtual unowned string get_version ()
Get the version of the provider.
public virtual bool handle_async (Connection cnc) throws Error
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 virtual string identifier_quote (Connection cnc, string id, bool for_meta_store, bool force_quotes)
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 virtual bool is_busy (Connection cnc) throws Error
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 virtual 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 virtual bool rollback_savepoint (Connection cnc, string name) throws Error
public virtual bool rollback_transaction (Connection cnc, string name) throws Error
public virtual bool statement_prepare (Connection cnc, Statement stmt) throws Error
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 virtual bool supports_feature (Connection ? cnc, ConnectionFeature feature)
Tests if a feature is supported
public virtual 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 virtual 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