Unit msefirebird

Description

 

Overview

Classes, Interfaces, Objects and Records

Name Description
Record ISC_TIMESTAMP  
Record vary  
Record fbapity  

Functions and Procedures

procedure inifbapi(var api: fbapity);
procedure finifbapi(var api: fbapity);
procedure initializefirebird(const sonames: array of filenamety; const onlyonce: boolean = false);
procedure releasefirebird();
function formatstatus(status: istatus): string;
function event_block(out eventbuffer: pbyte; const names: array of string): int32;
procedure freeeventblock(var eventbuffer: pbyte);

Types

SSHORT = cshort;
USHORT = cushort;
SLONG = int32;
ULONG = card32;
pULONG = ˆULONG;
ISC_USHORT = cushort;
ISC_SHORT = cshort;
pISC_SHORT = ˆISC_SHORT;
ISC_LONG = SLONG;
pISC_QUAD = ˆISC_QUAD;
ISC_DATE = int32;
pISC_DATE = ˆISC_DATE;
ISC_TIME = card32;
pISC_TIME = ˆISC_TIME;
pISC_TIMESTAMP = ˆISC_TIMESTAMP;
ISC_STATUS = ptrint;
pISC_STATUS = ˆISC_STATUS;
pvary = ˆvary;

Constants

firebirdlib: array[0..2] of filenamety = ('libfbclient.so.3','libfbclient.so.2','libfbclient.so');
SQL_TEXT = 452;
SQL_VARYING = 448;
SQL_SHORT = 500;
SQL_LONG = 496;
SQL_FLOAT = 482;
SQL_DOUBLE = 480;
SQL_D_FLOAT = 530;
SQL_TIMESTAMP = 510;
SQL_BLOB = 520;
SQL_ARRAY = 540;
SQL_QUAD = 550;
SQL_TYPE_TIME = 560;
SQL_TYPE_DATE = 570;
SQL_INT64 = 580;
SQL_BOOLEAN = 32764;
SQL_NULL = 32766;
CS_NONE = 0;
CS_BINARY = 1;
CS_ASCII = 2;
CS_UNICODE_FSS = 3;
CS_UTF8 = 4;
FB_DOUBLE_ALIGN = 4;
ISC_TIME_SECONDS_PRECISION = 10000;
GDS_EPOCH_START = 40617;
fbdatetimeoffset = -15018;
EPB_version1 = 1;
isc_info_end = 1;
isc_info_truncated = 2;
isc_info_error = 3;
isc_info_data_not_ready = 4;
isc_info_length = 126;
isc_info_flag_end = 127;
isc_info_blob_num_segments = 4;
isc_info_blob_max_segment = 5;
isc_info_blob_total_length = 6;
isc_info_blob_type = 7;
isc_info_sql_select = 4;
isc_info_sql_bind = 5;
isc_info_sql_num_variables = 6;
isc_info_sql_describe_vars = 7;
isc_info_sql_describe_end = 8;
isc_info_sql_sqlda_seq = 9;
isc_info_sql_message_seq = 10;
isc_info_sql_type = 11;
isc_info_sql_sub_type = 12;
isc_info_sql_scale = 13;
isc_info_sql_length = 14;
isc_info_sql_null_ind = 15;
isc_info_sql_field = 16;
isc_info_sql_relation = 17;
isc_info_sql_owner = 18;
isc_info_sql_alias = 19;
isc_info_sql_sqlda_start = 20;
isc_info_sql_stmt_type = 21;
isc_info_sql_get_plan = 22;
isc_info_sql_records = 23;
isc_info_sql_batch_fetch = 24;
isc_info_sql_relation_alias = 25;
isc_info_sql_explain_plan = 26;
isc_info_sql_stmt_flags = 27;
isc_info_sql_stmt_select = 1;
isc_info_sql_stmt_insert = 2;
isc_info_sql_stmt_update = 3;
isc_info_sql_stmt_delete = 4;
isc_info_sql_stmt_ddl = 5;
isc_info_sql_stmt_get_segment = 6;
isc_info_sql_stmt_put_segment = 7;
isc_info_sql_stmt_exec_procedure = 8;
isc_info_sql_stmt_start_trans = 9;
isc_info_sql_stmt_commit = 10;
isc_info_sql_stmt_rollback = 11;
isc_info_sql_stmt_select_for_upd = 12;
isc_info_sql_stmt_set_generator = 13;
isc_info_sql_stmt_savepoint = 14;
isc_info_number_messages = 4;
isc_info_max_message = 5;
isc_info_max_send = 6;
isc_info_max_receive = 7;
isc_info_state = 8;
isc_info_message_number = 9;
isc_info_message_size = 10;
isc_info_request_cost = 11;
isc_info_access_path = 12;
isc_info_req_select_count = 13;
isc_info_req_insert_count = 14;
isc_info_req_update_count = 15;
isc_info_req_delete_count = 16;
isc_spb_version = isc_spb_current_version;
isc_spb_user_name = isc_dpb_user_name;
isc_spb_password = isc_dpb_password;
isc_spb_sql_role_name = isc_dpb_sql_role_name;
isc_spb_res_stat = isc_spb_bkp_stat;

Variables

fb_get_master_interface: function: IMaster cdecl;
isc_get_client_major_version: function(): cint cdecl;
isc_get_client_minor_version: function(): cint cdecl;
gds__alloc: function(size_request: SLONG): pointer cdecl;
gds__free: function(blk: pointer): ULONG; cdecl;
gds__vax_integer: function(ptr: pbyte; length: SSHORT): ISC_LONG; cdecl;
isc_event_counts: procedure(result_vector: pULONG; legth: SSHORT; before: pbyte; after: pbyte) cdecl;
gds__sqlcode: function(status_vector: pISC_STATUS): SLONG cdecl;

Description

Functions and Procedures

procedure inifbapi(var api: fbapity);
 
procedure finifbapi(var api: fbapity);
 
procedure initializefirebird(const sonames: array of filenamety; const onlyonce: boolean = false);
 
procedure releasefirebird();
 
function formatstatus(status: istatus): string;
 
function event_block(out eventbuffer: pbyte; const names: array of string): int32;
 
procedure freeeventblock(var eventbuffer: pbyte);
 

Types

SSHORT = cshort;
 
USHORT = cushort;
 
SLONG = int32;
 
ULONG = card32;
 
pULONG = ˆULONG;
 
ISC_USHORT = cushort;
 
ISC_SHORT = cshort;
 
pISC_SHORT = ˆISC_SHORT;
 
ISC_LONG = SLONG;
 
pISC_QUAD = ˆISC_QUAD;
 
ISC_DATE = int32;
 
pISC_DATE = ˆISC_DATE;
 
ISC_TIME = card32;
 
pISC_TIME = ˆISC_TIME;
 
pISC_TIMESTAMP = ˆISC_TIMESTAMP;
 
ISC_STATUS = ptrint;
 
pISC_STATUS = ˆISC_STATUS;
 
pvary = ˆvary;
 

Constants

firebirdlib: array[0..2] of filenamety = ('libfbclient.so.3','libfbclient.so.2','libfbclient.so');
 
SQL_TEXT = 452;
 
SQL_VARYING = 448;
 
SQL_SHORT = 500;
 
SQL_LONG = 496;
 
SQL_FLOAT = 482;
 
SQL_DOUBLE = 480;
 
SQL_D_FLOAT = 530;
 
SQL_TIMESTAMP = 510;
 
SQL_BLOB = 520;
 
SQL_ARRAY = 540;
 
SQL_QUAD = 550;
 
SQL_TYPE_TIME = 560;
 
SQL_TYPE_DATE = 570;
 
SQL_INT64 = 580;
 
SQL_BOOLEAN = 32764;
 
SQL_NULL = 32766;
 
CS_NONE = 0;
 
CS_BINARY = 1;
 
CS_ASCII = 2;
 
CS_UNICODE_FSS = 3;
 
CS_UTF8 = 4;
 
FB_DOUBLE_ALIGN = 4;
 
ISC_TIME_SECONDS_PRECISION = 10000;
 
GDS_EPOCH_START = 40617;
 
fbdatetimeoffset = -15018;
 
EPB_version1 = 1;
 
isc_info_end = 1;
 
isc_info_truncated = 2;
 
isc_info_error = 3;
 
isc_info_data_not_ready = 4;
 
isc_info_length = 126;
 
isc_info_flag_end = 127;
 
isc_info_blob_num_segments = 4;
 
isc_info_blob_max_segment = 5;
 
isc_info_blob_total_length = 6;
 
isc_info_blob_type = 7;
 
isc_info_sql_select = 4;
 
isc_info_sql_bind = 5;
 
isc_info_sql_num_variables = 6;
 
isc_info_sql_describe_vars = 7;
 
isc_info_sql_describe_end = 8;
 
isc_info_sql_sqlda_seq = 9;
 
isc_info_sql_message_seq = 10;
 
isc_info_sql_type = 11;
 
isc_info_sql_sub_type = 12;
 
isc_info_sql_scale = 13;
 
isc_info_sql_length = 14;
 
isc_info_sql_null_ind = 15;
 
isc_info_sql_field = 16;
 
isc_info_sql_relation = 17;
 
isc_info_sql_owner = 18;
 
isc_info_sql_alias = 19;
 
isc_info_sql_sqlda_start = 20;
 
isc_info_sql_stmt_type = 21;
 
isc_info_sql_get_plan = 22;
 
isc_info_sql_records = 23;
 
isc_info_sql_batch_fetch = 24;
 
isc_info_sql_relation_alias = 25;
 
isc_info_sql_explain_plan = 26;
 
isc_info_sql_stmt_flags = 27;
 
isc_info_sql_stmt_select = 1;
 
isc_info_sql_stmt_insert = 2;
 
isc_info_sql_stmt_update = 3;
 
isc_info_sql_stmt_delete = 4;
 
isc_info_sql_stmt_ddl = 5;
 
isc_info_sql_stmt_get_segment = 6;
 
isc_info_sql_stmt_put_segment = 7;
 
isc_info_sql_stmt_exec_procedure = 8;
 
isc_info_sql_stmt_start_trans = 9;
 
isc_info_sql_stmt_commit = 10;
 
isc_info_sql_stmt_rollback = 11;
 
isc_info_sql_stmt_select_for_upd = 12;
 
isc_info_sql_stmt_set_generator = 13;
 
isc_info_sql_stmt_savepoint = 14;
 
isc_info_number_messages = 4;
 
isc_info_max_message = 5;
 
isc_info_max_send = 6;
 
isc_info_max_receive = 7;
 
isc_info_state = 8;
 
isc_info_message_number = 9;
 
isc_info_message_size = 10;
 
isc_info_request_cost = 11;
 
isc_info_access_path = 12;
 
isc_info_req_select_count = 13;
 
isc_info_req_insert_count = 14;
 
isc_info_req_update_count = 15;
 
isc_info_req_delete_count = 16;
 
isc_spb_version = isc_spb_current_version;
 
isc_spb_user_name = isc_dpb_user_name;
 
isc_spb_password = isc_dpb_password;
 
isc_spb_sql_role_name = isc_dpb_sql_role_name;
 
isc_spb_res_stat = isc_spb_bkp_stat;
 

Variables

fb_get_master_interface: function: IMaster cdecl;
 
isc_get_client_major_version: function(): cint cdecl;
 
isc_get_client_minor_version: function(): cint cdecl;
 
gds__alloc: function(size_request: SLONG): pointer cdecl;
 
gds__free: function(blk: pointer): ULONG; cdecl;
 
gds__vax_integer: function(ptr: pbyte; length: SSHORT): ISC_LONG; cdecl;
 
isc_event_counts: procedure(result_vector: pULONG; legth: SSHORT; before: pbyte; after: pbyte) cdecl;
 
gds__sqlcode: function(status_vector: pISC_STATUS): SLONG cdecl;
 

Generated by PasDoc 0.16.0.