Gda.Connection – libgda-5.0 Reference Manual
Packages
libgda-5.0
Gda
Connection
auth_string
cnc_string
dsn
events_history_size
execution_timer
is_wrapper
meta_store
monitor_wrapped_in_mainloop
provider
thread_owner
error_quark
open_from_dsn
open_from_string
open_sqlite
string_split
Connection
Connection.from_dsn
Connection.from_string
add_event
add_prepared_statement
add_savepoint
async_cancel
async_fetch_result
async_statement_execute
batch_execute
begin_transaction
clear_events_list
close
close_no_warning
commit_transaction
create_operation
create_parser
del_prepared_statement
delete_row_from_table
delete_savepoint
execute_non_select_command
execute_select_command
get_authentication
get_cnc_string
get_dsn
get_events
get_meta_store
get_meta_store_data_v
get_options
get_prepared_statement
get_provider
get_provider_name
get_transaction_status
insert_row_into_table_v
is_opened
open
parse_sql_string
perform_operation
point_available_event
quote_sql_identifier
repetitive_statement_execute
rollback_savepoint
rollback_transaction
statement_execute
statement_execute_non_select
statement_execute_select
statement_execute_select_full
statement_prepare
statement_to_sql
supports_feature
update_meta_store
update_row_in_table_v
value_to_sql_string
conn_closed
conn_opened
conn_to_close
dsn_changed
error
transaction_status_changed
Connection
Object Hierarchy:
Description:
public
class
Connection
:
Object
,
Lockable
Namespace:
Gda
Package:
libgda-5.0
Content:
Properties:
public
string
auth_string
{
set
;
owned
get
; }
public
string
cnc_string
{
set
;
owned
get
; }
public
string
dsn
{
set
;
owned
get
; }
public
int
events_history_size
{
set
;
get
; }
public
bool
execution_timer
{
set
;
get
; }
public
bool
is_wrapper
{
construct
set
;
get
; }
public
MetaStore
meta_store
{
set
;
owned
get
; }
public
bool
monitor_wrapped_in_mainloop
{
set
;
get
; }
public
ServerProvider
provider
{
set
;
owned
get
; }
public
void
*
thread_owner
{
set
;
get
; }
Static methods:
public
static
Quark
error_quark
()
public
static
Connection
open_from_dsn
(
string
dsn,
string
? auth_string,
ConnectionOptions
options)
throws
Error
public
static
Connection
open_from_string
(
string
? provider_name,
string
cnc_string,
string
? auth_string,
ConnectionOptions
options)
throws
Error
public
static
Connection
open_sqlite
(
string
? directory,
string
filename,
bool
auto_unlink)
public
static
void
string_split
(
string
string,
string
out_cnc_params,
string
out_provider,
string
out_username,
string
out_password)
Creation methods:
protected
Connection
()
public
Connection.from_dsn
(
string
dsn,
string
? auth_string,
ConnectionOptions
options)
throws
Error
public
Connection.from_string
(
string
? provider_name,
string
cnc_string,
string
? auth_string,
ConnectionOptions
options)
throws
Error
Methods:
public
void
add_event
(
owned
ConnectionEvent
event)
public
void
add_prepared_statement
(
Statement
gda_stmt,
PStmt
prepared_stmt)
public
bool
add_savepoint
(
string
? name)
throws
Error
public
bool
async_cancel
(
uint
task_id)
throws
Error
public
Object
async_fetch_result
(
uint
task_id,
out
Set
last_insert_row)
throws
Error
public
uint
async_statement_execute
(
Statement
stmt,
Set
? @params,
StatementModelUsage
model_usage,
Type
[]? col_types,
bool
need_last_insert_row)
throws
Error
public
SList
<
Object
>
batch_execute
(
Batch
batch,
Set
? @params,
StatementModelUsage
model_usage)
throws
Error
public
bool
begin_transaction
(
string
? name,
TransactionIsolation
level)
throws
Error
public
void
clear_events_list
()
public
void
close
()
public
void
close_no_warning
()
public
bool
commit_transaction
(
string
? name)
throws
Error
public
ServerOperation
create_operation
(
ServerOperationType
type,
Set
? options)
throws
Error
public
SqlParser
create_parser
()
public
void
del_prepared_statement
(
Statement
gda_stmt)
public
bool
delete_row_from_table
(
string
table,
string
condition_column_name,
Value
condition_value)
throws
Error
public
bool
delete_savepoint
(
string
? name)
throws
Error
public
int
execute_non_select_command
(
string
sql)
throws
Error
public
DataModel
execute_select_command
(
string
sql)
throws
Error
public
unowned
string
get_authentication
()
public
unowned
string
get_cnc_string
()
public
unowned
string
get_dsn
()
public
unowned
List
<
ConnectionEvent
>
get_events
()
public
weak
MetaStore
get_meta_store
()
public
DataModel
get_meta_store_data_v
(
ConnectionMetaType
meta_type,
List
<
Holder
> filters)
throws
Error
public
ConnectionOptions
get_options
()
public
weak
PStmt
get_prepared_statement
(
Statement
gda_stmt)
public
weak
ServerProvider
get_provider
()
public
unowned
string
get_provider_name
()
public
weak
TransactionStatus
get_transaction_status
()
public
bool
insert_row_into_table_v
(
string
table,
SList
<
string
> col_names,
SList
<
Value
?> values)
throws
Error
public
bool
is_opened
()
public
bool
open
()
throws
Error
public
Statement
parse_sql_string
(
string
sql,
out
Set
@params)
throws
Error
public
bool
perform_operation
(
ServerOperation
op)
throws
Error
public
ConnectionEvent
point_available_event
(
ConnectionEventType
type)
public
string
quote_sql_identifier
(
string
id)
public
SList
<
Object
>
repetitive_statement_execute
(
RepetitiveStatement
rstmt,
StatementModelUsage
model_usage,
Type
[]? col_types,
bool
stop_on_error)
throws
Error
public
bool
rollback_savepoint
(
string
? name)
throws
Error
public
bool
rollback_transaction
(
string
? name)
throws
Error
public
Object
statement_execute
(
Statement
stmt,
Set
? @params,
StatementModelUsage
model_usage,
out
Set
last_insert_row)
throws
Error
public
int
statement_execute_non_select
(
Statement
stmt,
Set
? @params,
out
Set
last_insert_row)
throws
Error
public
DataModel
statement_execute_select
(
Statement
stmt,
Set
? @params)
throws
Error
public
DataModel
statement_execute_select_full
(
Statement
stmt,
Set
? @params,
StatementModelUsage
model_usage,
Type
[]? col_types)
throws
Error
public
bool
statement_prepare
(
Statement
stmt)
throws
Error
public
string
statement_to_sql
(
Statement
stmt,
Set
? @params,
StatementSqlFlag
flags,
out
SList
<
weak
Holder
> params_used)
throws
Error
public
bool
supports_feature
(
ConnectionFeature
feature)
public
bool
update_meta_store
(
MetaContext
? context)
throws
Error
public
bool
update_row_in_table_v
(
string
table,
string
condition_column_name,
Value
condition_value,
SList
<
string
> col_names,
SList
<
Value
?> values)
throws
Error
public
string
value_to_sql_string
(
Value
from)
Signals:
public
virtual
signal
void
conn_closed
()
public
virtual
signal
void
conn_opened
()
public
virtual
signal
void
conn_to_close
()
public
virtual
signal
void
dsn_changed
()
public
virtual
signal
void
error
(
ConnectionEvent
error)
public
virtual
signal
void
transaction_status_changed
()
Inherited Members:
All known members inherited from class GLib.Object
@new
newv
new_valist
get_type
get_class
@ref
unref
ref_sink
weak_ref
weak_unref
add_weak_pointer
remove_weak_pointer
@get
@set
get_property
set_property
get_data
set_data
set_data_full
steal_data
get_qdata
set_qdata
set_qdata_full
steal_qdata
freeze_notify
thaw_notify
dispose
constructed
notify_property
connect
disconnect
add_toggle_ref
remove_toggle_ref
bind_property
notify
ref_count
All known members inherited from interface Gda.Lockable
i_lock
i_trylock
i_unlock
@lock
trylock
unlock