@girs/gda-5.0 5.0.0-3.2.6 → 5.0.0-3.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/gda-5.0-ambient.js +2 -0
- package/gda-5.0-import.js +3 -0
- package/gda-5.0.d.cts +248 -533
- package/gda-5.0.d.ts +248 -533
- package/package.json +14 -8
package/gda-5.0.d.cts
CHANGED
|
@@ -868,34 +868,34 @@ export enum ValueAttribute {
|
|
|
868
868
|
/**
|
|
869
869
|
* The corresponding attribute specifies if the object it refers to is auto incremented (value has a G_TYPE_BOOLEAN type).
|
|
870
870
|
*/
|
|
871
|
-
export const ATTRIBUTE_AUTO_INCREMENT: string
|
|
871
|
+
export const ATTRIBUTE_AUTO_INCREMENT: string
|
|
872
872
|
/**
|
|
873
873
|
* The corresponding attribute is the description of the object it refers to (value has a G_TYPE_STRING type).
|
|
874
874
|
*/
|
|
875
|
-
export const ATTRIBUTE_DESCRIPTION: string
|
|
875
|
+
export const ATTRIBUTE_DESCRIPTION: string
|
|
876
876
|
/**
|
|
877
877
|
* The corresponding attribute specifies if the object it refers to has its value to default (value has a G_TYPE_BOOLEAN type).
|
|
878
878
|
*/
|
|
879
|
-
export const ATTRIBUTE_IS_DEFAULT: string
|
|
879
|
+
export const ATTRIBUTE_IS_DEFAULT: string
|
|
880
880
|
/**
|
|
881
881
|
* The corresponding attribute is the name of the object it refers to (value has a G_TYPE_STRING type).
|
|
882
882
|
*/
|
|
883
|
-
export const ATTRIBUTE_NAME: string
|
|
883
|
+
export const ATTRIBUTE_NAME: string
|
|
884
884
|
/**
|
|
885
885
|
* The corresponding attribute is the number of significant digits of the object it refers to (value has a G_TYPE_INT type).
|
|
886
886
|
*/
|
|
887
|
-
export const ATTRIBUTE_NUMERIC_PRECISION: string
|
|
887
|
+
export const ATTRIBUTE_NUMERIC_PRECISION: string
|
|
888
888
|
/**
|
|
889
889
|
* The corresponding attribute is the number of significant digits to the right of the decimal point of the object it refers to (value has a G_TYPE_INT type).
|
|
890
890
|
*/
|
|
891
|
-
export const ATTRIBUTE_NUMERIC_SCALE: string
|
|
891
|
+
export const ATTRIBUTE_NUMERIC_SCALE: string
|
|
892
892
|
/**
|
|
893
893
|
* This attribute, if %TRUE specifies that a tree node may or may not have any children nodes (value has a G_TYPE_BOOLEAN type).
|
|
894
894
|
*/
|
|
895
|
-
export const ATTRIBUTE_TREE_NODE_UNKNOWN_CHILDREN: string
|
|
896
|
-
export const EXTRA_AUTO_INCREMENT: string
|
|
897
|
-
export const SQLSTATE_GENERAL_ERROR: string
|
|
898
|
-
export const SQLSTATE_NO_ERROR: string
|
|
895
|
+
export const ATTRIBUTE_TREE_NODE_UNKNOWN_CHILDREN: string
|
|
896
|
+
export const EXTRA_AUTO_INCREMENT: string
|
|
897
|
+
export const SQLSTATE_GENERAL_ERROR: string
|
|
898
|
+
export const SQLSTATE_NO_ERROR: string
|
|
899
899
|
export const TIMEZONE_INVALID: number
|
|
900
900
|
/**
|
|
901
901
|
* Does the opposite of gda_text_to_alphanum(), in the same string
|
|
@@ -935,7 +935,7 @@ export function blob_free(boxed: any | null): void
|
|
|
935
935
|
* @param end ending position within `sql` of the "token" to complete
|
|
936
936
|
* @returns a new array of strings, or %NULL (use g_strfreev() to free the returned array)
|
|
937
937
|
*/
|
|
938
|
-
export function completion_list_get(cnc: Connection, sql: string
|
|
938
|
+
export function completion_list_get(cnc: Connection, sql: string, start: number, end: number): string[] | null
|
|
939
939
|
/**
|
|
940
940
|
* Creates an INSERT, an UPDATE and a DELETE statement from a SELECT statement
|
|
941
941
|
* using the database metadata available in `cnc'`s meta store. Each statements are computed only if
|
|
@@ -966,14 +966,14 @@ export function data_model_error_quark(): GLib.Quark
|
|
|
966
966
|
* @param string string to escape
|
|
967
967
|
* @returns a new string
|
|
968
968
|
*/
|
|
969
|
-
export function default_escape_string(string: string
|
|
969
|
+
export function default_escape_string(string: string): string | null
|
|
970
970
|
/**
|
|
971
971
|
* Do the reverse of gda_default_escape_string(): transforms any "''" into "'", any
|
|
972
972
|
* "\\" into "\" and any "\'" into "'".
|
|
973
973
|
* @param string string to unescape
|
|
974
974
|
* @returns a new unescaped string, or %NULL in an error was found in @string
|
|
975
975
|
*/
|
|
976
|
-
export function default_unescape_string(string: string
|
|
976
|
+
export function default_unescape_string(string: string): string | null
|
|
977
977
|
/**
|
|
978
978
|
* Extract the DSN, username and password from `string`. in `string,` the various parts are strings
|
|
979
979
|
* which are expected to be encoded using an RFC 1738 compliant encoding. If they are specified,
|
|
@@ -985,7 +985,7 @@ export function default_unescape_string(string: string | null): string | null
|
|
|
985
985
|
* @param out_username a place to store the new string containing the <username> part
|
|
986
986
|
* @param out_password a place to store the new string containing the <password> part
|
|
987
987
|
*/
|
|
988
|
-
export function dsn_split(string: string
|
|
988
|
+
export function dsn_split(string: string, out_dsn: string | null, out_username: string | null, out_password: string | null): void
|
|
989
989
|
/**
|
|
990
990
|
* Converts a named type to ts GType type (also see the gda_g_type_to_string() function).
|
|
991
991
|
*
|
|
@@ -1012,7 +1012,7 @@ export function dsn_split(string: string | null, out_dsn: string | null, out_use
|
|
|
1012
1012
|
* @param str the name of a #GType, as returned by gda_g_type_to_string().
|
|
1013
1013
|
* @returns the #GType represented by the given @str, or #G_TYPE_INVALID if not found
|
|
1014
1014
|
*/
|
|
1015
|
-
export function g_type_from_string(str: string
|
|
1015
|
+
export function g_type_from_string(str: string): GObject.GType
|
|
1016
1016
|
/**
|
|
1017
1017
|
* Converts a GType to its string representation (use gda_g_type_from_string() for the
|
|
1018
1018
|
* operation in the other direction).
|
|
@@ -1023,7 +1023,7 @@ export function g_type_from_string(str: string | null): GObject.GType
|
|
|
1023
1023
|
* @param type Type to convert from.
|
|
1024
1024
|
* @returns the GDA's string representing the given #GType or the name returned by #g_type_name.
|
|
1025
1025
|
*/
|
|
1026
|
-
export function g_type_to_string(type: GObject.GType): string
|
|
1026
|
+
export function g_type_to_string(type: GObject.GType): string
|
|
1027
1027
|
export function geometricpoint_copy(boxed: any | null): any | null
|
|
1028
1028
|
export function geometricpoint_free(boxed: any | null): void
|
|
1029
1029
|
/**
|
|
@@ -1034,7 +1034,7 @@ export function geometricpoint_free(boxed: any | null): void
|
|
|
1034
1034
|
* @param app_name the name of the application to find
|
|
1035
1035
|
* @returns the path as a new string, or %NULL if the application cannot be found
|
|
1036
1036
|
*/
|
|
1037
|
-
export function get_application_exec_path(app_name: string
|
|
1037
|
+
export function get_application_exec_path(app_name: string): string | null
|
|
1038
1038
|
/**
|
|
1039
1039
|
* Does the same as strcmp(`id1`, `id2`), but handles the case where id1 and/or id2 are enclosed in double quotes.
|
|
1040
1040
|
* can also be used in hash tables as a #GEqualFunc.
|
|
@@ -1042,13 +1042,13 @@ export function get_application_exec_path(app_name: string | null): string | nul
|
|
|
1042
1042
|
* @param id2 an identifier string
|
|
1043
1043
|
* @returns %TRUE if @id1 and @id2 are equal.
|
|
1044
1044
|
*/
|
|
1045
|
-
export function identifier_equal(id1: string
|
|
1045
|
+
export function identifier_equal(id1: string, id2: string): boolean
|
|
1046
1046
|
/**
|
|
1047
1047
|
* computes a hash string from `id,` to be used in hash tables as a #GHashFunc
|
|
1048
1048
|
* @param id an identifier string
|
|
1049
1049
|
* @returns a new hash
|
|
1050
1050
|
*/
|
|
1051
|
-
export function identifier_hash(id: string
|
|
1051
|
+
export function identifier_hash(id: string): number
|
|
1052
1052
|
/**
|
|
1053
1053
|
* Initializes the GDA library, must be called prior to any Libgda usage.
|
|
1054
1054
|
*
|
|
@@ -1089,8 +1089,8 @@ export function mutex_unlock(mutex: Mutex): void
|
|
|
1089
1089
|
* @param sep spcifies the expected separator character bewteen year, month and day (for example '-')
|
|
1090
1090
|
* @returns %TRUE if @value has been sucessfuly parsed as a valid date (see g_date_valid()).
|
|
1091
1091
|
*/
|
|
1092
|
-
export function parse_formatted_date(gdate: GLib.Date, value: string
|
|
1093
|
-
export function parse_formatted_time(timegda: Time, value: string
|
|
1092
|
+
export function parse_formatted_date(gdate: GLib.Date, value: string, first: GLib.DateDMY, second: GLib.DateDMY, third: GLib.DateDMY, sep: number): boolean
|
|
1093
|
+
export function parse_formatted_time(timegda: Time, value: string, sep: number): boolean
|
|
1094
1094
|
/**
|
|
1095
1095
|
* This function is similar to gda_parse_iso8601_timestamp() (with `first` being `G_DATE_YEAR,` `second` being `G_DATE_MONTH,`
|
|
1096
1096
|
* `third` being `G_DATE_DAY` and `sep` being '-') but allows one to specify the expected date format.
|
|
@@ -1102,7 +1102,7 @@ export function parse_formatted_time(timegda: Time, value: string | null, sep: n
|
|
|
1102
1102
|
* @param sep spcifies the expected separator character bewteen year, month and day (for example '-')
|
|
1103
1103
|
* @returns %TRUE if @value has been sucessfuly parsed as a valid date (see g_date_valid()).
|
|
1104
1104
|
*/
|
|
1105
|
-
export function parse_formatted_timestamp(timestamp: Timestamp, value: string
|
|
1105
|
+
export function parse_formatted_timestamp(timestamp: Timestamp, value: string, first: GLib.DateDMY, second: GLib.DateDMY, third: GLib.DateDMY, sep: number): boolean
|
|
1106
1106
|
/**
|
|
1107
1107
|
* Extracts date parts from `value,` and sets `gdate'`s contents
|
|
1108
1108
|
*
|
|
@@ -1113,7 +1113,7 @@ export function parse_formatted_timestamp(timestamp: Timestamp, value: string |
|
|
|
1113
1113
|
* @param value a string
|
|
1114
1114
|
* @returns %TRUE if @value has been sucessfuly parsed as a valid date (see g_date_valid()).
|
|
1115
1115
|
*/
|
|
1116
|
-
export function parse_iso8601_date(gdate: GLib.Date, value: string
|
|
1116
|
+
export function parse_iso8601_date(gdate: GLib.Date, value: string): boolean
|
|
1117
1117
|
/**
|
|
1118
1118
|
* Extracts time parts from `value,` and sets `timegda'`s contents
|
|
1119
1119
|
*
|
|
@@ -1122,7 +1122,7 @@ export function parse_iso8601_date(gdate: GLib.Date, value: string | null): bool
|
|
|
1122
1122
|
* @param value a string
|
|
1123
1123
|
* @returns %TRUE if no error occurred
|
|
1124
1124
|
*/
|
|
1125
|
-
export function parse_iso8601_time(timegda: Time, value: string
|
|
1125
|
+
export function parse_iso8601_time(timegda: Time, value: string): boolean
|
|
1126
1126
|
/**
|
|
1127
1127
|
* Extracts date and time parts from `value,` and sets `timestamp'`s contents
|
|
1128
1128
|
*
|
|
@@ -1131,7 +1131,7 @@ export function parse_iso8601_time(timegda: Time, value: string | null): boolean
|
|
|
1131
1131
|
* @param value a string
|
|
1132
1132
|
* @returns %TRUE if @value has been sucessfuly parsed as a valid timestamp (see g_date_valid())
|
|
1133
1133
|
*/
|
|
1134
|
-
export function parse_iso8601_timestamp(timestamp: Timestamp, value: string
|
|
1134
|
+
export function parse_iso8601_timestamp(timestamp: Timestamp, value: string): boolean
|
|
1135
1135
|
/**
|
|
1136
1136
|
* Modifies `stmt` to take into account any parameter which might be %NULL: if `stmt` contains the
|
|
1137
1137
|
* equivalent of "xxx = <parameter definition>" and if that parameter is in `params` and
|
|
@@ -1182,7 +1182,7 @@ export function rfc1738_decode(string: string | null): boolean
|
|
|
1182
1182
|
* @param string a string to encode
|
|
1183
1183
|
* @returns a new string
|
|
1184
1184
|
*/
|
|
1185
|
-
export function rfc1738_encode(string: string
|
|
1185
|
+
export function rfc1738_encode(string: string): string | null
|
|
1186
1186
|
/**
|
|
1187
1187
|
* Creates a new #GdaStatement, selecting the same data as `stmt,` but which always returns an
|
|
1188
1188
|
* empty (no row) data model. This is use dy database providers' implementations.
|
|
@@ -1368,7 +1368,7 @@ export function sql_error_quark(): GLib.Quark
|
|
|
1368
1368
|
* @param force_quotes set to %TRUE to force the returned string to be quoted
|
|
1369
1369
|
* @returns the representation of @id ready to be used in SQL statement, as a new string, or %NULL if @id is in a wrong format
|
|
1370
1370
|
*/
|
|
1371
|
-
export function sql_identifier_quote(id: string
|
|
1371
|
+
export function sql_identifier_quote(id: string, cnc: Connection | null, prov: ServerProvider | null, meta_store_convention: boolean, force_quotes: boolean): string | null
|
|
1372
1372
|
/**
|
|
1373
1373
|
* Splits `id` into an array of it sub parts. `id'`s format has to be "<part>[.<part>[...]]" where
|
|
1374
1374
|
* each part is either a text surrounded by double quotes which can contain upper and lower cases or
|
|
@@ -1378,10 +1378,10 @@ export function sql_identifier_quote(id: string | null, cnc: Connection | null,
|
|
|
1378
1378
|
* @param id an SQL identifier
|
|
1379
1379
|
* @returns a new %NULL-terminated array of strings, or NULL (use g_strfreev() to free the returned array)
|
|
1380
1380
|
*/
|
|
1381
|
-
export function sql_identifier_split(id: string
|
|
1382
|
-
export function sql_operation_operator_from_string(op: string
|
|
1383
|
-
export function sql_operation_operator_to_string(op: SqlOperatorType): string
|
|
1384
|
-
export function sql_select_join_type_to_string(type: SqlSelectJoinType): string
|
|
1381
|
+
export function sql_identifier_split(id: string): string[] | null
|
|
1382
|
+
export function sql_operation_operator_from_string(op: string): SqlOperatorType
|
|
1383
|
+
export function sql_operation_operator_to_string(op: SqlOperatorType): string
|
|
1384
|
+
export function sql_select_join_type_to_string(type: SqlSelectJoinType): string
|
|
1385
1385
|
/**
|
|
1386
1386
|
* Performs the reverse of gda_binary_to_string() (note that for any "\xyz" succession
|
|
1387
1387
|
* of 4 characters where "xyz" represents a valid octal value, the resulting read value will
|
|
@@ -1397,7 +1397,7 @@ export function string_to_binary(str: string | null): Binary
|
|
|
1397
1397
|
* @param str a string to convert
|
|
1398
1398
|
* @returns a new #gdaBlob if no error were found in @str, or NULL otherwise
|
|
1399
1399
|
*/
|
|
1400
|
-
export function string_to_blob(str: string
|
|
1400
|
+
export function string_to_blob(str: string): Blob
|
|
1401
1401
|
/**
|
|
1402
1402
|
* The "encoding" consists in replacing non
|
|
1403
1403
|
* alphanumeric character with the string "__gdaXX" where XX is the hex. representation
|
|
@@ -1405,7 +1405,7 @@ export function string_to_blob(str: string | null): Blob
|
|
|
1405
1405
|
* @param text the text to convert
|
|
1406
1406
|
* @returns a new string
|
|
1407
1407
|
*/
|
|
1408
|
-
export function text_to_alphanum(text: string
|
|
1408
|
+
export function text_to_alphanum(text: string): string | null
|
|
1409
1409
|
export function time_copy(boxed: any | null): any | null
|
|
1410
1410
|
export function time_free(boxed: any | null): void
|
|
1411
1411
|
export function timestamp_copy(boxed: any | null): any | null
|
|
@@ -1438,7 +1438,7 @@ export function utility_data_model_dump_data_to_xml(model: DataModel, parent: li
|
|
|
1438
1438
|
* @param field_name field name
|
|
1439
1439
|
* @returns The field's description, or NULL if description is not set
|
|
1440
1440
|
*/
|
|
1441
|
-
export function utility_data_model_find_column_description(model: DataSelect, field_name: string
|
|
1441
|
+
export function utility_data_model_find_column_description(model: DataSelect, field_name: string): string
|
|
1442
1442
|
/**
|
|
1443
1443
|
* Note: this method may set the "source" custom string property
|
|
1444
1444
|
* @param holder a #GdaHolder
|
|
@@ -1490,10 +1490,10 @@ export function value_differ(value1: any, value2: any): number
|
|
|
1490
1490
|
*/
|
|
1491
1491
|
export function value_stringify(value: any): string | null
|
|
1492
1492
|
export interface AttributesManagerFunc {
|
|
1493
|
-
(att_name: string
|
|
1493
|
+
(att_name: string, value: any, data: any | null): void
|
|
1494
1494
|
}
|
|
1495
1495
|
export interface AttributesManagerSignal {
|
|
1496
|
-
(obj: GObject.Object, att_name: string
|
|
1496
|
+
(obj: GObject.Object, att_name: string, value: any, data: any | null): void
|
|
1497
1497
|
}
|
|
1498
1498
|
/**
|
|
1499
1499
|
* Function to be called by Libgda when the associated asynchronous method invoked finishes.
|
|
@@ -1532,7 +1532,7 @@ export interface SqlRenderingValue {
|
|
|
1532
1532
|
(value: any, context: SqlRenderingContext): string | null
|
|
1533
1533
|
}
|
|
1534
1534
|
export interface SqlReservedKeywordsFunc {
|
|
1535
|
-
(word: string
|
|
1535
|
+
(word: string): boolean
|
|
1536
1536
|
}
|
|
1537
1537
|
/**
|
|
1538
1538
|
* Specifies the type of function to be passed to gda_thread_wrapper_connect_raw()
|
|
@@ -1546,7 +1546,7 @@ export interface SqlReservedKeywordsFunc {
|
|
|
1546
1546
|
* @param data a pointer to the data (which is the `data` argument passed to gda_thread_wrapper_connect_raw())
|
|
1547
1547
|
*/
|
|
1548
1548
|
export interface ThreadWrapperCallback {
|
|
1549
|
-
(wrapper: ThreadWrapper, instance: any | null, signame: string
|
|
1549
|
+
(wrapper: ThreadWrapper, instance: any | null, signame: string, n_param_values: number, param_values: any, gda_reserved: any | null, data: any | null): void
|
|
1550
1550
|
}
|
|
1551
1551
|
/**
|
|
1552
1552
|
* Specifies the type of function to be passed to gda_thread_wrapper_execute().
|
|
@@ -1588,7 +1588,7 @@ export interface DataHandler {
|
|
|
1588
1588
|
* Get a short description of the GdaDataHandler
|
|
1589
1589
|
* @returns the description
|
|
1590
1590
|
*/
|
|
1591
|
-
get_descr(): string
|
|
1591
|
+
get_descr(): string
|
|
1592
1592
|
/**
|
|
1593
1593
|
* Creates a new GValue which holds a sane initial value to be used if no value is specifically
|
|
1594
1594
|
* provided. For example for a simple string, this would return a new value containing the "" string.
|
|
@@ -1662,7 +1662,7 @@ export interface DataHandler {
|
|
|
1662
1662
|
* @virtual
|
|
1663
1663
|
* @returns the description
|
|
1664
1664
|
*/
|
|
1665
|
-
vfunc_get_descr(): string
|
|
1665
|
+
vfunc_get_descr(): string
|
|
1666
1666
|
/**
|
|
1667
1667
|
* Creates a new GValue which holds a sane initial value to be used if no value is specifically
|
|
1668
1668
|
* provided. For example for a simple string, this would return a new value containing the "" string.
|
|
@@ -1968,7 +1968,7 @@ export interface DataModel {
|
|
|
1968
1968
|
* @param options list of options for the export
|
|
1969
1969
|
* @returns TRUE if no error occurred
|
|
1970
1970
|
*/
|
|
1971
|
-
export_to_file(format: DataModelIOFormat, file: string
|
|
1971
|
+
export_to_file(format: DataModelIOFormat, file: string, cols: number[] | null, rows: number[] | null, options: Set): boolean
|
|
1972
1972
|
/**
|
|
1973
1973
|
* Exports data contained in `model` to a string; the format is specified using the `format` argument, see the
|
|
1974
1974
|
* gda_data_model_export_to_file() documentation for more information about the `options` argument (except for the
|
|
@@ -2013,9 +2013,9 @@ export interface DataModel {
|
|
|
2013
2013
|
* @param name a column name
|
|
2014
2014
|
* @returns the column index, or -1 if no column named @name was found
|
|
2015
2015
|
*/
|
|
2016
|
-
get_column_index(name: string
|
|
2017
|
-
get_column_name(col: number): string
|
|
2018
|
-
get_column_title(col: number): string
|
|
2016
|
+
get_column_index(name: string): number
|
|
2017
|
+
get_column_name(col: number): string
|
|
2018
|
+
get_column_title(col: number): string
|
|
2019
2019
|
/**
|
|
2020
2020
|
* Get the global data model exception(s) that occurred when using `model`.
|
|
2021
2021
|
* This is useful for example for the LDAP related
|
|
@@ -2098,7 +2098,7 @@ export interface DataModel {
|
|
|
2098
2098
|
* @param options list of options for the export
|
|
2099
2099
|
* @returns TRUE if no error occurred
|
|
2100
2100
|
*/
|
|
2101
|
-
import_from_file(file: string
|
|
2101
|
+
import_from_file(file: string, cols_trans: GLib.HashTable | null, options: Set): boolean
|
|
2102
2102
|
/**
|
|
2103
2103
|
* Copy the contents of the `from` data model to the `to` data model. The copy stops as soon as an error
|
|
2104
2104
|
* orrurs.
|
|
@@ -2134,7 +2134,7 @@ export interface DataModel {
|
|
|
2134
2134
|
* @param options list of options for the export
|
|
2135
2135
|
* @returns TRUE if no error occurred.
|
|
2136
2136
|
*/
|
|
2137
|
-
import_from_string(string: string
|
|
2137
|
+
import_from_string(string: string, cols_trans: GLib.HashTable | null, options: Set): boolean
|
|
2138
2138
|
/**
|
|
2139
2139
|
* Moves `iter` to the row number given by `row`.
|
|
2140
2140
|
* @param iter a #GdaDataModelIter object.
|
|
@@ -2208,13 +2208,13 @@ export interface DataModel {
|
|
|
2208
2208
|
* @param col column number
|
|
2209
2209
|
* @param name name for the given column.
|
|
2210
2210
|
*/
|
|
2211
|
-
set_column_name(col: number, name: string
|
|
2211
|
+
set_column_name(col: number, name: string): void
|
|
2212
2212
|
/**
|
|
2213
2213
|
* Sets the `title` of the given `col` in `model`.
|
|
2214
2214
|
* @param col column number
|
|
2215
2215
|
* @param title title for the given column.
|
|
2216
2216
|
*/
|
|
2217
|
-
set_column_title(col: number, title: string
|
|
2217
|
+
set_column_title(col: number, title: string): void
|
|
2218
2218
|
/**
|
|
2219
2219
|
* Enable or disable notifications changes on the given data model.
|
|
2220
2220
|
* @param do_notify_changes Set to TRUE if you require notifications.
|
|
@@ -2888,13 +2888,13 @@ export interface Column {
|
|
|
2888
2888
|
* @param attribute attribute name as a string
|
|
2889
2889
|
* @returns a read-only #GValue, or %NULL if not attribute named @attribute has been set for @column
|
|
2890
2890
|
*/
|
|
2891
|
-
get_attribute(attribute: string
|
|
2891
|
+
get_attribute(attribute: string): any
|
|
2892
2892
|
get_auto_increment(): boolean
|
|
2893
|
-
get_dbms_type(): string
|
|
2893
|
+
get_dbms_type(): string
|
|
2894
2894
|
get_default_value(): any | null
|
|
2895
|
-
get_description(): string
|
|
2895
|
+
get_description(): string
|
|
2896
2896
|
get_g_type(): GObject.GType
|
|
2897
|
-
get_name(): string
|
|
2897
|
+
get_name(): string
|
|
2898
2898
|
get_position(): number
|
|
2899
2899
|
/**
|
|
2900
2900
|
* Sets the 'allow null' flag of the given column.
|
|
@@ -2926,7 +2926,7 @@ export interface Column {
|
|
|
2926
2926
|
* @param value a #GValue, or %NULL
|
|
2927
2927
|
* @param destroy a function to be called when `attribute` is not needed anymore, or %NULL
|
|
2928
2928
|
*/
|
|
2929
|
-
set_attribute(attribute: string
|
|
2929
|
+
set_attribute(attribute: string, value: any | null, destroy: GLib.DestroyNotify | null): void
|
|
2930
2930
|
/**
|
|
2931
2931
|
* Sets the auto increment flag for the given column.
|
|
2932
2932
|
* @param is_auto auto increment status.
|
|
@@ -2936,7 +2936,7 @@ export interface Column {
|
|
|
2936
2936
|
* Defines `column'`s database type
|
|
2937
2937
|
* @param dbms_type a string
|
|
2938
2938
|
*/
|
|
2939
|
-
set_dbms_type(dbms_type: string
|
|
2939
|
+
set_dbms_type(dbms_type: string): void
|
|
2940
2940
|
/**
|
|
2941
2941
|
* Sets `column'`s default #GValue.
|
|
2942
2942
|
* @param default_value default #GValue for the column
|
|
@@ -2946,7 +2946,7 @@ export interface Column {
|
|
|
2946
2946
|
* Sets the column's description
|
|
2947
2947
|
* @param title title name.
|
|
2948
2948
|
*/
|
|
2949
|
-
set_description(title: string
|
|
2949
|
+
set_description(title: string): void
|
|
2950
2950
|
/**
|
|
2951
2951
|
* Sets the type of `column` to `type`.
|
|
2952
2952
|
* @param type the new type of `column`.
|
|
@@ -2956,7 +2956,7 @@ export interface Column {
|
|
|
2956
2956
|
* Sets the name of `column` to `name`.
|
|
2957
2957
|
* @param name the new name of `column`.
|
|
2958
2958
|
*/
|
|
2959
|
-
set_name(name: string
|
|
2959
|
+
set_name(name: string): void
|
|
2960
2960
|
/**
|
|
2961
2961
|
* Sets the position of the column refer to in the containing
|
|
2962
2962
|
* data model.
|
|
@@ -2967,7 +2967,7 @@ export interface Column {
|
|
|
2967
2967
|
// Own virtual methods of Gda-5.0.Gda.Column
|
|
2968
2968
|
|
|
2969
2969
|
vfunc_g_type_changed(old_type: GObject.GType, new_type: GObject.GType): void
|
|
2970
|
-
vfunc_name_changed(old_name: string
|
|
2970
|
+
vfunc_name_changed(old_name: string): void
|
|
2971
2971
|
|
|
2972
2972
|
// Own signals of Gda-5.0.Gda.Column
|
|
2973
2973
|
|
|
@@ -3043,14 +3043,6 @@ export module Config {
|
|
|
3043
3043
|
|
|
3044
3044
|
// Own constructor properties of Gda-5.0.Gda.Config
|
|
3045
3045
|
|
|
3046
|
-
/**
|
|
3047
|
-
* File to use for system-wide DSN list. When changed, the whole list of DSN will be reloaded.
|
|
3048
|
-
*/
|
|
3049
|
-
system_filename?: string | null
|
|
3050
|
-
/**
|
|
3051
|
-
* File to use for per-user DSN list. When changed, the whole list of DSN will be reloaded.
|
|
3052
|
-
*/
|
|
3053
|
-
user_filename?: string | null
|
|
3054
3046
|
/**
|
|
3055
3047
|
* File to use for system-wide DSN list. When changed, the whole list of DSN will be reloaded.
|
|
3056
3048
|
*/
|
|
@@ -3067,18 +3059,10 @@ export interface Config {
|
|
|
3067
3059
|
|
|
3068
3060
|
// Own properties of Gda-5.0.Gda.Config
|
|
3069
3061
|
|
|
3070
|
-
/**
|
|
3071
|
-
* File to use for system-wide DSN list. When changed, the whole list of DSN will be reloaded.
|
|
3072
|
-
*/
|
|
3073
|
-
system_filename: string | null
|
|
3074
3062
|
/**
|
|
3075
3063
|
* File to use for system-wide DSN list. When changed, the whole list of DSN will be reloaded.
|
|
3076
3064
|
*/
|
|
3077
3065
|
systemFilename: string | null
|
|
3078
|
-
/**
|
|
3079
|
-
* File to use for per-user DSN list. When changed, the whole list of DSN will be reloaded.
|
|
3080
|
-
*/
|
|
3081
|
-
user_filename: string | null
|
|
3082
3066
|
/**
|
|
3083
3067
|
* File to use for per-user DSN list. When changed, the whole list of DSN will be reloaded.
|
|
3084
3068
|
*/
|
|
@@ -3156,7 +3140,7 @@ export class Config extends GObject.Object {
|
|
|
3156
3140
|
* @param dsn_name the name of a DSN, in the "[<username>[:<password>]`]`<DSN>" format
|
|
3157
3141
|
* @returns TRUE if an authentication is needed
|
|
3158
3142
|
*/
|
|
3159
|
-
static dsn_needs_authentication(dsn_name: string
|
|
3143
|
+
static dsn_needs_authentication(dsn_name: string): boolean
|
|
3160
3144
|
static error_quark(): GLib.Quark
|
|
3161
3145
|
/**
|
|
3162
3146
|
* Get a pointer to the global (unique) #GdaConfig object. This functions increments
|
|
@@ -3173,7 +3157,7 @@ export class Config extends GObject.Object {
|
|
|
3173
3157
|
* @param dsn_name the name of the DSN to look for
|
|
3174
3158
|
* @returns a pointer to read-only #GdaDsnInfo structure, or %NULL if not found
|
|
3175
3159
|
*/
|
|
3176
|
-
static get_dsn_info(dsn_name: string
|
|
3160
|
+
static get_dsn_info(dsn_name: string): DsnInfo
|
|
3177
3161
|
/**
|
|
3178
3162
|
* Get a pointer to a read-only #GdaDsnInfo at the `index` position
|
|
3179
3163
|
* @param index an index
|
|
@@ -3185,7 +3169,7 @@ export class Config extends GObject.Object {
|
|
|
3185
3169
|
* @param dsn_name a DSN
|
|
3186
3170
|
* @returns the index or -1 if not found
|
|
3187
3171
|
*/
|
|
3188
|
-
static get_dsn_info_index(dsn_name: string
|
|
3172
|
+
static get_dsn_info_index(dsn_name: string): number
|
|
3189
3173
|
/**
|
|
3190
3174
|
* Get the number of defined DSN
|
|
3191
3175
|
* @returns the number of defined DSN
|
|
@@ -3200,13 +3184,13 @@ export class Config extends GObject.Object {
|
|
|
3200
3184
|
* @param provider_name a database provider
|
|
3201
3185
|
* @returns a pointer to the #GdaServerProvider, or %NULL if an error occurred
|
|
3202
3186
|
*/
|
|
3203
|
-
static get_provider(provider_name: string
|
|
3187
|
+
static get_provider(provider_name: string): ServerProvider
|
|
3204
3188
|
/**
|
|
3205
3189
|
* Get some information about the a database provider (adapter) named
|
|
3206
3190
|
* @param provider_name a database provider
|
|
3207
3191
|
* @returns a pointer to read-only #GdaProviderInfo structure, or %NULL if not found
|
|
3208
3192
|
*/
|
|
3209
|
-
static get_provider_info(provider_name: string
|
|
3193
|
+
static get_provider_info(provider_name: string): ProviderInfo
|
|
3210
3194
|
/**
|
|
3211
3195
|
* Get a #GdaDataModel representing all the configured DSN, and keeping itself up to date with
|
|
3212
3196
|
* the changes in the declared DSN.
|
|
@@ -3243,7 +3227,7 @@ export class Config extends GObject.Object {
|
|
|
3243
3227
|
* @param dsn_name the name of the DSN to remove
|
|
3244
3228
|
* @returns TRUE if no error occurred
|
|
3245
3229
|
*/
|
|
3246
|
-
static remove_dsn(dsn_name: string
|
|
3230
|
+
static remove_dsn(dsn_name: string): boolean
|
|
3247
3231
|
}
|
|
3248
3232
|
|
|
3249
3233
|
export module Connection {
|
|
@@ -3299,45 +3283,9 @@ export module Connection {
|
|
|
3299
3283
|
|
|
3300
3284
|
// Own constructor properties of Gda-5.0.Gda.Connection
|
|
3301
3285
|
|
|
3302
|
-
auth_string?: string | null
|
|
3303
|
-
cnc_string?: string | null
|
|
3304
|
-
dsn?: string | null
|
|
3305
|
-
/**
|
|
3306
|
-
* Defines the number of #GdaConnectionEvent objects kept in memory which can
|
|
3307
|
-
* be fetched using gda_connection_get_events().
|
|
3308
|
-
*/
|
|
3309
|
-
events_history_size?: number | null
|
|
3310
|
-
/**
|
|
3311
|
-
* Artificially slows down the execution of queries. This property can be used to
|
|
3312
|
-
* debug some problems. If non zero, this value is the number of microseconds waited before actually
|
|
3313
|
-
* executing each query.
|
|
3314
|
-
*/
|
|
3315
|
-
execution_slowdown?: number | null
|
|
3316
|
-
/**
|
|
3317
|
-
* Computes execution times for each statement executed.
|
|
3318
|
-
*/
|
|
3319
|
-
execution_timer?: boolean | null
|
|
3320
|
-
/**
|
|
3321
|
-
* This property, if set to %TRUE, specifies that the connection is not a real connection, but rather
|
|
3322
|
-
* a #GdaConnection object which "proxies" all the calls to another connection which executes in a sub
|
|
3323
|
-
* thread.
|
|
3324
|
-
*
|
|
3325
|
-
* Note: this property is used internally by Libgda and should not be directly used by any programs. Setting
|
|
3326
|
-
* this property has no effect, reading it is supported, though.
|
|
3327
|
-
*/
|
|
3328
|
-
is_wrapper?: boolean | null
|
|
3329
|
-
meta_store?: MetaStore | null
|
|
3330
|
-
/**
|
|
3331
|
-
* Useful only when there is a mainloop and when the connection acts as a thread wrapper around another connection,
|
|
3332
|
-
* it sets up a timeout to handle signals coming from the wrapped connection.
|
|
3333
|
-
*
|
|
3334
|
-
* If the connection is not a thread wrapper, then this property has no effect.
|
|
3335
|
-
*/
|
|
3336
|
-
monitor_wrapped_in_mainloop?: boolean | null
|
|
3337
|
-
provider?: ServerProvider | null
|
|
3338
|
-
thread_owner?: any | null
|
|
3339
3286
|
authString?: string | null
|
|
3340
3287
|
cncString?: string | null
|
|
3288
|
+
dsn?: string | null
|
|
3341
3289
|
/**
|
|
3342
3290
|
* Defines the number of #GdaConnectionEvent objects kept in memory which can
|
|
3343
3291
|
* be fetched using gda_connection_get_events().
|
|
@@ -3370,6 +3318,7 @@ export module Connection {
|
|
|
3370
3318
|
* If the connection is not a thread wrapper, then this property has no effect.
|
|
3371
3319
|
*/
|
|
3372
3320
|
monitorWrappedInMainloop?: boolean | null
|
|
3321
|
+
provider?: ServerProvider | null
|
|
3373
3322
|
threadOwner?: any | null
|
|
3374
3323
|
}
|
|
3375
3324
|
|
|
@@ -3379,50 +3328,24 @@ export interface Connection extends Lockable {
|
|
|
3379
3328
|
|
|
3380
3329
|
// Own properties of Gda-5.0.Gda.Connection
|
|
3381
3330
|
|
|
3382
|
-
auth_string: string | null
|
|
3383
3331
|
authString: string | null
|
|
3384
|
-
cnc_string: string | null
|
|
3385
3332
|
cncString: string | null
|
|
3386
3333
|
dsn: string | null
|
|
3387
|
-
/**
|
|
3388
|
-
* Defines the number of #GdaConnectionEvent objects kept in memory which can
|
|
3389
|
-
* be fetched using gda_connection_get_events().
|
|
3390
|
-
*/
|
|
3391
|
-
events_history_size: number
|
|
3392
3334
|
/**
|
|
3393
3335
|
* Defines the number of #GdaConnectionEvent objects kept in memory which can
|
|
3394
3336
|
* be fetched using gda_connection_get_events().
|
|
3395
3337
|
*/
|
|
3396
3338
|
eventsHistorySize: number
|
|
3397
|
-
/**
|
|
3398
|
-
* Artificially slows down the execution of queries. This property can be used to
|
|
3399
|
-
* debug some problems. If non zero, this value is the number of microseconds waited before actually
|
|
3400
|
-
* executing each query.
|
|
3401
|
-
*/
|
|
3402
|
-
execution_slowdown: number
|
|
3403
3339
|
/**
|
|
3404
3340
|
* Artificially slows down the execution of queries. This property can be used to
|
|
3405
3341
|
* debug some problems. If non zero, this value is the number of microseconds waited before actually
|
|
3406
3342
|
* executing each query.
|
|
3407
3343
|
*/
|
|
3408
3344
|
executionSlowdown: number
|
|
3409
|
-
/**
|
|
3410
|
-
* Computes execution times for each statement executed.
|
|
3411
|
-
*/
|
|
3412
|
-
execution_timer: boolean
|
|
3413
3345
|
/**
|
|
3414
3346
|
* Computes execution times for each statement executed.
|
|
3415
3347
|
*/
|
|
3416
3348
|
executionTimer: boolean
|
|
3417
|
-
/**
|
|
3418
|
-
* This property, if set to %TRUE, specifies that the connection is not a real connection, but rather
|
|
3419
|
-
* a #GdaConnection object which "proxies" all the calls to another connection which executes in a sub
|
|
3420
|
-
* thread.
|
|
3421
|
-
*
|
|
3422
|
-
* Note: this property is used internally by Libgda and should not be directly used by any programs. Setting
|
|
3423
|
-
* this property has no effect, reading it is supported, though.
|
|
3424
|
-
*/
|
|
3425
|
-
is_wrapper: boolean
|
|
3426
3349
|
/**
|
|
3427
3350
|
* This property, if set to %TRUE, specifies that the connection is not a real connection, but rather
|
|
3428
3351
|
* a #GdaConnection object which "proxies" all the calls to another connection which executes in a sub
|
|
@@ -3432,15 +3355,7 @@ export interface Connection extends Lockable {
|
|
|
3432
3355
|
* this property has no effect, reading it is supported, though.
|
|
3433
3356
|
*/
|
|
3434
3357
|
isWrapper: boolean
|
|
3435
|
-
meta_store: MetaStore
|
|
3436
3358
|
metaStore: MetaStore
|
|
3437
|
-
/**
|
|
3438
|
-
* Useful only when there is a mainloop and when the connection acts as a thread wrapper around another connection,
|
|
3439
|
-
* it sets up a timeout to handle signals coming from the wrapped connection.
|
|
3440
|
-
*
|
|
3441
|
-
* If the connection is not a thread wrapper, then this property has no effect.
|
|
3442
|
-
*/
|
|
3443
|
-
monitor_wrapped_in_mainloop: boolean
|
|
3444
3359
|
/**
|
|
3445
3360
|
* Useful only when there is a mainloop and when the connection acts as a thread wrapper around another connection,
|
|
3446
3361
|
* it sets up a timeout to handle signals coming from the wrapped connection.
|
|
@@ -3449,7 +3364,6 @@ export interface Connection extends Lockable {
|
|
|
3449
3364
|
*/
|
|
3450
3365
|
monitorWrappedInMainloop: boolean
|
|
3451
3366
|
provider: ServerProvider
|
|
3452
|
-
thread_owner: any
|
|
3453
3367
|
threadOwner: any
|
|
3454
3368
|
|
|
3455
3369
|
// Own fields of Gda-5.0.Gda.Connection
|
|
@@ -3618,7 +3532,7 @@ export interface Connection extends Lockable {
|
|
|
3618
3532
|
* @param condition_value the `condition_column_type'`s GType
|
|
3619
3533
|
* @returns TRUE if no error occurred, FALSE otherwise
|
|
3620
3534
|
*/
|
|
3621
|
-
delete_row_from_table(table: string
|
|
3535
|
+
delete_row_from_table(table: string, condition_column_name: string, condition_value: any): boolean
|
|
3622
3536
|
/**
|
|
3623
3537
|
* Delete the SAVEPOINT named `name` when not used anymore.
|
|
3624
3538
|
* @param name name of the savepoint to delete
|
|
@@ -3631,18 +3545,18 @@ export interface Connection extends Lockable {
|
|
|
3631
3545
|
* @param sql a query statement that must not begin with "SELECT"
|
|
3632
3546
|
* @returns the number of rows affected or -1, or -2
|
|
3633
3547
|
*/
|
|
3634
|
-
execute_non_select_command(sql: string
|
|
3548
|
+
execute_non_select_command(sql: string): number
|
|
3635
3549
|
/**
|
|
3636
3550
|
* Execute a SQL SELECT command over an opened connection.
|
|
3637
3551
|
* @param sql a query statement that must begin with "SELECT"
|
|
3638
3552
|
* @returns a new #GdaDataModel if successful, %NULL otherwise
|
|
3639
3553
|
*/
|
|
3640
|
-
execute_select_command(sql: string
|
|
3554
|
+
execute_select_command(sql: string): DataModel
|
|
3641
3555
|
/**
|
|
3642
3556
|
* Gets the user name used to open this connection.
|
|
3643
3557
|
* @returns the user name.
|
|
3644
3558
|
*/
|
|
3645
|
-
get_authentication(): string
|
|
3559
|
+
get_authentication(): string
|
|
3646
3560
|
/**
|
|
3647
3561
|
* Gets the connection string used to open this connection.
|
|
3648
3562
|
*
|
|
@@ -3651,13 +3565,13 @@ export interface Connection extends Lockable {
|
|
|
3651
3565
|
* to open a connection on the underlying data source.
|
|
3652
3566
|
* @returns the connection string used when opening the connection.
|
|
3653
3567
|
*/
|
|
3654
|
-
get_cnc_string(): string
|
|
3568
|
+
get_cnc_string(): string
|
|
3655
3569
|
/**
|
|
3656
3570
|
* This function allows you to determine the actual format for the date values.
|
|
3657
3571
|
* @returns %TRUE if no error occurred
|
|
3658
3572
|
*/
|
|
3659
|
-
get_date_format(): [ /* returnType */ boolean, /* out_first */ GLib.DateDMY, /* out_second */ GLib.DateDMY, /* out_third */ GLib.DateDMY, /* out_sep */ string
|
|
3660
|
-
get_dsn(): string
|
|
3573
|
+
get_date_format(): [ /* returnType */ boolean, /* out_first */ GLib.DateDMY, /* out_second */ GLib.DateDMY, /* out_third */ GLib.DateDMY, /* out_sep */ string ]
|
|
3574
|
+
get_dsn(): string
|
|
3661
3575
|
/**
|
|
3662
3576
|
* Retrieves a list of the last errors occurred during the connection. The returned list is
|
|
3663
3577
|
* chronologically ordered such as that the most recent event is the #GdaConnectionEvent of the first node.
|
|
@@ -3699,7 +3613,7 @@ export interface Connection extends Lockable {
|
|
|
3699
3613
|
* Gets the name (identifier) of the database provider used by `cnc`
|
|
3700
3614
|
* @returns a non modifiable string
|
|
3701
3615
|
*/
|
|
3702
|
-
get_provider_name(): string
|
|
3616
|
+
get_provider_name(): string
|
|
3703
3617
|
/**
|
|
3704
3618
|
* Get the status of `cnc` regarding transactions. The returned object should not be modified
|
|
3705
3619
|
* or destroyed; however it may be modified or destroyed by the connection itself.
|
|
@@ -3720,7 +3634,7 @@ export interface Connection extends Lockable {
|
|
|
3720
3634
|
* @param values a list of values (as #GValue)
|
|
3721
3635
|
* @returns TRUE if no error occurred, FALSE otherwise
|
|
3722
3636
|
*/
|
|
3723
|
-
insert_row_into_table_v(table: string
|
|
3637
|
+
insert_row_into_table_v(table: string, col_names: string[], values: any[]): boolean
|
|
3724
3638
|
/**
|
|
3725
3639
|
* Checks whether a connection is open or not.
|
|
3726
3640
|
* @returns %TRUE if the connection is open, %FALSE if it's not.
|
|
@@ -3736,7 +3650,7 @@ export interface Connection extends Lockable {
|
|
|
3736
3650
|
* @param sql an SQL command to parse, not %NULL
|
|
3737
3651
|
* @returns a #GdaStatement representing the SQL command, or %NULL if an error occurred
|
|
3738
3652
|
*/
|
|
3739
|
-
parse_sql_string(sql: string
|
|
3653
|
+
parse_sql_string(sql: string): [ /* returnType */ Statement, /* params */ Set ]
|
|
3740
3654
|
/**
|
|
3741
3655
|
* Performs the operation described by `op` (which should have been created using
|
|
3742
3656
|
* gda_connection_create_operation()). It is a wrapper around the gda_server_provider_perform_operation()
|
|
@@ -3771,7 +3685,7 @@ export interface Connection extends Lockable {
|
|
|
3771
3685
|
* @param id an SQL identifier
|
|
3772
3686
|
* @returns a new string, to free with g_free() once not needed anymore
|
|
3773
3687
|
*/
|
|
3774
|
-
quote_sql_identifier(id: string
|
|
3688
|
+
quote_sql_identifier(id: string): string | null
|
|
3775
3689
|
/**
|
|
3776
3690
|
* Executes the statement upon which `rstmt` is built. Note that as several statements can actually be executed by this
|
|
3777
3691
|
* method, it is recommended to be within a transaction.
|
|
@@ -3998,7 +3912,7 @@ export interface Connection extends Lockable {
|
|
|
3998
3912
|
* @param values a list of values (as #GValue)
|
|
3999
3913
|
* @returns TRUE if no error occurred, FALSE otherwise
|
|
4000
3914
|
*/
|
|
4001
|
-
update_row_in_table_v(table: string
|
|
3915
|
+
update_row_in_table_v(table: string, condition_column_name: string, condition_value: any, col_names: string[], values: any[]): boolean
|
|
4002
3916
|
/**
|
|
4003
3917
|
* Produces a fully quoted and escaped string from a GValue
|
|
4004
3918
|
* @param from #GValue to convert from
|
|
@@ -4096,7 +4010,7 @@ export class Connection extends GObject.Object {
|
|
|
4096
4010
|
* @param options options for the connection (see #GdaConnectionOptions).
|
|
4097
4011
|
* @returns a new #GdaConnection if connection opening was successful or %NULL if there was an error.
|
|
4098
4012
|
*/
|
|
4099
|
-
static new_from_dsn(dsn: string
|
|
4013
|
+
static new_from_dsn(dsn: string, auth_string: string | null, options: ConnectionOptions): Connection
|
|
4100
4014
|
/**
|
|
4101
4015
|
* This function is similar to gda_connection_open_from_string(), except it does not actually open the
|
|
4102
4016
|
* connection, you have to open it using gda_connection_open().
|
|
@@ -4107,7 +4021,7 @@ export class Connection extends GObject.Object {
|
|
|
4107
4021
|
* @param options options for the connection (see #GdaConnectionOptions).
|
|
4108
4022
|
* @returns a new #GdaConnection if connection opening was successful or %NULL if there was an error.
|
|
4109
4023
|
*/
|
|
4110
|
-
static new_from_string(provider_name: string | null, cnc_string: string
|
|
4024
|
+
static new_from_string(provider_name: string | null, cnc_string: string, auth_string: string | null, options: ConnectionOptions): Connection
|
|
4111
4025
|
_init(config?: Connection.ConstructorProperties): void
|
|
4112
4026
|
static error_quark(): GLib.Quark
|
|
4113
4027
|
/**
|
|
@@ -4137,7 +4051,7 @@ export class Connection extends GObject.Object {
|
|
|
4137
4051
|
* @param options options for the connection (see #GdaConnectionOptions).
|
|
4138
4052
|
* @returns a new #GdaConnection if connection opening was successful or %NULL if there was an error.
|
|
4139
4053
|
*/
|
|
4140
|
-
static open_from_dsn(dsn: string
|
|
4054
|
+
static open_from_dsn(dsn: string, auth_string: string | null, options: ConnectionOptions): Connection
|
|
4141
4055
|
/**
|
|
4142
4056
|
* Opens a connection given a provider ID and a connection string. This
|
|
4143
4057
|
* allows applications to open connections without having to create
|
|
@@ -4182,7 +4096,7 @@ export class Connection extends GObject.Object {
|
|
|
4182
4096
|
* @param options options for the connection (see #GdaConnectionOptions).
|
|
4183
4097
|
* @returns a new #GdaConnection if connection opening was successful or %NULL if there was an error.
|
|
4184
4098
|
*/
|
|
4185
|
-
static open_from_string(provider_name: string | null, cnc_string: string
|
|
4099
|
+
static open_from_string(provider_name: string | null, cnc_string: string, auth_string: string | null, options: ConnectionOptions): Connection
|
|
4186
4100
|
/**
|
|
4187
4101
|
* Opens an SQLite connection even if the SQLite provider is not installed,
|
|
4188
4102
|
* to be used by database providers which need a temporary database to store
|
|
@@ -4192,7 +4106,7 @@ export class Connection extends GObject.Object {
|
|
|
4192
4106
|
* @param auto_unlink if %TRUE, then the database file will be removed afterwards
|
|
4193
4107
|
* @returns a new #GdaConnection, or %NULL if an error occurred
|
|
4194
4108
|
*/
|
|
4195
|
-
static open_sqlite(directory: string | null, filename: string
|
|
4109
|
+
static open_sqlite(directory: string | null, filename: string, auto_unlink: boolean): Connection
|
|
4196
4110
|
/**
|
|
4197
4111
|
* Extract the provider, connection parameters, username and password from `string`.
|
|
4198
4112
|
* in `string,` the various parts are strings
|
|
@@ -4224,7 +4138,7 @@ export class Connection extends GObject.Object {
|
|
|
4224
4138
|
* @param out_username a place to store the new string containing the <username> part
|
|
4225
4139
|
* @param out_password a place to store the new string containing the <password> part, or %NULL
|
|
4226
4140
|
*/
|
|
4227
|
-
static string_split(string: string
|
|
4141
|
+
static string_split(string: string, out_cnc_params: string | null, out_provider: string | null, out_username: string | null, out_password: string | null): void
|
|
4228
4142
|
}
|
|
4229
4143
|
|
|
4230
4144
|
export module ConnectionEvent {
|
|
@@ -4259,7 +4173,7 @@ export interface ConnectionEvent {
|
|
|
4259
4173
|
* the the description is the SQL of the command.
|
|
4260
4174
|
* @returns @event's description.
|
|
4261
4175
|
*/
|
|
4262
|
-
get_description(): string
|
|
4176
|
+
get_description(): string
|
|
4263
4177
|
/**
|
|
4264
4178
|
* Get `event'`s severity (from a simple notice to a fatal event)
|
|
4265
4179
|
* @returns the event type
|
|
@@ -4270,14 +4184,14 @@ export interface ConnectionEvent {
|
|
|
4270
4184
|
* @returns the #GdaConnectionEventCode event's code
|
|
4271
4185
|
*/
|
|
4272
4186
|
get_gda_code(): ConnectionEventCode
|
|
4273
|
-
get_source(): string
|
|
4187
|
+
get_source(): string
|
|
4274
4188
|
/**
|
|
4275
4189
|
* Get the SQLSTATE value of `event`. Even though the SQLSTATE values are specified by ANSI SQL and ODBC,
|
|
4276
4190
|
* consult each DBMS for the possible values. However, the "00000" (success) value means that there is no error,
|
|
4277
4191
|
* and the "HY000" (general error) value means an error but no better error code available.
|
|
4278
4192
|
* @returns @event's SQL state.
|
|
4279
4193
|
*/
|
|
4280
|
-
get_sqlstate(): string
|
|
4194
|
+
get_sqlstate(): string
|
|
4281
4195
|
/**
|
|
4282
4196
|
* Sets `event'`s code: the code is specific to the provider being used.
|
|
4283
4197
|
* If you want to have a common understanding of the event codes, use
|
|
@@ -4311,14 +4225,14 @@ export interface ConnectionEvent {
|
|
|
4311
4225
|
* Sets `event'`s `source;` this function should not be called directly
|
|
4312
4226
|
* @param source a source.
|
|
4313
4227
|
*/
|
|
4314
|
-
set_source(source: string
|
|
4228
|
+
set_source(source: string): void
|
|
4315
4229
|
/**
|
|
4316
4230
|
* Changes the SQLSTATE code of `event,` this function should not be called directly
|
|
4317
4231
|
*
|
|
4318
4232
|
* Sets `event'`s SQL state.
|
|
4319
4233
|
* @param sqlstate SQL state.
|
|
4320
4234
|
*/
|
|
4321
|
-
set_sqlstate(sqlstate: string
|
|
4235
|
+
set_sqlstate(sqlstate: string): void
|
|
4322
4236
|
|
|
4323
4237
|
// Class property signals of Gda-5.0.Gda.ConnectionEvent
|
|
4324
4238
|
|
|
@@ -4441,8 +4355,6 @@ export module DataComparator {
|
|
|
4441
4355
|
|
|
4442
4356
|
// Own constructor properties of Gda-5.0.Gda.DataComparator
|
|
4443
4357
|
|
|
4444
|
-
new_model?: DataModel | null
|
|
4445
|
-
old_model?: DataModel | null
|
|
4446
4358
|
newModel?: DataModel | null
|
|
4447
4359
|
oldModel?: DataModel | null
|
|
4448
4360
|
}
|
|
@@ -4453,9 +4365,7 @@ export interface DataComparator {
|
|
|
4453
4365
|
|
|
4454
4366
|
// Own properties of Gda-5.0.Gda.DataComparator
|
|
4455
4367
|
|
|
4456
|
-
new_model: DataModel
|
|
4457
4368
|
newModel: DataModel
|
|
4458
|
-
old_model: DataModel
|
|
4459
4369
|
oldModel: DataModel
|
|
4460
4370
|
|
|
4461
4371
|
// Own fields of Gda-5.0.Gda.DataComparator
|
|
@@ -4558,8 +4468,6 @@ export module DataModelArray {
|
|
|
4558
4468
|
|
|
4559
4469
|
// Own constructor properties of Gda-5.0.Gda.DataModelArray
|
|
4560
4470
|
|
|
4561
|
-
n_columns?: number | null
|
|
4562
|
-
read_only?: boolean | null
|
|
4563
4471
|
nColumns?: number | null
|
|
4564
4472
|
readOnly?: boolean | null
|
|
4565
4473
|
}
|
|
@@ -4570,9 +4478,7 @@ export interface DataModelArray extends DataModel {
|
|
|
4570
4478
|
|
|
4571
4479
|
// Own properties of Gda-5.0.Gda.DataModelArray
|
|
4572
4480
|
|
|
4573
|
-
n_columns: number
|
|
4574
4481
|
nColumns: number
|
|
4575
|
-
read_only: boolean
|
|
4576
4482
|
readOnly: boolean
|
|
4577
4483
|
|
|
4578
4484
|
// Own fields of Gda-5.0.Gda.DataModelArray
|
|
@@ -4698,7 +4604,7 @@ export class DataModelDir extends GObject.Object {
|
|
|
4698
4604
|
* @param basedir a directory
|
|
4699
4605
|
* @returns a new #GdaDataModel
|
|
4700
4606
|
*/
|
|
4701
|
-
static new(basedir: string
|
|
4607
|
+
static new(basedir: string): DataModel
|
|
4702
4608
|
}
|
|
4703
4609
|
|
|
4704
4610
|
export module DataModelImport {
|
|
@@ -4712,7 +4618,7 @@ export module DataModelImport {
|
|
|
4712
4618
|
/**
|
|
4713
4619
|
* Data to import, as a string.
|
|
4714
4620
|
*/
|
|
4715
|
-
|
|
4621
|
+
dataString?: string | null
|
|
4716
4622
|
/**
|
|
4717
4623
|
* Name of the file to import.
|
|
4718
4624
|
*/
|
|
@@ -4725,26 +4631,13 @@ export module DataModelImport {
|
|
|
4725
4631
|
* Defines if the data model will be accessed randomly or through a cursor. If set to %FALSE,
|
|
4726
4632
|
* access will have to be done using a cursor.
|
|
4727
4633
|
*/
|
|
4728
|
-
|
|
4634
|
+
randomAccess?: boolean | null
|
|
4729
4635
|
/**
|
|
4730
4636
|
* Defines the behaviour in case the imported data contains recoverable errors (usually too
|
|
4731
4637
|
* many or too few data per row). If set to %TRUE, an error will be reported and the import
|
|
4732
4638
|
* will stop, and if set to %FALSE, then the error will be reported but the import will not stop.
|
|
4733
4639
|
*/
|
|
4734
4640
|
strict?: boolean | null
|
|
4735
|
-
/**
|
|
4736
|
-
* Data to import, as a pointer to an XML node (a #xmlNodePtr).
|
|
4737
|
-
*/
|
|
4738
|
-
xml_node?: any | null
|
|
4739
|
-
/**
|
|
4740
|
-
* Data to import, as a string.
|
|
4741
|
-
*/
|
|
4742
|
-
dataString?: string | null
|
|
4743
|
-
/**
|
|
4744
|
-
* Defines if the data model will be accessed randomly or through a cursor. If set to %FALSE,
|
|
4745
|
-
* access will have to be done using a cursor.
|
|
4746
|
-
*/
|
|
4747
|
-
randomAccess?: boolean | null
|
|
4748
4641
|
/**
|
|
4749
4642
|
* Data to import, as a pointer to an XML node (a #xmlNodePtr).
|
|
4750
4643
|
*/
|
|
@@ -4757,10 +4650,6 @@ export interface DataModelImport extends DataModel {
|
|
|
4757
4650
|
|
|
4758
4651
|
// Own properties of Gda-5.0.Gda.DataModelImport
|
|
4759
4652
|
|
|
4760
|
-
/**
|
|
4761
|
-
* Data to import, as a string.
|
|
4762
|
-
*/
|
|
4763
|
-
readonly data_string: string | null
|
|
4764
4653
|
/**
|
|
4765
4654
|
* Data to import, as a string.
|
|
4766
4655
|
*/
|
|
@@ -4773,11 +4662,6 @@ export interface DataModelImport extends DataModel {
|
|
|
4773
4662
|
* Data model options.
|
|
4774
4663
|
*/
|
|
4775
4664
|
readonly options: Set
|
|
4776
|
-
/**
|
|
4777
|
-
* Defines if the data model will be accessed randomly or through a cursor. If set to %FALSE,
|
|
4778
|
-
* access will have to be done using a cursor.
|
|
4779
|
-
*/
|
|
4780
|
-
readonly random_access: boolean
|
|
4781
4665
|
/**
|
|
4782
4666
|
* Defines if the data model will be accessed randomly or through a cursor. If set to %FALSE,
|
|
4783
4667
|
* access will have to be done using a cursor.
|
|
@@ -4789,10 +4673,6 @@ export interface DataModelImport extends DataModel {
|
|
|
4789
4673
|
* will stop, and if set to %FALSE, then the error will be reported but the import will not stop.
|
|
4790
4674
|
*/
|
|
4791
4675
|
strict: boolean
|
|
4792
|
-
/**
|
|
4793
|
-
* Data to import, as a pointer to an XML node (a #xmlNodePtr).
|
|
4794
|
-
*/
|
|
4795
|
-
readonly xml_node: any
|
|
4796
4676
|
/**
|
|
4797
4677
|
* Data to import, as a pointer to an XML node (a #xmlNodePtr).
|
|
4798
4678
|
*/
|
|
@@ -4876,7 +4756,7 @@ export class DataModelImport extends GObject.Object {
|
|
|
4876
4756
|
* @param options importing options
|
|
4877
4757
|
* @returns a pointer to the newly created #GdaDataModel.
|
|
4878
4758
|
*/
|
|
4879
|
-
static new_file(filename: string
|
|
4759
|
+
static new_file(filename: string, random_access: boolean, options: Set | null): DataModel
|
|
4880
4760
|
/**
|
|
4881
4761
|
* Creates a new #GdaDataModel object which contains the data stored in the `data` string.
|
|
4882
4762
|
*
|
|
@@ -4887,7 +4767,7 @@ export class DataModelImport extends GObject.Object {
|
|
|
4887
4767
|
* @param options importing options, see gda_data_model_import_new_file() for more information
|
|
4888
4768
|
* @returns a pointer to the newly created #GdaDataModel.
|
|
4889
4769
|
*/
|
|
4890
|
-
static new_mem(data: string
|
|
4770
|
+
static new_mem(data: string, random_access: boolean, options: Set | null): DataModel
|
|
4891
4771
|
/**
|
|
4892
4772
|
* Creates a new #GdaDataModel and loads the data in `node`. The resulting data model
|
|
4893
4773
|
* can be accessed in a random way.
|
|
@@ -4922,10 +4802,6 @@ export module DataModelIter {
|
|
|
4922
4802
|
|
|
4923
4803
|
// Own constructor properties of Gda-5.0.Gda.DataModelIter
|
|
4924
4804
|
|
|
4925
|
-
current_row?: number | null
|
|
4926
|
-
data_model?: DataModel | null
|
|
4927
|
-
forced_model?: DataModel | null
|
|
4928
|
-
update_model?: boolean | null
|
|
4929
4805
|
currentRow?: number | null
|
|
4930
4806
|
dataModel?: DataModel | null
|
|
4931
4807
|
forcedModel?: DataModel | null
|
|
@@ -4938,13 +4814,9 @@ export interface DataModelIter {
|
|
|
4938
4814
|
|
|
4939
4815
|
// Own properties of Gda-5.0.Gda.DataModelIter
|
|
4940
4816
|
|
|
4941
|
-
current_row: number
|
|
4942
4817
|
currentRow: number
|
|
4943
|
-
data_model: DataModel
|
|
4944
4818
|
dataModel: DataModel
|
|
4945
|
-
forced_model: DataModel
|
|
4946
4819
|
forcedModel: DataModel
|
|
4947
|
-
update_model: boolean
|
|
4948
4820
|
updateModel: boolean
|
|
4949
4821
|
|
|
4950
4822
|
// Own fields of Gda-5.0.Gda.DataModelIter
|
|
@@ -4990,7 +4862,7 @@ export interface DataModelIter {
|
|
|
4990
4862
|
* @param field_name the requested column name
|
|
4991
4863
|
* @returns the #GValue, or %NULL
|
|
4992
4864
|
*/
|
|
4993
|
-
get_value_for_field(field_name: string
|
|
4865
|
+
get_value_for_field(field_name: string): any | null
|
|
4994
4866
|
/**
|
|
4995
4867
|
* Declare all the parameters in `iter` invalid, without modifying the
|
|
4996
4868
|
* #GdaDataModel `iter` is for or changing the row it represents. This method
|
|
@@ -5313,7 +5185,7 @@ export interface DataPivot extends DataModel {
|
|
|
5313
5185
|
* @param alias the field alias, or %NULL
|
|
5314
5186
|
* @returns %TRUE if no error occurred
|
|
5315
5187
|
*/
|
|
5316
|
-
add_data(aggregate_type: DataPivotAggregate, field: string
|
|
5188
|
+
add_data(aggregate_type: DataPivotAggregate, field: string, alias: string | null): boolean
|
|
5317
5189
|
/**
|
|
5318
5190
|
* Specifies that `field` has to be included in the analysis.
|
|
5319
5191
|
* `field` is a field specification with the following accepted syntaxes:
|
|
@@ -5334,7 +5206,7 @@ export interface DataPivot extends DataModel {
|
|
|
5334
5206
|
* @param alias the field alias, or %NULL
|
|
5335
5207
|
* @returns %TRUE if no error occurred
|
|
5336
5208
|
*/
|
|
5337
|
-
add_field(field_type: DataPivotFieldType, field: string
|
|
5209
|
+
add_field(field_type: DataPivotFieldType, field: string, alias: string | null): boolean
|
|
5338
5210
|
/**
|
|
5339
5211
|
* Acutally populates `pivot` by analysing the data from the provided data model.
|
|
5340
5212
|
* @returns %TRUE if no error occurred.
|
|
@@ -5425,23 +5297,6 @@ export module DataProxy {
|
|
|
5425
5297
|
|
|
5426
5298
|
// Own constructor properties of Gda-5.0.Gda.DataProxy
|
|
5427
5299
|
|
|
5428
|
-
/**
|
|
5429
|
-
* Defines how changes kept in the data proxy are handled when the proxied data model
|
|
5430
|
-
* is changed (using the "model" property). The default is to silently discard all the
|
|
5431
|
-
* changes, but if this property is set to %TRUE, then the changes are cached.
|
|
5432
|
-
*
|
|
5433
|
-
* If set to %TRUE, each cached change will be re-applied to a newly set proxied data model if
|
|
5434
|
-
* the change's number of columns match the proxied data model's number of columns and based on:
|
|
5435
|
-
* <itemizedlist>
|
|
5436
|
-
* <listitem><para>the contents of the proxied data model's modified row for updates and deletes</para></listitem>
|
|
5437
|
-
* <listitem><para>the inserts are always kept</para></listitem>
|
|
5438
|
-
* </itemizedlist>
|
|
5439
|
-
*/
|
|
5440
|
-
cache_changes?: boolean | null
|
|
5441
|
-
defer_sync?: boolean | null
|
|
5442
|
-
model?: DataModel | null
|
|
5443
|
-
prepend_null_entry?: boolean | null
|
|
5444
|
-
sample_size?: number | null
|
|
5445
5300
|
/**
|
|
5446
5301
|
* Defines how changes kept in the data proxy are handled when the proxied data model
|
|
5447
5302
|
* is changed (using the "model" property). The default is to silently discard all the
|
|
@@ -5456,6 +5311,7 @@ export module DataProxy {
|
|
|
5456
5311
|
*/
|
|
5457
5312
|
cacheChanges?: boolean | null
|
|
5458
5313
|
deferSync?: boolean | null
|
|
5314
|
+
model?: DataModel | null
|
|
5459
5315
|
prependNullEntry?: boolean | null
|
|
5460
5316
|
sampleSize?: number | null
|
|
5461
5317
|
}
|
|
@@ -5466,19 +5322,6 @@ export interface DataProxy extends DataModel {
|
|
|
5466
5322
|
|
|
5467
5323
|
// Own properties of Gda-5.0.Gda.DataProxy
|
|
5468
5324
|
|
|
5469
|
-
/**
|
|
5470
|
-
* Defines how changes kept in the data proxy are handled when the proxied data model
|
|
5471
|
-
* is changed (using the "model" property). The default is to silently discard all the
|
|
5472
|
-
* changes, but if this property is set to %TRUE, then the changes are cached.
|
|
5473
|
-
*
|
|
5474
|
-
* If set to %TRUE, each cached change will be re-applied to a newly set proxied data model if
|
|
5475
|
-
* the change's number of columns match the proxied data model's number of columns and based on:
|
|
5476
|
-
* <itemizedlist>
|
|
5477
|
-
* <listitem><para>the contents of the proxied data model's modified row for updates and deletes</para></listitem>
|
|
5478
|
-
* <listitem><para>the inserts are always kept</para></listitem>
|
|
5479
|
-
* </itemizedlist>
|
|
5480
|
-
*/
|
|
5481
|
-
cache_changes: boolean
|
|
5482
5325
|
/**
|
|
5483
5326
|
* Defines how changes kept in the data proxy are handled when the proxied data model
|
|
5484
5327
|
* is changed (using the "model" property). The default is to silently discard all the
|
|
@@ -5492,12 +5335,9 @@ export interface DataProxy extends DataModel {
|
|
|
5492
5335
|
* </itemizedlist>
|
|
5493
5336
|
*/
|
|
5494
5337
|
cacheChanges: boolean
|
|
5495
|
-
defer_sync: boolean
|
|
5496
5338
|
deferSync: boolean
|
|
5497
5339
|
model: DataModel
|
|
5498
|
-
prepend_null_entry: boolean
|
|
5499
5340
|
prependNullEntry: boolean
|
|
5500
|
-
sample_size: number
|
|
5501
5341
|
sampleSize: number
|
|
5502
5342
|
|
|
5503
5343
|
// Own fields of Gda-5.0.Gda.DataProxy
|
|
@@ -5553,7 +5393,7 @@ export interface DataProxy extends DataModel {
|
|
|
5553
5393
|
* Get the current filter expression used by `proxy`.
|
|
5554
5394
|
* @returns the current filter expression or %NULL if no filter has been set
|
|
5555
5395
|
*/
|
|
5556
|
-
get_filter_expr(): string
|
|
5396
|
+
get_filter_expr(): string
|
|
5557
5397
|
/**
|
|
5558
5398
|
* Get the total number of filtered rows in `proxy` if a filter has been applied. As new rows
|
|
5559
5399
|
* (rows added to the proxy and not yet added to the proxied data model) and rows to remove
|
|
@@ -5797,20 +5637,8 @@ export module DataSelect {
|
|
|
5797
5637
|
|
|
5798
5638
|
// Own constructor properties of Gda-5.0.Gda.DataSelect
|
|
5799
5639
|
|
|
5800
|
-
auto_reset?: boolean | null
|
|
5801
|
-
connection?: Connection | null
|
|
5802
|
-
delete_stmt?: Statement | null
|
|
5803
|
-
exec_params?: Set | null
|
|
5804
|
-
/**
|
|
5805
|
-
* This property stores the execution delay which has been necessary to obtain the data
|
|
5806
|
-
*/
|
|
5807
|
-
execution_delay?: number | null
|
|
5808
|
-
insert_stmt?: Statement | null
|
|
5809
|
-
model_usage?: number | null
|
|
5810
|
-
prepared_stmt?: PStmt | null
|
|
5811
|
-
store_all_rows?: boolean | null
|
|
5812
|
-
update_stmt?: Statement | null
|
|
5813
5640
|
autoReset?: boolean | null
|
|
5641
|
+
connection?: Connection | null
|
|
5814
5642
|
deleteStmt?: Statement | null
|
|
5815
5643
|
execParams?: Set | null
|
|
5816
5644
|
/**
|
|
@@ -5830,32 +5658,19 @@ export interface DataSelect extends DataModel {
|
|
|
5830
5658
|
|
|
5831
5659
|
// Own properties of Gda-5.0.Gda.DataSelect
|
|
5832
5660
|
|
|
5833
|
-
auto_reset: boolean
|
|
5834
5661
|
autoReset: boolean
|
|
5835
5662
|
readonly connection: Connection
|
|
5836
|
-
delete_stmt: Statement
|
|
5837
5663
|
deleteStmt: Statement
|
|
5838
|
-
readonly exec_params: Set
|
|
5839
5664
|
readonly execParams: Set
|
|
5840
|
-
/**
|
|
5841
|
-
* This property stores the execution delay which has been necessary to obtain the data
|
|
5842
|
-
*/
|
|
5843
|
-
execution_delay: number
|
|
5844
5665
|
/**
|
|
5845
5666
|
* This property stores the execution delay which has been necessary to obtain the data
|
|
5846
5667
|
*/
|
|
5847
5668
|
executionDelay: number
|
|
5848
|
-
insert_stmt: Statement
|
|
5849
5669
|
insertStmt: Statement
|
|
5850
|
-
readonly model_usage: number
|
|
5851
5670
|
readonly modelUsage: number
|
|
5852
|
-
prepared_stmt: PStmt
|
|
5853
5671
|
preparedStmt: PStmt
|
|
5854
|
-
readonly select_stmt: Statement
|
|
5855
5672
|
readonly selectStmt: Statement
|
|
5856
|
-
store_all_rows: boolean
|
|
5857
5673
|
storeAllRows: boolean
|
|
5858
|
-
update_stmt: Statement
|
|
5859
5674
|
updateStmt: Statement
|
|
5860
5675
|
|
|
5861
5676
|
// Own fields of Gda-5.0.Gda.DataSelect
|
|
@@ -5990,7 +5805,7 @@ export interface DataSelect extends DataModel {
|
|
|
5990
5805
|
* @param sql an SQL text
|
|
5991
5806
|
* @returns TRUE if no error occurred.
|
|
5992
5807
|
*/
|
|
5993
|
-
set_modification_statement_sql(sql: string
|
|
5808
|
+
set_modification_statement_sql(sql: string): boolean
|
|
5994
5809
|
/**
|
|
5995
5810
|
* Specifies the SQL condition corresponding to the WHERE part of a SELECT statement which would
|
|
5996
5811
|
* return only 1 row (the expression of the primary key).
|
|
@@ -6008,7 +5823,7 @@ export interface DataSelect extends DataModel {
|
|
|
6008
5823
|
* @param sql_where an SQL condition (without the WHERE keyword)
|
|
6009
5824
|
* @returns TRUE if no error occurred
|
|
6010
5825
|
*/
|
|
6011
|
-
set_row_selection_condition_sql(sql_where: string
|
|
5826
|
+
set_row_selection_condition_sql(sql_where: string): boolean
|
|
6012
5827
|
|
|
6013
5828
|
// Own virtual methods of Gda-5.0.Gda.DataSelect
|
|
6014
5829
|
|
|
@@ -6420,21 +6235,10 @@ export module Holder {
|
|
|
6420
6235
|
// Own constructor properties of Gda-5.0.Gda.Holder
|
|
6421
6236
|
|
|
6422
6237
|
description?: string | null
|
|
6423
|
-
full_bind?: Holder | null
|
|
6424
|
-
g_type?: GObject.GType | null
|
|
6425
|
-
id?: string | null
|
|
6426
|
-
name?: string | null
|
|
6427
|
-
not_null?: boolean | null
|
|
6428
|
-
simple_bind?: Holder | null
|
|
6429
|
-
source_column?: number | null
|
|
6430
|
-
source_model?: DataModel | null
|
|
6431
|
-
/**
|
|
6432
|
-
* Defines if the "validate-change" signal gets emitted when
|
|
6433
|
-
* the holder's value changes.
|
|
6434
|
-
*/
|
|
6435
|
-
validate_changes?: boolean | null
|
|
6436
6238
|
fullBind?: Holder | null
|
|
6437
6239
|
gType?: GObject.GType | null
|
|
6240
|
+
id?: string | null
|
|
6241
|
+
name?: string | null
|
|
6438
6242
|
notNull?: boolean | null
|
|
6439
6243
|
simpleBind?: Holder | null
|
|
6440
6244
|
sourceColumn?: number | null
|
|
@@ -6453,25 +6257,14 @@ export interface Holder extends Lockable {
|
|
|
6453
6257
|
// Own properties of Gda-5.0.Gda.Holder
|
|
6454
6258
|
|
|
6455
6259
|
description: string | null
|
|
6456
|
-
full_bind: Holder
|
|
6457
6260
|
fullBind: Holder
|
|
6458
|
-
g_type: GObject.GType
|
|
6459
6261
|
gType: GObject.GType
|
|
6460
6262
|
id: string | null
|
|
6461
6263
|
name: string | null
|
|
6462
|
-
not_null: boolean
|
|
6463
6264
|
notNull: boolean
|
|
6464
|
-
simple_bind: Holder
|
|
6465
6265
|
simpleBind: Holder
|
|
6466
|
-
source_column: number
|
|
6467
6266
|
sourceColumn: number
|
|
6468
|
-
source_model: DataModel
|
|
6469
6267
|
sourceModel: DataModel
|
|
6470
|
-
/**
|
|
6471
|
-
* Defines if the "validate-change" signal gets emitted when
|
|
6472
|
-
* the holder's value changes.
|
|
6473
|
-
*/
|
|
6474
|
-
validate_changes: boolean
|
|
6475
6268
|
/**
|
|
6476
6269
|
* Defines if the "validate-change" signal gets emitted when
|
|
6477
6270
|
* the holder's value changes.
|
|
@@ -6524,7 +6317,7 @@ export interface Holder extends Lockable {
|
|
|
6524
6317
|
* @param attribute attribute name as a string
|
|
6525
6318
|
* @returns a read-only #GValue, or %NULL if not attribute named @attribute has been set for @holder
|
|
6526
6319
|
*/
|
|
6527
|
-
get_attribute(attribute: string
|
|
6320
|
+
get_attribute(attribute: string): any
|
|
6528
6321
|
/**
|
|
6529
6322
|
* Get the holder which makes `holder` change its value when the holder's value is changed.
|
|
6530
6323
|
* @returns the #GdaHolder or %NULL
|
|
@@ -6541,7 +6334,7 @@ export interface Holder extends Lockable {
|
|
|
6541
6334
|
* Get the ID of `holder`. The ID can be set using `holder'`s "id" property
|
|
6542
6335
|
* @returns the ID (don't modify the string).
|
|
6543
6336
|
*/
|
|
6544
|
-
get_id(): string
|
|
6337
|
+
get_id(): string
|
|
6545
6338
|
/**
|
|
6546
6339
|
* Get wether the holder can be NULL or not
|
|
6547
6340
|
* @returns TRUE if the holder cannot be NULL
|
|
@@ -6604,7 +6397,7 @@ export interface Holder extends Lockable {
|
|
|
6604
6397
|
* @param value a #GValue, or %NULL
|
|
6605
6398
|
* @param destroy a function to be called when `attribute` is not needed anymore, or %NULL
|
|
6606
6399
|
*/
|
|
6607
|
-
set_attribute(attribute: string
|
|
6400
|
+
set_attribute(attribute: string, value: any, destroy: GLib.DestroyNotify): void
|
|
6608
6401
|
/**
|
|
6609
6402
|
* Sets `holder` to change when `bind_to` changes (and does not make `bind_to` change when `holder` changes).
|
|
6610
6403
|
* For the operation to succeed, the GType of `holder` and `bind_to` must be the same, with the exception that
|
|
@@ -6676,7 +6469,7 @@ export interface Holder extends Lockable {
|
|
|
6676
6469
|
* @param value a value to set the holder to, as a string
|
|
6677
6470
|
* @returns TRUE if value has been set
|
|
6678
6471
|
*/
|
|
6679
|
-
set_value_str(dh: DataHandler, value: string
|
|
6472
|
+
set_value_str(dh: DataHandler, value: string): boolean
|
|
6680
6473
|
/**
|
|
6681
6474
|
* Set `holder'`s value to its default value.
|
|
6682
6475
|
* @returns TRUE if @holder has got a default value
|
|
@@ -6735,7 +6528,7 @@ export interface Holder extends Lockable {
|
|
|
6735
6528
|
|
|
6736
6529
|
// Own virtual methods of Gda-5.0.Gda.Holder
|
|
6737
6530
|
|
|
6738
|
-
vfunc_att_changed(att_name: string
|
|
6531
|
+
vfunc_att_changed(att_name: string, att_value: any): void
|
|
6739
6532
|
vfunc_changed(): void
|
|
6740
6533
|
vfunc_source_changed(): void
|
|
6741
6534
|
vfunc_validate_change(new_value: any): GLib.Error
|
|
@@ -6855,9 +6648,8 @@ export module MetaStore {
|
|
|
6855
6648
|
|
|
6856
6649
|
catalog?: string | null
|
|
6857
6650
|
cnc?: Connection | null
|
|
6858
|
-
cnc_string?: string | null
|
|
6859
|
-
schema?: string | null
|
|
6860
6651
|
cncString?: string | null
|
|
6652
|
+
schema?: string | null
|
|
6861
6653
|
}
|
|
6862
6654
|
|
|
6863
6655
|
}
|
|
@@ -6868,7 +6660,6 @@ export interface MetaStore {
|
|
|
6868
6660
|
|
|
6869
6661
|
readonly catalog: string | null
|
|
6870
6662
|
readonly cnc: Connection
|
|
6871
|
-
readonly cnc_string: string | null
|
|
6872
6663
|
readonly cncString: string | null
|
|
6873
6664
|
readonly schema: string | null
|
|
6874
6665
|
|
|
@@ -6887,7 +6678,7 @@ export interface MetaStore {
|
|
|
6887
6678
|
* @param table_name the name of a table present in `store`
|
|
6888
6679
|
* @returns a new #GdaDataModel
|
|
6889
6680
|
*/
|
|
6890
|
-
create_modify_data_model(table_name: string
|
|
6681
|
+
create_modify_data_model(table_name: string): DataModel
|
|
6891
6682
|
/**
|
|
6892
6683
|
* Defines a new declared foreign key into `store`. If another declared foreign key is already defined
|
|
6893
6684
|
* between the two tables and with the same name, then it is first removed.
|
|
@@ -6918,7 +6709,7 @@ export interface MetaStore {
|
|
|
6918
6709
|
* @param ref_colnames an array of column names from the referenced table
|
|
6919
6710
|
* @returns %TRUE if no error occurred
|
|
6920
6711
|
*/
|
|
6921
|
-
declare_foreign_key(mstruct: MetaStruct | null, fk_name: string
|
|
6712
|
+
declare_foreign_key(mstruct: MetaStruct | null, fk_name: string, catalog: string | null, schema: string | null, table: string, ref_catalog: string | null, ref_schema: string | null, ref_table: string, colnames: string[], ref_colnames: string[]): boolean
|
|
6922
6713
|
/**
|
|
6923
6714
|
* Extracts some data stored in `store` using a custom SELECT query. If the `select_sql` filter involves
|
|
6924
6715
|
* SQL identifiers (such as table or column names), then the values should have been adapted using
|
|
@@ -6931,7 +6722,7 @@ export interface MetaStore {
|
|
|
6931
6722
|
* @param vars a hash table with all variables names as keys and GValue* as value, representing values for all the variables mentioned in `select_sql`. If there is no variable then this part can be omitted.
|
|
6932
6723
|
* @returns a new #GdaDataModel, or %NULL if an error occurred
|
|
6933
6724
|
*/
|
|
6934
|
-
extract(select_sql: string
|
|
6725
|
+
extract(select_sql: string, vars: GLib.HashTable | null): DataModel
|
|
6935
6726
|
/**
|
|
6936
6727
|
* The #GdaMetaStore object maintains a list of (name,value) attributes (attributes names starting with a '_'
|
|
6937
6728
|
* character are for internal use only and cannot be altered). This method and the gda_meta_store_set_attribute_value()
|
|
@@ -6945,7 +6736,7 @@ export interface MetaStore {
|
|
|
6945
6736
|
* @param att_name name of the attribute to get
|
|
6946
6737
|
* @returns TRUE if no error occurred
|
|
6947
6738
|
*/
|
|
6948
|
-
get_attribute_value(att_name: string
|
|
6739
|
+
get_attribute_value(att_name: string): [ /* returnType */ boolean, /* att_value */ string | null ]
|
|
6949
6740
|
/**
|
|
6950
6741
|
* Get a pointer to the #GdaConnection object internally used by `store` to store
|
|
6951
6742
|
* its contents.
|
|
@@ -6971,7 +6762,7 @@ export interface MetaStore {
|
|
|
6971
6762
|
* @param values values
|
|
6972
6763
|
* @returns %TRUE if no error occurred
|
|
6973
6764
|
*/
|
|
6974
|
-
modify(table_name: string
|
|
6765
|
+
modify(table_name: string, new_data: DataModel | null, condition: string | null, value_names: string[], values: any[]): boolean
|
|
6975
6766
|
/**
|
|
6976
6767
|
* Propagates an update to `store,` the update's contents is represented by `new_data,` this function is
|
|
6977
6768
|
* primarily reserved to database providers.
|
|
@@ -7033,7 +6824,7 @@ export interface MetaStore {
|
|
|
7033
6824
|
* @param xml_description an XML description of the table or view to add to `store`
|
|
7034
6825
|
* @returns TRUE if the new object has successfully been added
|
|
7035
6826
|
*/
|
|
7036
|
-
schema_add_custom_object(xml_description: string
|
|
6827
|
+
schema_add_custom_object(xml_description: string): boolean
|
|
7037
6828
|
/**
|
|
7038
6829
|
* Get an ordered list of the tables `store` knows about. The tables are ordered in a way that tables dependencies
|
|
7039
6830
|
* are respected: if table B has a foreign key on table A, then table A will be listed before table B in the returned
|
|
@@ -7049,7 +6840,7 @@ export interface MetaStore {
|
|
|
7049
6840
|
* @param table_name the name of the table for which all the dependencies must be listed
|
|
7050
6841
|
* @returns a new list of tables names (as gchar*), the list must be freed when no longer needed, but the strings present in the list must not be modified.
|
|
7051
6842
|
*/
|
|
7052
|
-
schema_get_depend_tables(table_name: string
|
|
6843
|
+
schema_get_depend_tables(table_name: string): string[]
|
|
7053
6844
|
/**
|
|
7054
6845
|
* Creates a new #GdaMetaStruct object representing `store'`s internal database structure.
|
|
7055
6846
|
* @returns a new #GdaMetaStruct object, or %NULL if an error occurred
|
|
@@ -7060,7 +6851,7 @@ export interface MetaStore {
|
|
|
7060
6851
|
* @param obj_name name of the custom object to remove
|
|
7061
6852
|
* @returns TRUE if the custom object has successfully been removed
|
|
7062
6853
|
*/
|
|
7063
|
-
schema_remove_custom_object(obj_name: string
|
|
6854
|
+
schema_remove_custom_object(obj_name: string): boolean
|
|
7064
6855
|
/**
|
|
7065
6856
|
* Set the value of the attribute named `att_name` to `att_value;` see gda_meta_store_get_attribute_value() for
|
|
7066
6857
|
* more information.
|
|
@@ -7068,7 +6859,7 @@ export interface MetaStore {
|
|
|
7068
6859
|
* @param att_value value of the attribute to set, or %NULL to unset the attribute
|
|
7069
6860
|
* @returns TRUE if no error occurred
|
|
7070
6861
|
*/
|
|
7071
|
-
set_attribute_value(att_name: string
|
|
6862
|
+
set_attribute_value(att_name: string, att_value: string | null): boolean
|
|
7072
6863
|
/**
|
|
7073
6864
|
* Specifies how `store` must handle SQL identifiers it has to store. This method is mainly used by
|
|
7074
6865
|
* database providers.
|
|
@@ -7106,7 +6897,7 @@ export interface MetaStore {
|
|
|
7106
6897
|
* @param ref_table the name of the referenced table
|
|
7107
6898
|
* @returns %TRUE if no error occurred
|
|
7108
6899
|
*/
|
|
7109
|
-
undeclare_foreign_key(mstruct: MetaStruct | null, fk_name: string
|
|
6900
|
+
undeclare_foreign_key(mstruct: MetaStruct | null, fk_name: string, catalog: string | null, schema: string | null, table: string, ref_catalog: string | null, ref_schema: string | null, ref_table: string): boolean
|
|
7110
6901
|
|
|
7111
6902
|
// Own virtual methods of Gda-5.0.Gda.MetaStore
|
|
7112
6903
|
|
|
@@ -7176,7 +6967,7 @@ export class MetaStore extends GObject.Object {
|
|
|
7176
6967
|
* @param file_name a file name
|
|
7177
6968
|
* @returns the newly created object, or %NULL if an error occurred
|
|
7178
6969
|
*/
|
|
7179
|
-
static new_with_file(file_name: string
|
|
6970
|
+
static new_with_file(file_name: string): MetaStore
|
|
7180
6971
|
_init(config?: MetaStore.ConstructorProperties): void
|
|
7181
6972
|
static error_quark(): GLib.Quark
|
|
7182
6973
|
/**
|
|
@@ -7190,7 +6981,7 @@ export class MetaStore extends GObject.Object {
|
|
|
7190
6981
|
* @param cnc a #GdaConnection
|
|
7191
6982
|
* @returns a new string, to free with g_free() once not needed anymore
|
|
7192
6983
|
*/
|
|
7193
|
-
static sql_identifier_quote(id: string
|
|
6984
|
+
static sql_identifier_quote(id: string, cnc: Connection): string | null
|
|
7194
6985
|
}
|
|
7195
6986
|
|
|
7196
6987
|
export module MetaStruct {
|
|
@@ -7202,7 +6993,6 @@ export module MetaStruct {
|
|
|
7202
6993
|
// Own constructor properties of Gda-5.0.Gda.MetaStruct
|
|
7203
6994
|
|
|
7204
6995
|
features?: number | null
|
|
7205
|
-
meta_store?: MetaStore | null
|
|
7206
6996
|
metaStore?: MetaStore | null
|
|
7207
6997
|
}
|
|
7208
6998
|
|
|
@@ -7213,7 +7003,6 @@ export interface MetaStruct {
|
|
|
7213
7003
|
// Own properties of Gda-5.0.Gda.MetaStruct
|
|
7214
7004
|
|
|
7215
7005
|
readonly features: number
|
|
7216
|
-
readonly meta_store: MetaStore
|
|
7217
7006
|
readonly metaStore: MetaStore
|
|
7218
7007
|
|
|
7219
7008
|
// Own fields of Gda-5.0.Gda.MetaStruct
|
|
@@ -7321,7 +7110,7 @@ export interface MetaStruct {
|
|
|
7321
7110
|
* @param xml_spec_file the specifications as the name of an XML file
|
|
7322
7111
|
* @returns TRUE if no error has occurred
|
|
7323
7112
|
*/
|
|
7324
|
-
load_from_xml_file(catalog: string | null, schema: string | null, xml_spec_file: string
|
|
7113
|
+
load_from_xml_file(catalog: string | null, schema: string | null, xml_spec_file: string): boolean
|
|
7325
7114
|
/**
|
|
7326
7115
|
* Reorders the list of database objects within `mstruct` in a way specified by `sort_type`.
|
|
7327
7116
|
* @param sort_type the kind of sorting requested
|
|
@@ -7560,7 +7349,6 @@ export module Row {
|
|
|
7560
7349
|
|
|
7561
7350
|
// Own constructor properties of Gda-5.0.Gda.Row
|
|
7562
7351
|
|
|
7563
|
-
nb_values?: number | null
|
|
7564
7352
|
nbValues?: number | null
|
|
7565
7353
|
}
|
|
7566
7354
|
|
|
@@ -7570,7 +7358,6 @@ export interface Row {
|
|
|
7570
7358
|
|
|
7571
7359
|
// Own properties of Gda-5.0.Gda.Row
|
|
7572
7360
|
|
|
7573
|
-
nb_values: number
|
|
7574
7361
|
nbValues: number
|
|
7575
7362
|
|
|
7576
7363
|
// Own fields of Gda-5.0.Gda.Row
|
|
@@ -7684,10 +7471,8 @@ export module ServerOperation {
|
|
|
7684
7471
|
// Own constructor properties of Gda-5.0.Gda.ServerOperation
|
|
7685
7472
|
|
|
7686
7473
|
connection?: Connection | null
|
|
7687
|
-
op_type?: number | null
|
|
7688
|
-
provider?: ServerProvider | null
|
|
7689
|
-
spec_filename?: string | null
|
|
7690
7474
|
opType?: number | null
|
|
7475
|
+
provider?: ServerProvider | null
|
|
7691
7476
|
specFilename?: string | null
|
|
7692
7477
|
}
|
|
7693
7478
|
|
|
@@ -7698,10 +7483,8 @@ export interface ServerOperation {
|
|
|
7698
7483
|
// Own properties of Gda-5.0.Gda.ServerOperation
|
|
7699
7484
|
|
|
7700
7485
|
readonly connection: Connection
|
|
7701
|
-
readonly op_type: number
|
|
7702
7486
|
readonly opType: number
|
|
7703
7487
|
readonly provider: ServerProvider
|
|
7704
|
-
readonly spec_filename: string | null
|
|
7705
7488
|
readonly specFilename: string | null
|
|
7706
7489
|
|
|
7707
7490
|
// Own fields of Gda-5.0.Gda.ServerOperation
|
|
@@ -7711,27 +7494,27 @@ export interface ServerOperation {
|
|
|
7711
7494
|
|
|
7712
7495
|
// Owm methods of Gda-5.0.Gda.ServerOperation
|
|
7713
7496
|
|
|
7714
|
-
add_item_to_sequence(seq_path: string
|
|
7715
|
-
del_item_from_sequence(item_path: string
|
|
7497
|
+
add_item_to_sequence(seq_path: string): number
|
|
7498
|
+
del_item_from_sequence(item_path: string): boolean
|
|
7716
7499
|
/**
|
|
7717
7500
|
* Get the complete path to the parent of the node defined by `path`
|
|
7718
7501
|
* @param path a complete path to a node (starting with "/")
|
|
7719
7502
|
* @returns a new string or %NULL if the node does not have any parent or does not exist.
|
|
7720
7503
|
*/
|
|
7721
|
-
get_node_parent(path: string
|
|
7504
|
+
get_node_parent(path: string): string | null
|
|
7722
7505
|
/**
|
|
7723
7506
|
* Get the last part of `path`
|
|
7724
7507
|
* @param path a complete path to a node (starting with "/")
|
|
7725
7508
|
* @returns a new string, or %NULL if an error occurred
|
|
7726
7509
|
*/
|
|
7727
|
-
get_node_path_portion(path: string
|
|
7510
|
+
get_node_path_portion(path: string): string | null
|
|
7728
7511
|
/**
|
|
7729
7512
|
* Convenience function to get the type of a node.
|
|
7730
7513
|
* @param path a complete path to a node (starting with "/")
|
|
7731
7514
|
* @param status a place to store the status of the node, or %NULL
|
|
7732
7515
|
* @returns the type of node, or GDA_SERVER_OPERATION_NODE_UNKNOWN if the node was not found
|
|
7733
7516
|
*/
|
|
7734
|
-
get_node_type(path: string
|
|
7517
|
+
get_node_type(path: string, status: ServerOperationNodeStatus | null): ServerOperationNodeType
|
|
7735
7518
|
/**
|
|
7736
7519
|
* Get the type of operation `op` is for
|
|
7737
7520
|
* @returns a #GdaServerOperationType enum
|
|
@@ -7748,11 +7531,11 @@ export interface ServerOperation {
|
|
|
7748
7531
|
* @param path a complete path to a sequence node (starting with "/")
|
|
7749
7532
|
* @returns a array of strings containing the complete paths of the nodes contained at @path (free with g_strfreev())
|
|
7750
7533
|
*/
|
|
7751
|
-
get_sequence_item_names(path: string
|
|
7752
|
-
get_sequence_max_size(path: string
|
|
7753
|
-
get_sequence_min_size(path: string
|
|
7754
|
-
get_sequence_name(path: string
|
|
7755
|
-
get_sequence_size(path: string
|
|
7534
|
+
get_sequence_item_names(path: string): string[]
|
|
7535
|
+
get_sequence_max_size(path: string): number
|
|
7536
|
+
get_sequence_min_size(path: string): number
|
|
7537
|
+
get_sequence_name(path: string): string
|
|
7538
|
+
get_sequence_size(path: string): number
|
|
7756
7539
|
/**
|
|
7757
7540
|
* This method is similar to gda_server_operation_get_value_at(), but for SQL identifiers: a new string
|
|
7758
7541
|
* is returned instead of a #GValue. Also the returned string is assumed to represents an SQL identifier
|
|
@@ -7763,13 +7546,13 @@ export interface ServerOperation {
|
|
|
7763
7546
|
* @param path a complete path to a node (starting with "/")
|
|
7764
7547
|
* @returns a new string, or %NULL if the value is undefined or if the @path is not defined or @path does not hold any value, or if the value held is not a string (in that last case a warning is shown).
|
|
7765
7548
|
*/
|
|
7766
|
-
get_sql_identifier_at(cnc: Connection | null, prov: ServerProvider | null, path: string
|
|
7549
|
+
get_sql_identifier_at(cnc: Connection | null, prov: ServerProvider | null, path: string): string | null
|
|
7767
7550
|
/**
|
|
7768
7551
|
* Get the value for the node at the `path` path
|
|
7769
7552
|
* @param path a complete path to a node (starting with "/")
|
|
7770
7553
|
* @returns a constant #GValue if a value has been defined, or %NULL if the value is undefined or if the @path is not defined or @path does not hold any value.
|
|
7771
7554
|
*/
|
|
7772
|
-
get_value_at(path: string
|
|
7555
|
+
get_value_at(path: string): any | null
|
|
7773
7556
|
/**
|
|
7774
7557
|
* Tells if all the required values in `op` have been defined.
|
|
7775
7558
|
*
|
|
@@ -7846,12 +7629,12 @@ export interface ServerOperation {
|
|
|
7846
7629
|
* @param path a complete path to a node (starting with "/")
|
|
7847
7630
|
* @returns %TRUE if no error occurred
|
|
7848
7631
|
*/
|
|
7849
|
-
set_value_at(value: string | null, path: string
|
|
7632
|
+
set_value_at(value: string | null, path: string): boolean
|
|
7850
7633
|
|
|
7851
7634
|
// Own virtual methods of Gda-5.0.Gda.ServerOperation
|
|
7852
7635
|
|
|
7853
|
-
vfunc_seq_item_added(seq_path: string
|
|
7854
|
-
vfunc_seq_item_remove(seq_path: string
|
|
7636
|
+
vfunc_seq_item_added(seq_path: string, item_index: number): void
|
|
7637
|
+
vfunc_seq_item_remove(seq_path: string, item_index: number): void
|
|
7855
7638
|
|
|
7856
7639
|
// Own signals of Gda-5.0.Gda.ServerOperation
|
|
7857
7640
|
|
|
@@ -7906,7 +7689,7 @@ export class ServerOperation extends GObject.Object {
|
|
|
7906
7689
|
* @param xml_file a file which has the specifications for the GdaServerOperation object to create
|
|
7907
7690
|
* @returns a new #GdaServerOperation object
|
|
7908
7691
|
*/
|
|
7909
|
-
constructor(op_type: ServerOperationType, xml_file: string
|
|
7692
|
+
constructor(op_type: ServerOperationType, xml_file: string)
|
|
7910
7693
|
/**
|
|
7911
7694
|
* IMPORTANT NOTE: Using this funtion is not the recommended way of creating a #GdaServerOperation object, the
|
|
7912
7695
|
* correct way is to use gda_server_provider_create_operation(); this method is reserved for the database provider's
|
|
@@ -7921,7 +7704,7 @@ export class ServerOperation extends GObject.Object {
|
|
|
7921
7704
|
* @param xml_file a file which has the specifications for the GdaServerOperation object to create
|
|
7922
7705
|
* @returns a new #GdaServerOperation object
|
|
7923
7706
|
*/
|
|
7924
|
-
static new(op_type: ServerOperationType, xml_file: string
|
|
7707
|
+
static new(op_type: ServerOperationType, xml_file: string): ServerOperation
|
|
7925
7708
|
_init(config?: ServerOperation.ConstructorProperties): void
|
|
7926
7709
|
static error_quark(): GLib.Quark
|
|
7927
7710
|
/**
|
|
@@ -7929,7 +7712,7 @@ export class ServerOperation extends GObject.Object {
|
|
|
7929
7712
|
* @param type a #GdaServerOperationType value
|
|
7930
7713
|
* @returns a non %NULL string (do not free or modify)
|
|
7931
7714
|
*/
|
|
7932
|
-
static op_type_to_string(type: ServerOperationType): string
|
|
7715
|
+
static op_type_to_string(type: ServerOperationType): string
|
|
7933
7716
|
/**
|
|
7934
7717
|
* Creates a new #GdaServerOperation object which contains the specifications required
|
|
7935
7718
|
* to create a database. Once these specifications provided, use
|
|
@@ -7941,7 +7724,7 @@ export class ServerOperation extends GObject.Object {
|
|
|
7941
7724
|
* @param db_name the name of the database to create, or %NULL
|
|
7942
7725
|
* @returns new #GdaServerOperation object, or %NULL if the provider does not support database creation
|
|
7943
7726
|
*/
|
|
7944
|
-
static prepare_create_database(provider: string
|
|
7727
|
+
static prepare_create_database(provider: string, db_name: string | null): ServerOperation | null
|
|
7945
7728
|
/**
|
|
7946
7729
|
* Creates a new #GdaServerOperation object which contains the specifications required
|
|
7947
7730
|
* to drop a database. Once these specifications provided, use
|
|
@@ -7953,7 +7736,7 @@ export class ServerOperation extends GObject.Object {
|
|
|
7953
7736
|
* @param db_name the name of the database to drop, or %NULL
|
|
7954
7737
|
* @returns new #GdaServerOperation object, or %NULL if the provider does not support database destruction
|
|
7955
7738
|
*/
|
|
7956
|
-
static prepare_drop_database(provider: string
|
|
7739
|
+
static prepare_drop_database(provider: string, db_name: string | null): ServerOperation | null
|
|
7957
7740
|
/**
|
|
7958
7741
|
* This is just a convenient function to create a #GdaServerOperation to drop a
|
|
7959
7742
|
* table in an opened connection.
|
|
@@ -7961,13 +7744,13 @@ export class ServerOperation extends GObject.Object {
|
|
|
7961
7744
|
* @param table_name name of the table to drop
|
|
7962
7745
|
* @returns a new #GdaServerOperation or %NULL if couldn't create the opereration.
|
|
7963
7746
|
*/
|
|
7964
|
-
static prepare_drop_table(cnc: Connection, table_name: string
|
|
7747
|
+
static prepare_drop_table(cnc: Connection, table_name: string): ServerOperation | null
|
|
7965
7748
|
/**
|
|
7966
7749
|
* Performs the reverse of gda_server_operation_op_type_to_string()
|
|
7967
7750
|
* @param str a string
|
|
7968
7751
|
* @returns the #GdaServerOperationType represented by @str, or #G_MAXINT if @str is not a valid representation of a #GdaServerOperationType
|
|
7969
7752
|
*/
|
|
7970
|
-
static string_to_op_type(str: string
|
|
7753
|
+
static string_to_op_type(str: string): ServerOperationType
|
|
7971
7754
|
}
|
|
7972
7755
|
|
|
7973
7756
|
export module ServerProvider {
|
|
@@ -8018,7 +7801,7 @@ export interface ServerProvider {
|
|
|
8018
7801
|
* @param str a string to escape
|
|
8019
7802
|
* @returns a new string suitable to use in SQL statements
|
|
8020
7803
|
*/
|
|
8021
|
-
escape_string(cnc: Connection | null, str: string
|
|
7804
|
+
escape_string(cnc: Connection | null, str: string): string | null
|
|
8022
7805
|
/**
|
|
8023
7806
|
* Finds the location of a `filename`. This function should only be used by database provider's
|
|
8024
7807
|
* implementations
|
|
@@ -8026,7 +7809,7 @@ export interface ServerProvider {
|
|
|
8026
7809
|
* @param filename name of the file to find
|
|
8027
7810
|
* @returns the complete path to @filename, or %NULL if not found
|
|
8028
7811
|
*/
|
|
8029
|
-
find_file(inst_dir: string
|
|
7812
|
+
find_file(inst_dir: string, filename: string): string | null
|
|
8030
7813
|
/**
|
|
8031
7814
|
* Find a #GdaDataHandler object to manipulate data of type `for_type`.
|
|
8032
7815
|
*
|
|
@@ -8035,7 +7818,7 @@ export interface ServerProvider {
|
|
|
8035
7818
|
* @param for_type a DBMS type definition
|
|
8036
7819
|
* @returns a #GdaDataHandler, or %NULL if the provider does not know about the @for_type type
|
|
8037
7820
|
*/
|
|
8038
|
-
get_data_handler_dbms(cnc: Connection | null, for_type: string
|
|
7821
|
+
get_data_handler_dbms(cnc: Connection | null, for_type: string): DataHandler
|
|
8039
7822
|
/**
|
|
8040
7823
|
* Provides the implementation when the default Libgda's data handlers must be used
|
|
8041
7824
|
* @param cnc a #GdaConnection object, or %NULL
|
|
@@ -8043,7 +7826,7 @@ export interface ServerProvider {
|
|
|
8043
7826
|
* @param dbms_type a DBMS type definition
|
|
8044
7827
|
* @returns a #GdaDataHandler, or %NULL
|
|
8045
7828
|
*/
|
|
8046
|
-
get_data_handler_default(cnc: Connection | null, type: GObject.GType, dbms_type: string
|
|
7829
|
+
get_data_handler_default(cnc: Connection | null, type: GObject.GType, dbms_type: string): DataHandler
|
|
8047
7830
|
/**
|
|
8048
7831
|
* Find a #GdaDataHandler object to manipulate data of type `for_type`. The returned object must not be modified.
|
|
8049
7832
|
* @param cnc a #GdaConnection object, or %NULL
|
|
@@ -8066,19 +7849,19 @@ export interface ServerProvider {
|
|
|
8066
7849
|
* Get the name (identifier) of the provider
|
|
8067
7850
|
* @returns a string containing the provider's name
|
|
8068
7851
|
*/
|
|
8069
|
-
get_name(): string
|
|
7852
|
+
get_name(): string
|
|
8070
7853
|
/**
|
|
8071
7854
|
* Get the version of the database to which the connection is opened.
|
|
8072
7855
|
* @param cnc a #GdaConnection object
|
|
8073
7856
|
* @returns a (read only) string, or %NULL if an error occurred
|
|
8074
7857
|
*/
|
|
8075
|
-
get_server_version(cnc: Connection): string
|
|
7858
|
+
get_server_version(cnc: Connection): string
|
|
8076
7859
|
/**
|
|
8077
7860
|
* Get the version of the provider.
|
|
8078
7861
|
* @returns a string containing the version identification.
|
|
8079
7862
|
*/
|
|
8080
|
-
get_version(): string
|
|
8081
|
-
handler_declare(dh: DataHandler, cnc: Connection, g_type: GObject.GType, dbms_type: string
|
|
7863
|
+
get_version(): string
|
|
7864
|
+
handler_declare(dh: DataHandler, cnc: Connection, g_type: GObject.GType, dbms_type: string): void
|
|
8082
7865
|
/**
|
|
8083
7866
|
* Reserved to database provider's implementations: get the #GdaDataHandler associated to `prov`
|
|
8084
7867
|
* for connection `cnc`. You probably want to use gda_server_provider_get_data_handler_g_type().
|
|
@@ -8142,7 +7925,7 @@ export interface ServerProvider {
|
|
|
8142
7925
|
* @param dbms_type place to get the actual database type used if the conversion succeeded, or %NULL
|
|
8143
7926
|
* @returns a new #GValue, or %NULL
|
|
8144
7927
|
*/
|
|
8145
|
-
string_to_value(cnc: Connection | null, string: string
|
|
7928
|
+
string_to_value(cnc: Connection | null, string: string, preferred_type: GObject.GType, dbms_type: string | null): any
|
|
8146
7929
|
/**
|
|
8147
7930
|
* Tests if a feature is supported
|
|
8148
7931
|
* @param cnc a #GdaConnection object, or %NULL
|
|
@@ -8165,7 +7948,7 @@ export interface ServerProvider {
|
|
|
8165
7948
|
* @param str a string to escape
|
|
8166
7949
|
* @returns a new string
|
|
8167
7950
|
*/
|
|
8168
|
-
unescape_string(cnc: Connection | null, str: string
|
|
7951
|
+
unescape_string(cnc: Connection | null, str: string): string | null
|
|
8169
7952
|
/**
|
|
8170
7953
|
* Produces a fully quoted and escaped string from a GValue
|
|
8171
7954
|
* @param cnc a #GdaConnection object, or %NULL
|
|
@@ -8176,11 +7959,11 @@ export interface ServerProvider {
|
|
|
8176
7959
|
|
|
8177
7960
|
// Own virtual methods of Gda-5.0.Gda.ServerProvider
|
|
8178
7961
|
|
|
8179
|
-
vfunc_add_savepoint(cnc: Connection, name: string
|
|
8180
|
-
vfunc_begin_transaction(cnc: Connection, name: string
|
|
7962
|
+
vfunc_add_savepoint(cnc: Connection, name: string): boolean
|
|
7963
|
+
vfunc_begin_transaction(cnc: Connection, name: string, level: TransactionIsolation): boolean
|
|
8181
7964
|
vfunc_cancel(cnc: Connection, task_id: number): boolean
|
|
8182
7965
|
vfunc_close_connection(cnc: Connection): boolean
|
|
8183
|
-
vfunc_commit_transaction(cnc: Connection, name: string
|
|
7966
|
+
vfunc_commit_transaction(cnc: Connection, name: string): boolean
|
|
8184
7967
|
/**
|
|
8185
7968
|
* Creates a new #GdaServerOperation object which can be modified in order to perform the `type` type of
|
|
8186
7969
|
* action. The `options` can contain:
|
|
@@ -8206,7 +7989,7 @@ export interface ServerProvider {
|
|
|
8206
7989
|
* @returns a new #GdaSqlParser object, or %NULL.
|
|
8207
7990
|
*/
|
|
8208
7991
|
vfunc_create_parser(cnc: Connection | null): SqlParser
|
|
8209
|
-
vfunc_delete_savepoint(cnc: Connection, name: string
|
|
7992
|
+
vfunc_delete_savepoint(cnc: Connection, name: string): boolean
|
|
8210
7993
|
/**
|
|
8211
7994
|
* Escapes `str` for use within an SQL command (to avoid SQL injection attacks). Note that the returned value still needs
|
|
8212
7995
|
* to be enclosed in single quotes before being used in an SQL statement.
|
|
@@ -8215,30 +7998,30 @@ export interface ServerProvider {
|
|
|
8215
7998
|
* @param str a string to escape
|
|
8216
7999
|
* @returns a new string suitable to use in SQL statements
|
|
8217
8000
|
*/
|
|
8218
|
-
vfunc_escape_string(cnc: Connection | null, str: string
|
|
8219
|
-
vfunc_get_database(cnc: Connection): string
|
|
8220
|
-
vfunc_get_def_dbms_type(cnc: Connection, g_type: GObject.GType): string
|
|
8001
|
+
vfunc_escape_string(cnc: Connection | null, str: string): string | null
|
|
8002
|
+
vfunc_get_database(cnc: Connection): string
|
|
8003
|
+
vfunc_get_def_dbms_type(cnc: Connection, g_type: GObject.GType): string
|
|
8221
8004
|
/**
|
|
8222
8005
|
* Get the name (identifier) of the provider
|
|
8223
8006
|
* @virtual
|
|
8224
8007
|
* @returns a string containing the provider's name
|
|
8225
8008
|
*/
|
|
8226
|
-
vfunc_get_name(): string
|
|
8009
|
+
vfunc_get_name(): string
|
|
8227
8010
|
/**
|
|
8228
8011
|
* Get the version of the database to which the connection is opened.
|
|
8229
8012
|
* @virtual
|
|
8230
8013
|
* @param cnc a #GdaConnection object
|
|
8231
8014
|
* @returns a (read only) string, or %NULL if an error occurred
|
|
8232
8015
|
*/
|
|
8233
|
-
vfunc_get_server_version(cnc: Connection): string
|
|
8016
|
+
vfunc_get_server_version(cnc: Connection): string
|
|
8234
8017
|
/**
|
|
8235
8018
|
* Get the version of the provider.
|
|
8236
8019
|
* @virtual
|
|
8237
8020
|
* @returns a string containing the version identification.
|
|
8238
8021
|
*/
|
|
8239
|
-
vfunc_get_version(): string
|
|
8022
|
+
vfunc_get_version(): string
|
|
8240
8023
|
vfunc_handle_async(cnc: Connection): boolean
|
|
8241
|
-
vfunc_identifier_quote(cnc: Connection, id: string
|
|
8024
|
+
vfunc_identifier_quote(cnc: Connection, id: string, for_meta_store: boolean, force_quotes: boolean): string | null
|
|
8242
8025
|
vfunc_is_busy(cnc: Connection): boolean
|
|
8243
8026
|
/**
|
|
8244
8027
|
* Creates an SQL statement (possibly using some specific extensions of the DBMS) corresponding to the
|
|
@@ -8252,8 +8035,8 @@ export interface ServerProvider {
|
|
|
8252
8035
|
* @returns a new string, or %NULL if an error occurred or operation cannot be rendered as SQL.
|
|
8253
8036
|
*/
|
|
8254
8037
|
vfunc_render_operation(cnc: Connection | null, op: ServerOperation): string | null
|
|
8255
|
-
vfunc_rollback_savepoint(cnc: Connection, name: string
|
|
8256
|
-
vfunc_rollback_transaction(cnc: Connection, name: string
|
|
8038
|
+
vfunc_rollback_savepoint(cnc: Connection, name: string): boolean
|
|
8039
|
+
vfunc_rollback_transaction(cnc: Connection, name: string): boolean
|
|
8257
8040
|
vfunc_statement_prepare(cnc: Connection, stmt: Statement): boolean
|
|
8258
8041
|
/**
|
|
8259
8042
|
* Tests if a feature is supported
|
|
@@ -8280,7 +8063,7 @@ export interface ServerProvider {
|
|
|
8280
8063
|
* @param str a string to escape
|
|
8281
8064
|
* @returns a new string
|
|
8282
8065
|
*/
|
|
8283
|
-
vfunc_unescape_string(cnc: Connection | null, str: string
|
|
8066
|
+
vfunc_unescape_string(cnc: Connection | null, str: string): string | null
|
|
8284
8067
|
|
|
8285
8068
|
// Class property signals of Gda-5.0.Gda.ServerProvider
|
|
8286
8069
|
|
|
@@ -8311,7 +8094,7 @@ export class ServerProvider extends GObject.Object {
|
|
|
8311
8094
|
* @param filename name of the file to load
|
|
8312
8095
|
* @returns a new string containing @filename's contents, or %NULL if not found or if an error occurred
|
|
8313
8096
|
*/
|
|
8314
|
-
static load_file_contents(inst_dir: string
|
|
8097
|
+
static load_file_contents(inst_dir: string, data_dir: string, filename: string): string | null
|
|
8315
8098
|
}
|
|
8316
8099
|
|
|
8317
8100
|
export module Set {
|
|
@@ -8378,12 +8161,6 @@ export module Set {
|
|
|
8378
8161
|
holders?: any | null
|
|
8379
8162
|
id?: string | null
|
|
8380
8163
|
name?: string | null
|
|
8381
|
-
/**
|
|
8382
|
-
* Defines if the "validate-set" signal gets emitted when
|
|
8383
|
-
* any holder in the data set changes. This property also affects the
|
|
8384
|
-
* GdaHolder:validate-changes property.
|
|
8385
|
-
*/
|
|
8386
|
-
validate_changes?: boolean | null
|
|
8387
8164
|
/**
|
|
8388
8165
|
* Defines if the "validate-set" signal gets emitted when
|
|
8389
8166
|
* any holder in the data set changes. This property also affects the
|
|
@@ -8401,12 +8178,6 @@ export interface Set {
|
|
|
8401
8178
|
description: string | null
|
|
8402
8179
|
id: string | null
|
|
8403
8180
|
name: string | null
|
|
8404
|
-
/**
|
|
8405
|
-
* Defines if the "validate-set" signal gets emitted when
|
|
8406
|
-
* any holder in the data set changes. This property also affects the
|
|
8407
|
-
* GdaHolder:validate-changes property.
|
|
8408
|
-
*/
|
|
8409
|
-
validate_changes: boolean
|
|
8410
8181
|
/**
|
|
8411
8182
|
* Defines if the "validate-set" signal gets emitted when
|
|
8412
8183
|
* any holder in the data set changes. This property also affects the
|
|
@@ -8468,13 +8239,13 @@ export interface Set {
|
|
|
8468
8239
|
* @param holder_id the ID of the requested value holder
|
|
8469
8240
|
* @returns the requested #GdaHolder or %NULL
|
|
8470
8241
|
*/
|
|
8471
|
-
get_holder(holder_id: string
|
|
8242
|
+
get_holder(holder_id: string): Holder
|
|
8472
8243
|
/**
|
|
8473
8244
|
* Get the value of the #GdaHolder which ID is `holder_id`
|
|
8474
8245
|
* @param holder_id the ID of the holder to set the value
|
|
8475
8246
|
* @returns the requested GValue, or %NULL (see gda_holder_get_value())
|
|
8476
8247
|
*/
|
|
8477
|
-
get_holder_value(holder_id: string
|
|
8248
|
+
get_holder_value(holder_id: string): any | null
|
|
8478
8249
|
/**
|
|
8479
8250
|
* Finds a #GdaSetNode holding information for `holder,` don't modify the returned structure
|
|
8480
8251
|
* @param holder a #GdaHolder object
|
|
@@ -8536,7 +8307,7 @@ export interface Set {
|
|
|
8536
8307
|
|
|
8537
8308
|
// Own virtual methods of Gda-5.0.Gda.Set
|
|
8538
8309
|
|
|
8539
|
-
vfunc_holder_attr_changed(holder: Holder, attr_name: string
|
|
8310
|
+
vfunc_holder_attr_changed(holder: Holder, attr_name: string, attr_value: any): void
|
|
8540
8311
|
vfunc_holder_changed(holder: Holder): void
|
|
8541
8312
|
vfunc_holder_type_set(holder: Holder): void
|
|
8542
8313
|
vfunc_public_data_changed(): void
|
|
@@ -8631,7 +8402,7 @@ export class Set extends GObject.Object {
|
|
|
8631
8402
|
* @param xml_spec a string
|
|
8632
8403
|
* @returns a new object, or %NULL if an error occurred
|
|
8633
8404
|
*/
|
|
8634
|
-
static new_from_spec_string(xml_spec: string
|
|
8405
|
+
static new_from_spec_string(xml_spec: string): Set
|
|
8635
8406
|
/**
|
|
8636
8407
|
* Creates a new #GdaSet like gda_set_new(), but does not allow modifications to any of the #GdaHolder
|
|
8637
8408
|
* object in `holders`. This function is used for Libgda's database providers' implementation.
|
|
@@ -8729,7 +8500,7 @@ export interface SqlBuilder {
|
|
|
8729
8500
|
* @param table_name a table name, or %NULL
|
|
8730
8501
|
* @returns the ID of the new expression, or %0 if there was an error
|
|
8731
8502
|
*/
|
|
8732
|
-
add_field_id(field_name: string
|
|
8503
|
+
add_field_id(field_name: string, table_name: string | null): SqlBuilderId
|
|
8733
8504
|
/**
|
|
8734
8505
|
* Valid only for: INSERT, UPDATE statements.
|
|
8735
8506
|
*
|
|
@@ -8738,7 +8509,7 @@ export interface SqlBuilder {
|
|
|
8738
8509
|
* @param field_name a field name
|
|
8739
8510
|
* @param value value to set the field to, or %NULL or a GDA_TYPE_NULL value to represent an SQL NULL
|
|
8740
8511
|
*/
|
|
8741
|
-
add_field_value_as_gvalue(field_name: string
|
|
8512
|
+
add_field_value_as_gvalue(field_name: string, value: any | null): void
|
|
8742
8513
|
/**
|
|
8743
8514
|
* Valid only for: INSERT, UPDATE, SELECT statements
|
|
8744
8515
|
* <itemizedlist>
|
|
@@ -8764,7 +8535,7 @@ export interface SqlBuilder {
|
|
|
8764
8535
|
* @param args an array of IDs representing the function's arguments
|
|
8765
8536
|
* @returns the ID of the new expression, or %0 if there was an error
|
|
8766
8537
|
*/
|
|
8767
|
-
add_function(func_name: string
|
|
8538
|
+
add_function(func_name: string, args: SqlBuilderId[]): SqlBuilderId
|
|
8768
8539
|
/**
|
|
8769
8540
|
* Defines an expression representing an identifier in `builder,`
|
|
8770
8541
|
* which may be reused to build other parts of a statement,
|
|
@@ -8790,7 +8561,7 @@ export interface SqlBuilder {
|
|
|
8790
8561
|
* @param str a string
|
|
8791
8562
|
* @returns the ID of the new expression, or %0 if there was an error
|
|
8792
8563
|
*/
|
|
8793
|
-
add_id(str: string
|
|
8564
|
+
add_id(str: string): SqlBuilderId
|
|
8794
8565
|
/**
|
|
8795
8566
|
* Defines a parameter in `builder` which may be reused to build other parts of a statement.
|
|
8796
8567
|
*
|
|
@@ -8810,7 +8581,7 @@ export interface SqlBuilder {
|
|
|
8810
8581
|
* @param nullok TRUE if the parameter can be set to %NULL
|
|
8811
8582
|
* @returns the ID of the new expression, or %0 if there was an error
|
|
8812
8583
|
*/
|
|
8813
|
-
add_param(param_name: string
|
|
8584
|
+
add_param(param_name: string, type: GObject.GType, nullok: boolean): SqlBuilderId
|
|
8814
8585
|
/**
|
|
8815
8586
|
* Add a sub select to a COMPOUND statement
|
|
8816
8587
|
* @param subselect a #GdaSqlBuilder, which has to be a SELECT or compound SELECT. This will be copied.
|
|
@@ -8839,7 +8610,7 @@ export interface SqlBuilder {
|
|
|
8839
8610
|
* @param join_id the ID of the join to modify (not %0)
|
|
8840
8611
|
* @param field_name the name of the field to use in the join condition (not %NULL)
|
|
8841
8612
|
*/
|
|
8842
|
-
join_add_field(join_id: SqlBuilderId, field_name: string
|
|
8613
|
+
join_add_field(join_id: SqlBuilderId, field_name: string): void
|
|
8843
8614
|
/**
|
|
8844
8615
|
* Valid only for: SELECT statements.
|
|
8845
8616
|
*
|
|
@@ -8851,14 +8622,14 @@ export interface SqlBuilder {
|
|
|
8851
8622
|
* @param alias an alias (eg. for the "AS" clause), or %NULL
|
|
8852
8623
|
* @returns the ID of the added field, or %0 if there was an error
|
|
8853
8624
|
*/
|
|
8854
|
-
select_add_field(field_name: string
|
|
8625
|
+
select_add_field(field_name: string, table_name: string | null, alias: string | null): SqlBuilderId
|
|
8855
8626
|
/**
|
|
8856
8627
|
* Adds a new target to a SELECT statement
|
|
8857
8628
|
* @param table_name the name of the target table
|
|
8858
8629
|
* @param alias the alias to give to the target, or %NULL
|
|
8859
8630
|
* @returns the ID of the new target, or %0 if there was an error
|
|
8860
8631
|
*/
|
|
8861
|
-
select_add_target(table_name: string
|
|
8632
|
+
select_add_target(table_name: string, alias: string | null): SqlBuilderId
|
|
8862
8633
|
/**
|
|
8863
8634
|
* Adds a new target to a SELECT statement. If there already exists a target representing
|
|
8864
8635
|
* the same table and the same alias (or with the same absence of alias) then the same target
|
|
@@ -8918,7 +8689,7 @@ export interface SqlBuilder {
|
|
|
8918
8689
|
* Sets the name of the table on which the built statement operates.
|
|
8919
8690
|
* @param table_name a table name
|
|
8920
8691
|
*/
|
|
8921
|
-
set_table(table_name: string
|
|
8692
|
+
set_table(table_name: string): void
|
|
8922
8693
|
/**
|
|
8923
8694
|
* Valid only for: UPDATE, DELETE, SELECT statements
|
|
8924
8695
|
*
|
|
@@ -8974,7 +8745,6 @@ export module SqlParser {
|
|
|
8974
8745
|
// Own constructor properties of Gda-5.0.Gda.SqlParser
|
|
8975
8746
|
|
|
8976
8747
|
mode?: number | null
|
|
8977
|
-
tokenizer_flavour?: number | null
|
|
8978
8748
|
tokenizerFlavour?: number | null
|
|
8979
8749
|
}
|
|
8980
8750
|
|
|
@@ -8984,12 +8754,9 @@ export interface SqlParser extends Lockable {
|
|
|
8984
8754
|
|
|
8985
8755
|
// Own properties of Gda-5.0.Gda.SqlParser
|
|
8986
8756
|
|
|
8987
|
-
readonly column_error: number
|
|
8988
8757
|
readonly columnError: number
|
|
8989
|
-
readonly line_error: number
|
|
8990
8758
|
readonly lineError: number
|
|
8991
8759
|
mode: number
|
|
8992
|
-
tokenizer_flavour: number
|
|
8993
8760
|
tokenizerFlavour: number
|
|
8994
8761
|
|
|
8995
8762
|
// Own fields of Gda-5.0.Gda.SqlParser
|
|
@@ -9010,7 +8777,7 @@ export interface SqlParser extends Lockable {
|
|
|
9010
8777
|
* @param filename name of the file to parse
|
|
9011
8778
|
* @returns a new #GdaBatch object, or %NULL if an error occurred
|
|
9012
8779
|
*/
|
|
9013
|
-
parse_file_as_batch(filename: string
|
|
8780
|
+
parse_file_as_batch(filename: string): Batch | null
|
|
9014
8781
|
/**
|
|
9015
8782
|
* Parses `sql` and creates a #GdaStatement statement from the first SQL statement contained in `sql:` if `sql`
|
|
9016
8783
|
* contains more than one statement, then the remaining part of the string is not parsed at all, and `remain` (if
|
|
@@ -9021,7 +8788,7 @@ export interface SqlParser extends Lockable {
|
|
|
9021
8788
|
* @param sql the SQL string to parse
|
|
9022
8789
|
* @returns a new #GdaStatement object, or %NULL if an error occurred
|
|
9023
8790
|
*/
|
|
9024
|
-
parse_string(sql: string
|
|
8791
|
+
parse_string(sql: string): [ /* returnType */ Statement | null, /* remain */ string ]
|
|
9025
8792
|
/**
|
|
9026
8793
|
* Parse `sql` and creates a #GdaBatch object which contains all the #GdaStatement objects created while parsing (one object
|
|
9027
8794
|
* per SQL statement). Empty statements (composed of spaces only) do not appear in the resulting object.
|
|
@@ -9037,7 +8804,7 @@ export interface SqlParser extends Lockable {
|
|
|
9037
8804
|
* @param sql the SQL string to parse
|
|
9038
8805
|
* @returns a new #GdaBatch object, or %NULL if an error occurred
|
|
9039
8806
|
*/
|
|
9040
|
-
parse_string_as_batch(sql: string
|
|
8807
|
+
parse_string_as_batch(sql: string): [ /* returnType */ Batch | null, /* remain */ string ]
|
|
9041
8808
|
set_overflow_error(): void
|
|
9042
8809
|
set_syntax_error(): void
|
|
9043
8810
|
|
|
@@ -9311,7 +9078,7 @@ export interface ThreadWrapper {
|
|
|
9311
9078
|
* @param callback a #GdaThreadWrapperCallback function
|
|
9312
9079
|
* @returns the handler ID
|
|
9313
9080
|
*/
|
|
9314
|
-
connect_raw(instance: any | null, sig_name: string
|
|
9081
|
+
connect_raw(instance: any | null, sig_name: string, private_thread: boolean, private_job: boolean, callback: ThreadWrapperCallback): number
|
|
9315
9082
|
/**
|
|
9316
9083
|
* Disconnects the emission of a signal, does the opposite of gda_thread_wrapper_connect_raw().
|
|
9317
9084
|
*
|
|
@@ -9475,7 +9242,7 @@ export interface TransactionStatus {
|
|
|
9475
9242
|
|
|
9476
9243
|
// Owm methods of Gda-5.0.Gda.TransactionStatus
|
|
9477
9244
|
|
|
9478
|
-
find(str: string
|
|
9245
|
+
find(str: string, destev: TransactionStatusEvent): TransactionStatus | null
|
|
9479
9246
|
/**
|
|
9480
9247
|
* Find a pointer to the "current" _unnamed_ transaction, which is the last
|
|
9481
9248
|
* transaction if there are several nested transactions
|
|
@@ -9510,7 +9277,7 @@ export class TransactionStatus extends GObject.Object {
|
|
|
9510
9277
|
* @param name name for the transaction
|
|
9511
9278
|
* @returns the newly created object.
|
|
9512
9279
|
*/
|
|
9513
|
-
constructor(name: string
|
|
9280
|
+
constructor(name: string)
|
|
9514
9281
|
/**
|
|
9515
9282
|
* Creates a new #GdaTransactionStatus object, which allows a fine-tune and
|
|
9516
9283
|
* full control of transactions to be used with providers.
|
|
@@ -9518,7 +9285,7 @@ export class TransactionStatus extends GObject.Object {
|
|
|
9518
9285
|
* @param name name for the transaction
|
|
9519
9286
|
* @returns the newly created object.
|
|
9520
9287
|
*/
|
|
9521
|
-
static new(name: string
|
|
9288
|
+
static new(name: string): TransactionStatus
|
|
9522
9289
|
_init(config?: TransactionStatus.ConstructorProperties): void
|
|
9523
9290
|
}
|
|
9524
9291
|
|
|
@@ -9566,10 +9333,6 @@ export interface Tree {
|
|
|
9566
9333
|
|
|
9567
9334
|
// Own properties of Gda-5.0.Gda.Tree
|
|
9568
9335
|
|
|
9569
|
-
/**
|
|
9570
|
-
* Tells if the GdaTree is a list or a tree.
|
|
9571
|
-
*/
|
|
9572
|
-
readonly is_list: boolean
|
|
9573
9336
|
/**
|
|
9574
9337
|
* Tells if the GdaTree is a list or a tree.
|
|
9575
9338
|
*/
|
|
@@ -9603,7 +9366,7 @@ export interface Tree {
|
|
|
9603
9366
|
* @param use_names if %TRUE, then `tree_path` will be interpreted as a unix style path, and if %FALSE, then `tree_path` will be interpreted similarly to the #GtkTreePath's string representation.
|
|
9604
9367
|
* @returns the requested #GdaTreeNode pointer, or %NULL if not found
|
|
9605
9368
|
*/
|
|
9606
|
-
get_node(tree_path: string
|
|
9369
|
+
get_node(tree_path: string, use_names: boolean): TreeNode | null
|
|
9607
9370
|
/**
|
|
9608
9371
|
* Get the #GdaTreeManager which created `node` in `tree`
|
|
9609
9372
|
* @param node a #GdaTreeNode present in `tree`
|
|
@@ -9632,7 +9395,7 @@ export interface Tree {
|
|
|
9632
9395
|
* @param value a #GValue, or %NULL
|
|
9633
9396
|
* @param destroy a function to be called when `attribute` is not needed anymore, or %NULL
|
|
9634
9397
|
*/
|
|
9635
|
-
set_attribute(attribute: string
|
|
9398
|
+
set_attribute(attribute: string, value: any, destroy: GLib.DestroyNotify): void
|
|
9636
9399
|
/**
|
|
9637
9400
|
* Requests that `tree` be populated with nodes. If an error occurs, then `tree'`s contents is left
|
|
9638
9401
|
* unchanged, and otherwise `tree'`s previous contents is completely replaced by the new one.
|
|
@@ -9656,7 +9419,7 @@ export interface Tree {
|
|
|
9656
9419
|
// Own virtual methods of Gda-5.0.Gda.Tree
|
|
9657
9420
|
|
|
9658
9421
|
vfunc_node_changed(node: TreeNode): void
|
|
9659
|
-
vfunc_node_deleted(node_path: string
|
|
9422
|
+
vfunc_node_deleted(node_path: string): void
|
|
9660
9423
|
vfunc_node_has_child_toggled(node: TreeNode): void
|
|
9661
9424
|
vfunc_node_inserted(node: TreeNode): void
|
|
9662
9425
|
|
|
@@ -9783,7 +9546,7 @@ export interface TreeManager {
|
|
|
9783
9546
|
* @param attribute an attribute name
|
|
9784
9547
|
* @param value the attribute's value, or %NULL
|
|
9785
9548
|
*/
|
|
9786
|
-
add_new_node_attribute(attribute: string
|
|
9549
|
+
add_new_node_attribute(attribute: string, value: any | null): void
|
|
9787
9550
|
/**
|
|
9788
9551
|
* Requests that `manager` creates a new #GdaTreeNode. The new node is not in any
|
|
9789
9552
|
* way linked to `manager` yet, consider this method as a #GdaTreeNode factory.
|
|
@@ -9847,21 +9610,11 @@ export module TreeMgrColumns {
|
|
|
9847
9610
|
* the #GdaTreeMgrColumns:connection property is specified instead. This property has
|
|
9848
9611
|
* priority over the GdaTreeMgrColumns:connection property.
|
|
9849
9612
|
*/
|
|
9850
|
-
|
|
9613
|
+
metaStore?: MetaStore | null
|
|
9851
9614
|
/**
|
|
9852
9615
|
* If no set, then the table name will be fetched from the parent node using the "schema" attribute
|
|
9853
9616
|
*/
|
|
9854
9617
|
schema?: string | null
|
|
9855
|
-
/**
|
|
9856
|
-
* If no set, then the table name will be fetched from the parent node using the "table_name" attribute
|
|
9857
|
-
*/
|
|
9858
|
-
table_name?: string | null
|
|
9859
|
-
/**
|
|
9860
|
-
* Defines the #GdaMetaStore to extract information from. Necessary upon construction unless
|
|
9861
|
-
* the #GdaTreeMgrColumns:connection property is specified instead. This property has
|
|
9862
|
-
* priority over the GdaTreeMgrColumns:connection property.
|
|
9863
|
-
*/
|
|
9864
|
-
metaStore?: MetaStore | null
|
|
9865
9618
|
/**
|
|
9866
9619
|
* If no set, then the table name will be fetched from the parent node using the "table_name" attribute
|
|
9867
9620
|
*/
|
|
@@ -9879,12 +9632,6 @@ export interface TreeMgrColumns {
|
|
|
9879
9632
|
* the #GdaTreeMgrColumns:meta-store property is specified instead.
|
|
9880
9633
|
*/
|
|
9881
9634
|
readonly connection: Connection
|
|
9882
|
-
/**
|
|
9883
|
-
* Defines the #GdaMetaStore to extract information from. Necessary upon construction unless
|
|
9884
|
-
* the #GdaTreeMgrColumns:connection property is specified instead. This property has
|
|
9885
|
-
* priority over the GdaTreeMgrColumns:connection property.
|
|
9886
|
-
*/
|
|
9887
|
-
readonly meta_store: MetaStore
|
|
9888
9635
|
/**
|
|
9889
9636
|
* Defines the #GdaMetaStore to extract information from. Necessary upon construction unless
|
|
9890
9637
|
* the #GdaTreeMgrColumns:connection property is specified instead. This property has
|
|
@@ -9895,10 +9642,6 @@ export interface TreeMgrColumns {
|
|
|
9895
9642
|
* If no set, then the table name will be fetched from the parent node using the "schema" attribute
|
|
9896
9643
|
*/
|
|
9897
9644
|
readonly schema: string | null
|
|
9898
|
-
/**
|
|
9899
|
-
* If no set, then the table name will be fetched from the parent node using the "table_name" attribute
|
|
9900
|
-
*/
|
|
9901
|
-
readonly table_name: string | null
|
|
9902
9645
|
/**
|
|
9903
9646
|
* If no set, then the table name will be fetched from the parent node using the "table_name" attribute
|
|
9904
9647
|
*/
|
|
@@ -9954,7 +9697,7 @@ export class TreeMgrColumns extends TreeManager {
|
|
|
9954
9697
|
* @param table_name the name of the table
|
|
9955
9698
|
* @returns a new #GdaTreeManager object
|
|
9956
9699
|
*/
|
|
9957
|
-
constructor(cnc: Connection, schema: string
|
|
9700
|
+
constructor(cnc: Connection, schema: string, table_name: string)
|
|
9958
9701
|
/**
|
|
9959
9702
|
* Creates a new #GdaTreeManager object which will add one tree node for each
|
|
9960
9703
|
* column in the table named `table_name` in the `schema` schema.
|
|
@@ -9964,7 +9707,7 @@ export class TreeMgrColumns extends TreeManager {
|
|
|
9964
9707
|
* @param table_name the name of the table
|
|
9965
9708
|
* @returns a new #GdaTreeManager object
|
|
9966
9709
|
*/
|
|
9967
|
-
static new(cnc: Connection, schema: string
|
|
9710
|
+
static new(cnc: Connection, schema: string, table_name: string): TreeMgrColumns
|
|
9968
9711
|
_init(config?: TreeMgrColumns.ConstructorProperties): void
|
|
9969
9712
|
}
|
|
9970
9713
|
|
|
@@ -10025,14 +9768,14 @@ export class TreeMgrLabel extends TreeManager {
|
|
|
10025
9768
|
* @param label a label string
|
|
10026
9769
|
* @returns a new #GdaTreeManager object
|
|
10027
9770
|
*/
|
|
10028
|
-
constructor(label: string
|
|
9771
|
+
constructor(label: string)
|
|
10029
9772
|
/**
|
|
10030
9773
|
* Creates a new #GdaTreeManager object which will add one tree node labelled `label`
|
|
10031
9774
|
* @constructor
|
|
10032
9775
|
* @param label a label string
|
|
10033
9776
|
* @returns a new #GdaTreeManager object
|
|
10034
9777
|
*/
|
|
10035
|
-
static new(label: string
|
|
9778
|
+
static new(label: string): TreeMgrLabel
|
|
10036
9779
|
_init(config?: TreeMgrLabel.ConstructorProperties): void
|
|
10037
9780
|
}
|
|
10038
9781
|
|
|
@@ -10129,12 +9872,6 @@ export module TreeMgrSchemas {
|
|
|
10129
9872
|
* the #GdaTreeMgrSchema:meta-store property is specified instead.
|
|
10130
9873
|
*/
|
|
10131
9874
|
connection?: Connection | null
|
|
10132
|
-
/**
|
|
10133
|
-
* Defines the #GdaMetaStore to extract information from. Necessary upon construction unless
|
|
10134
|
-
* the #GdaTreeMgrSchema:connection property is specified instead. This property has
|
|
10135
|
-
* priority over the GdaTreeMgrSchema:connection property.
|
|
10136
|
-
*/
|
|
10137
|
-
meta_store?: MetaStore | null
|
|
10138
9875
|
/**
|
|
10139
9876
|
* Defines the #GdaMetaStore to extract information from. Necessary upon construction unless
|
|
10140
9877
|
* the #GdaTreeMgrSchema:connection property is specified instead. This property has
|
|
@@ -10154,12 +9891,6 @@ export interface TreeMgrSchemas {
|
|
|
10154
9891
|
* the #GdaTreeMgrSchema:meta-store property is specified instead.
|
|
10155
9892
|
*/
|
|
10156
9893
|
readonly connection: Connection
|
|
10157
|
-
/**
|
|
10158
|
-
* Defines the #GdaMetaStore to extract information from. Necessary upon construction unless
|
|
10159
|
-
* the #GdaTreeMgrSchema:connection property is specified instead. This property has
|
|
10160
|
-
* priority over the GdaTreeMgrSchema:connection property.
|
|
10161
|
-
*/
|
|
10162
|
-
readonly meta_store: MetaStore
|
|
10163
9894
|
/**
|
|
10164
9895
|
* Defines the #GdaMetaStore to extract information from. Necessary upon construction unless
|
|
10165
9896
|
* the #GdaTreeMgrSchema:connection property is specified instead. This property has
|
|
@@ -10323,19 +10054,13 @@ export module TreeMgrTables {
|
|
|
10323
10054
|
* the #GdaTreeMgrTables:connection property is specified instead. This property has
|
|
10324
10055
|
* priority over the GdaTreeMgrTables:connection property.
|
|
10325
10056
|
*/
|
|
10326
|
-
|
|
10057
|
+
metaStore?: MetaStore | null
|
|
10327
10058
|
/**
|
|
10328
10059
|
* If no set, then the table name will be fetched from the parent node using the "schema" attribute. If not
|
|
10329
10060
|
* found that way, then the list of visible tables (tables which can be identified without having to specify
|
|
10330
10061
|
* a schema) will be used
|
|
10331
10062
|
*/
|
|
10332
10063
|
schema?: string | null
|
|
10333
|
-
/**
|
|
10334
|
-
* Defines the #GdaMetaStore to extract information from. Necessary upon construction unless
|
|
10335
|
-
* the #GdaTreeMgrTables:connection property is specified instead. This property has
|
|
10336
|
-
* priority over the GdaTreeMgrTables:connection property.
|
|
10337
|
-
*/
|
|
10338
|
-
metaStore?: MetaStore | null
|
|
10339
10064
|
}
|
|
10340
10065
|
|
|
10341
10066
|
}
|
|
@@ -10349,12 +10074,6 @@ export interface TreeMgrTables {
|
|
|
10349
10074
|
* the #GdaTreeMgrTables:meta-store property is specified instead.
|
|
10350
10075
|
*/
|
|
10351
10076
|
readonly connection: Connection
|
|
10352
|
-
/**
|
|
10353
|
-
* Defines the #GdaMetaStore to extract information from. Necessary upon construction unless
|
|
10354
|
-
* the #GdaTreeMgrTables:connection property is specified instead. This property has
|
|
10355
|
-
* priority over the GdaTreeMgrTables:connection property.
|
|
10356
|
-
*/
|
|
10357
|
-
readonly meta_store: MetaStore
|
|
10358
10077
|
/**
|
|
10359
10078
|
* Defines the #GdaMetaStore to extract information from. Necessary upon construction unless
|
|
10360
10079
|
* the #GdaTreeMgrTables:connection property is specified instead. This property has
|
|
@@ -10493,7 +10212,7 @@ export interface TreeNode {
|
|
|
10493
10212
|
* @param attribute attribute name as a string
|
|
10494
10213
|
* @returns a read-only #GValue, or %NULL if not attribute named @attribute has been set for @node
|
|
10495
10214
|
*/
|
|
10496
|
-
fetch_attribute(attribute: string
|
|
10215
|
+
fetch_attribute(attribute: string): any
|
|
10497
10216
|
/**
|
|
10498
10217
|
* Get the #GdaTreeNode child of `node` at position `index` (starting at 0).
|
|
10499
10218
|
* @param index a index
|
|
@@ -10505,7 +10224,7 @@ export interface TreeNode {
|
|
|
10505
10224
|
* @param name requested node's name
|
|
10506
10225
|
* @returns the #GdaTreeNode, or %NULL if not found
|
|
10507
10226
|
*/
|
|
10508
|
-
get_child_name(name: string
|
|
10227
|
+
get_child_name(name: string): TreeNode
|
|
10509
10228
|
/**
|
|
10510
10229
|
* Get a list of all `node'`s children, free it with g_slist_free() after usage
|
|
10511
10230
|
* @returns a new #GSList of #GdaTreeNode objects, or %NULL if @node does not have any child
|
|
@@ -10521,7 +10240,7 @@ export interface TreeNode {
|
|
|
10521
10240
|
* @param attribute attribute name as a string
|
|
10522
10241
|
* @returns a read-only #GValue, or %NULL if not attribute named @attribute has been set for @node
|
|
10523
10242
|
*/
|
|
10524
|
-
get_node_attribute(attribute: string
|
|
10243
|
+
get_node_attribute(attribute: string): any
|
|
10525
10244
|
/**
|
|
10526
10245
|
* Get the #GdaTreeNode parent of `node` in the #GdaTree node belongs to. If `node` is at the top level,
|
|
10527
10246
|
* then this method return %NULL.
|
|
@@ -10550,14 +10269,14 @@ export interface TreeNode {
|
|
|
10550
10269
|
* @param value a #GValue, or %NULL
|
|
10551
10270
|
* @param destroy a function to be called when `attribute` is not needed anymore, or %NULL
|
|
10552
10271
|
*/
|
|
10553
|
-
set_node_attribute(attribute: string
|
|
10272
|
+
set_node_attribute(attribute: string, value: any | null, destroy: GLib.DestroyNotify): void
|
|
10554
10273
|
|
|
10555
10274
|
// Own virtual methods of Gda-5.0.Gda.TreeNode
|
|
10556
10275
|
|
|
10557
|
-
vfunc_dump_children(prefix: string
|
|
10276
|
+
vfunc_dump_children(prefix: string, in_string: GLib.String): void
|
|
10558
10277
|
vfunc_dump_header(): string | null
|
|
10559
10278
|
vfunc_node_changed(node: TreeNode): void
|
|
10560
|
-
vfunc_node_deleted(relative_path: string
|
|
10279
|
+
vfunc_node_deleted(relative_path: string): void
|
|
10561
10280
|
vfunc_node_has_child_toggled(node: TreeNode): void
|
|
10562
10281
|
vfunc_node_inserted(node: TreeNode): void
|
|
10563
10282
|
|
|
@@ -10633,8 +10352,6 @@ export module XaTransaction {
|
|
|
10633
10352
|
|
|
10634
10353
|
// Own constructor properties of Gda-5.0.Gda.XaTransaction
|
|
10635
10354
|
|
|
10636
|
-
format_id?: number | null
|
|
10637
|
-
transaction_id?: string | null
|
|
10638
10355
|
formatId?: number | null
|
|
10639
10356
|
transactionId?: string | null
|
|
10640
10357
|
}
|
|
@@ -10645,9 +10362,7 @@ export interface XaTransaction {
|
|
|
10645
10362
|
|
|
10646
10363
|
// Own properties of Gda-5.0.Gda.XaTransaction
|
|
10647
10364
|
|
|
10648
|
-
readonly format_id: number
|
|
10649
10365
|
readonly formatId: number
|
|
10650
|
-
readonly transaction_id: string | null
|
|
10651
10366
|
readonly transactionId: string | null
|
|
10652
10367
|
|
|
10653
10368
|
// Own fields of Gda-5.0.Gda.XaTransaction
|
|
@@ -10696,7 +10411,7 @@ export interface XaTransaction {
|
|
|
10696
10411
|
* @param branch the branch qualifier
|
|
10697
10412
|
* @returns %TRUE if no error occurred
|
|
10698
10413
|
*/
|
|
10699
|
-
register_connection(cnc: Connection, branch: string
|
|
10414
|
+
register_connection(cnc: Connection, branch: string): boolean
|
|
10700
10415
|
/**
|
|
10701
10416
|
* Cancels a distributed transaction (managed by `xa_trans)`.
|
|
10702
10417
|
* @returns %TRUE if no error occurred
|
|
@@ -10741,7 +10456,7 @@ export class XaTransaction extends GObject.Object {
|
|
|
10741
10456
|
* @param global_transaction_id the global transaction ID
|
|
10742
10457
|
* @returns the newly created object.
|
|
10743
10458
|
*/
|
|
10744
|
-
constructor(format: number, global_transaction_id: string
|
|
10459
|
+
constructor(format: number, global_transaction_id: string)
|
|
10745
10460
|
/**
|
|
10746
10461
|
* Creates a new #GdaXaTransaction object, which will control the process of
|
|
10747
10462
|
* performing a distributed transaction across several connections.
|
|
@@ -10750,7 +10465,7 @@ export class XaTransaction extends GObject.Object {
|
|
|
10750
10465
|
* @param global_transaction_id the global transaction ID
|
|
10751
10466
|
* @returns the newly created object.
|
|
10752
10467
|
*/
|
|
10753
|
-
static new(format: number, global_transaction_id: string
|
|
10468
|
+
static new(format: number, global_transaction_id: string): XaTransaction
|
|
10754
10469
|
_init(config?: XaTransaction.ConstructorProperties): void
|
|
10755
10470
|
static error_quark(): GLib.Quark
|
|
10756
10471
|
}
|
|
@@ -10762,9 +10477,9 @@ export interface AttributesManager {
|
|
|
10762
10477
|
clear(ptr: any | null): void
|
|
10763
10478
|
foreach(ptr: any | null, func: AttributesManagerFunc): void
|
|
10764
10479
|
free(): void
|
|
10765
|
-
get(ptr: any | null, att_name: string
|
|
10766
|
-
set(ptr: any | null, att_name: string
|
|
10767
|
-
set_full(ptr: any | null, att_name: string
|
|
10480
|
+
get(ptr: any | null, att_name: string): any
|
|
10481
|
+
set(ptr: any | null, att_name: string, value: any): void
|
|
10482
|
+
set_full(ptr: any | null, att_name: string, value: any, destroy: GLib.DestroyNotify): void
|
|
10768
10483
|
}
|
|
10769
10484
|
|
|
10770
10485
|
export class AttributesManager {
|
|
@@ -10937,7 +10652,7 @@ export interface ColumnClass {
|
|
|
10937
10652
|
// Own fields of Gda-5.0.Gda.ColumnClass
|
|
10938
10653
|
|
|
10939
10654
|
parent_class: GObject.ObjectClass
|
|
10940
|
-
name_changed: (column: Column, old_name: string
|
|
10655
|
+
name_changed: (column: Column, old_name: string) => void
|
|
10941
10656
|
g_type_changed: (column: Column, old_type: GObject.GType, new_type: GObject.GType) => void
|
|
10942
10657
|
}
|
|
10943
10658
|
|
|
@@ -11100,7 +10815,7 @@ export interface DataHandlerIface {
|
|
|
11100
10815
|
get_value_from_str: (dh: DataHandler, str: string | null, type: GObject.GType) => any
|
|
11101
10816
|
get_sane_init_value: (dh: DataHandler, type: GObject.GType) => any | null
|
|
11102
10817
|
accepts_g_type: (dh: DataHandler, type: GObject.GType) => boolean
|
|
11103
|
-
get_descr: (dh: DataHandler) => string
|
|
10818
|
+
get_descr: (dh: DataHandler) => string
|
|
11104
10819
|
}
|
|
11105
10820
|
|
|
11106
10821
|
export abstract class DataHandlerIface {
|
|
@@ -11620,7 +11335,7 @@ export interface HolderClass {
|
|
|
11620
11335
|
changed: (holder: Holder) => void
|
|
11621
11336
|
source_changed: (holder: Holder) => void
|
|
11622
11337
|
validate_change: (holder: Holder, new_value: any) => GLib.Error
|
|
11623
|
-
att_changed: (holder: Holder, att_name: string
|
|
11338
|
+
att_changed: (holder: Holder, att_name: string, att_value: any) => void
|
|
11624
11339
|
}
|
|
11625
11340
|
|
|
11626
11341
|
export abstract class HolderClass {
|
|
@@ -11703,7 +11418,7 @@ export interface MetaContext {
|
|
|
11703
11418
|
* Get table's name to used in the context.
|
|
11704
11419
|
* @returns A string with the table's name used in the context.
|
|
11705
11420
|
*/
|
|
11706
|
-
get_table(): string
|
|
11421
|
+
get_table(): string
|
|
11707
11422
|
/**
|
|
11708
11423
|
* Sets a new column/value pair to the given context `ctx`. Column, must be a column in the given table's
|
|
11709
11424
|
* name setted by #gda_meta_context_set_table () (a table in the <link linkend="information_schema">database
|
|
@@ -11714,7 +11429,7 @@ export interface MetaContext {
|
|
|
11714
11429
|
* @param value the column's value
|
|
11715
11430
|
* @param cnc a #GdaConnection to be used when identifier are normalized, or NULL
|
|
11716
11431
|
*/
|
|
11717
|
-
set_column(column: string
|
|
11432
|
+
set_column(column: string, value: any, cnc: Connection | null): void
|
|
11718
11433
|
/**
|
|
11719
11434
|
* Set columns to use in the context. The #GHashTable use column's name as key and a #GValue as value,
|
|
11720
11435
|
* to represent its value.
|
|
@@ -11730,7 +11445,7 @@ export interface MetaContext {
|
|
|
11730
11445
|
* about database's tables.
|
|
11731
11446
|
* @param table a string with the table's name to use in context
|
|
11732
11447
|
*/
|
|
11733
|
-
set_table(table: string
|
|
11448
|
+
set_table(table: string): void
|
|
11734
11449
|
}
|
|
11735
11450
|
|
|
11736
11451
|
/**
|
|
@@ -12014,7 +11729,7 @@ export interface MetaTableColumn {
|
|
|
12014
11729
|
* @param attribute attribute name as a string
|
|
12015
11730
|
* @returns a read-only #GValue, or %NULL if not attribute named @attribute has been set for @column
|
|
12016
11731
|
*/
|
|
12017
|
-
get_attribute(attribute: string
|
|
11732
|
+
get_attribute(attribute: string): any
|
|
12018
11733
|
/**
|
|
12019
11734
|
* Set the value associated to a named attribute.
|
|
12020
11735
|
*
|
|
@@ -12028,7 +11743,7 @@ export interface MetaTableColumn {
|
|
|
12028
11743
|
* @param value a #GValue, or %NULL
|
|
12029
11744
|
* @param destroy function called when `attribute` has to be freed, or %NULL
|
|
12030
11745
|
*/
|
|
12031
|
-
set_attribute(attribute: string
|
|
11746
|
+
set_attribute(attribute: string, value: any | null, destroy: GLib.DestroyNotify | null): void
|
|
12032
11747
|
}
|
|
12033
11748
|
|
|
12034
11749
|
/**
|
|
@@ -12186,7 +11901,7 @@ export interface Numeric {
|
|
|
12186
11901
|
* Sets `numeric` with a number represented by `str,` in the C locale format (dot as a fraction separator).
|
|
12187
11902
|
* @param str a string representing a number, in the C locale format
|
|
12188
11903
|
*/
|
|
12189
|
-
set_from_string(str: string
|
|
11904
|
+
set_from_string(str: string): void
|
|
12190
11905
|
/**
|
|
12191
11906
|
* Sets the precision of a #GdaNumeric.
|
|
12192
11907
|
* @param precision a #glong
|
|
@@ -12313,7 +12028,7 @@ export interface QuarkList {
|
|
|
12313
12028
|
* @param string a string.
|
|
12314
12029
|
* @param cleanup whether to cleanup the previous content or not.
|
|
12315
12030
|
*/
|
|
12316
|
-
add_from_string(string: string
|
|
12031
|
+
add_from_string(string: string, cleanup: boolean): void
|
|
12317
12032
|
/**
|
|
12318
12033
|
* Removes all strings in the given #GdaQuarkList.
|
|
12319
12034
|
*/
|
|
@@ -12330,7 +12045,7 @@ export interface QuarkList {
|
|
|
12330
12045
|
* @param name the name of the value to search for.
|
|
12331
12046
|
* @returns the value associated with the given key if found, or %NULL if not found.
|
|
12332
12047
|
*/
|
|
12333
|
-
find(name: string
|
|
12048
|
+
find(name: string): string
|
|
12334
12049
|
/**
|
|
12335
12050
|
* Calls the given function for each of the key/value pairs in `qlist`. The function is passed the key and value
|
|
12336
12051
|
* of each pair, and the given user_data parameter. `qlist` may not be modified while iterating over it.
|
|
@@ -12350,7 +12065,7 @@ export interface QuarkList {
|
|
|
12350
12065
|
* Removes an entry from the #GdaQuarkList, given its name.
|
|
12351
12066
|
* @param name an entry name.
|
|
12352
12067
|
*/
|
|
12353
|
-
remove(name: string
|
|
12068
|
+
remove(name: string): void
|
|
12354
12069
|
}
|
|
12355
12070
|
|
|
12356
12071
|
export class QuarkList {
|
|
@@ -12393,7 +12108,7 @@ export class QuarkList {
|
|
|
12393
12108
|
* @param string a string.
|
|
12394
12109
|
* @returns the newly created #GdaQuarkList. Free-function: gda_quark_list_free
|
|
12395
12110
|
*/
|
|
12396
|
-
static new_from_string(string: string
|
|
12111
|
+
static new_from_string(string: string): QuarkList
|
|
12397
12112
|
}
|
|
12398
12113
|
|
|
12399
12114
|
export interface RepetitiveStatementClass {
|
|
@@ -12439,8 +12154,8 @@ export interface ServerOperationClass {
|
|
|
12439
12154
|
// Own fields of Gda-5.0.Gda.ServerOperationClass
|
|
12440
12155
|
|
|
12441
12156
|
parent_class: GObject.ObjectClass
|
|
12442
|
-
seq_item_added: (op: ServerOperation, seq_path: string
|
|
12443
|
-
seq_item_remove: (op: ServerOperation, seq_path: string
|
|
12157
|
+
seq_item_added: (op: ServerOperation, seq_path: string, item_index: number) => void
|
|
12158
|
+
seq_item_remove: (op: ServerOperation, seq_path: string, item_index: number) => void
|
|
12444
12159
|
}
|
|
12445
12160
|
|
|
12446
12161
|
export abstract class ServerOperationClass {
|
|
@@ -12486,31 +12201,31 @@ export interface ServerProviderClass {
|
|
|
12486
12201
|
|
|
12487
12202
|
parent_class: GObject.ObjectClass
|
|
12488
12203
|
limiting_thread: GLib.Thread
|
|
12489
|
-
get_name: (provider: ServerProvider) => string
|
|
12490
|
-
get_version: (provider: ServerProvider) => string
|
|
12491
|
-
get_server_version: (provider: ServerProvider, cnc: Connection) => string
|
|
12204
|
+
get_name: (provider: ServerProvider) => string
|
|
12205
|
+
get_version: (provider: ServerProvider) => string
|
|
12206
|
+
get_server_version: (provider: ServerProvider, cnc: Connection) => string
|
|
12492
12207
|
supports_feature: (provider: ServerProvider, cnc: Connection | null, feature: ConnectionFeature) => boolean
|
|
12493
|
-
get_def_dbms_type: (provider: ServerProvider, cnc: Connection, g_type: GObject.GType) => string
|
|
12494
|
-
escape_string: (provider: ServerProvider, cnc: Connection | null, str: string
|
|
12495
|
-
unescape_string: (provider: ServerProvider, cnc: Connection | null, str: string
|
|
12208
|
+
get_def_dbms_type: (provider: ServerProvider, cnc: Connection, g_type: GObject.GType) => string
|
|
12209
|
+
escape_string: (provider: ServerProvider, cnc: Connection | null, str: string) => string | null
|
|
12210
|
+
unescape_string: (provider: ServerProvider, cnc: Connection | null, str: string) => string | null
|
|
12496
12211
|
close_connection: (provider: ServerProvider, cnc: Connection) => boolean
|
|
12497
|
-
get_database: (provider: ServerProvider, cnc: Connection) => string
|
|
12212
|
+
get_database: (provider: ServerProvider, cnc: Connection) => string
|
|
12498
12213
|
supports_operation: (provider: ServerProvider, cnc: Connection | null, type: ServerOperationType, options: Set | null) => boolean
|
|
12499
12214
|
create_operation: (provider: ServerProvider, cnc: Connection | null, type: ServerOperationType, options: Set | null) => ServerOperation | null
|
|
12500
12215
|
render_operation: (provider: ServerProvider, cnc: Connection | null, op: ServerOperation) => string | null
|
|
12501
|
-
begin_transaction: (provider: ServerProvider, cnc: Connection, name: string
|
|
12502
|
-
commit_transaction: (provider: ServerProvider, cnc: Connection, name: string
|
|
12503
|
-
rollback_transaction: (provider: ServerProvider, cnc: Connection, name: string
|
|
12504
|
-
add_savepoint: (provider: ServerProvider, cnc: Connection, name: string
|
|
12505
|
-
rollback_savepoint: (provider: ServerProvider, cnc: Connection, name: string
|
|
12506
|
-
delete_savepoint: (provider: ServerProvider, cnc: Connection, name: string
|
|
12216
|
+
begin_transaction: (provider: ServerProvider, cnc: Connection, name: string, level: TransactionIsolation) => boolean
|
|
12217
|
+
commit_transaction: (provider: ServerProvider, cnc: Connection, name: string) => boolean
|
|
12218
|
+
rollback_transaction: (provider: ServerProvider, cnc: Connection, name: string) => boolean
|
|
12219
|
+
add_savepoint: (provider: ServerProvider, cnc: Connection, name: string) => boolean
|
|
12220
|
+
rollback_savepoint: (provider: ServerProvider, cnc: Connection, name: string) => boolean
|
|
12221
|
+
delete_savepoint: (provider: ServerProvider, cnc: Connection, name: string) => boolean
|
|
12507
12222
|
create_parser: (provider: ServerProvider, cnc: Connection | null) => SqlParser
|
|
12508
12223
|
statement_prepare: (provider: ServerProvider, cnc: Connection, stmt: Statement) => boolean
|
|
12509
12224
|
is_busy: (provider: ServerProvider, cnc: Connection) => boolean
|
|
12510
12225
|
cancel: (provider: ServerProvider, cnc: Connection, task_id: number) => boolean
|
|
12511
12226
|
meta_funcs: ServerProviderMeta
|
|
12512
12227
|
xa_funcs: ServerProviderXa
|
|
12513
|
-
identifier_quote: (provider: ServerProvider, cnc: Connection, id: string
|
|
12228
|
+
identifier_quote: (provider: ServerProvider, cnc: Connection, id: string, for_meta_store: boolean, force_quotes: boolean) => string | null
|
|
12514
12229
|
handle_async: (provider: ServerProvider, cnc: Connection) => boolean
|
|
12515
12230
|
}
|
|
12516
12231
|
|
|
@@ -12629,7 +12344,7 @@ export interface SetClass {
|
|
|
12629
12344
|
validate_holder_change: (set: Set, holder: Holder, new_value: any) => GLib.Error
|
|
12630
12345
|
validate_set: (set: Set) => GLib.Error
|
|
12631
12346
|
holder_changed: (set: Set, holder: Holder) => void
|
|
12632
|
-
holder_attr_changed: (set: Set, holder: Holder, attr_name: string
|
|
12347
|
+
holder_attr_changed: (set: Set, holder: Holder, attr_name: string, attr_value: any) => void
|
|
12633
12348
|
public_data_changed: (set: Set) => void
|
|
12634
12349
|
holder_type_set: (set: Set, holder: Holder) => void
|
|
12635
12350
|
source_model_changed: (set: Set, source: SetSource) => void
|
|
@@ -13163,8 +12878,8 @@ export class SqlOperation {
|
|
|
13163
12878
|
|
|
13164
12879
|
// Constructors of Gda-5.0.Gda.SqlOperation
|
|
13165
12880
|
|
|
13166
|
-
static operator_from_string(op: string
|
|
13167
|
-
static operator_to_string(op: SqlOperatorType): string
|
|
12881
|
+
static operator_from_string(op: string): SqlOperatorType
|
|
12882
|
+
static operator_to_string(op: SqlOperatorType): string
|
|
13168
12883
|
}
|
|
13169
12884
|
|
|
13170
12885
|
export interface SqlParserClass {
|
|
@@ -13402,7 +13117,7 @@ export class SqlSelectJoin {
|
|
|
13402
13117
|
|
|
13403
13118
|
// Constructors of Gda-5.0.Gda.SqlSelectJoin
|
|
13404
13119
|
|
|
13405
|
-
static type_to_string(type: SqlSelectJoinType): string
|
|
13120
|
+
static type_to_string(type: SqlSelectJoinType): string
|
|
13406
13121
|
}
|
|
13407
13122
|
|
|
13408
13123
|
export interface SqlSelectOrder {
|
|
@@ -13952,7 +13667,7 @@ export interface TreeClass {
|
|
|
13952
13667
|
node_changed: (tree: Tree, node: TreeNode) => void
|
|
13953
13668
|
node_inserted: (tree: Tree, node: TreeNode) => void
|
|
13954
13669
|
node_has_child_toggled: (tree: Tree, node: TreeNode) => void
|
|
13955
|
-
node_deleted: (tree: Tree, node_path: string
|
|
13670
|
+
node_deleted: (tree: Tree, node_path: string) => void
|
|
13956
13671
|
}
|
|
13957
13672
|
|
|
13958
13673
|
export abstract class TreeClass {
|
|
@@ -14138,9 +13853,9 @@ export interface TreeNodeClass {
|
|
|
14138
13853
|
node_changed: (reporting: TreeNode, node: TreeNode) => void
|
|
14139
13854
|
node_inserted: (reporting: TreeNode, node: TreeNode) => void
|
|
14140
13855
|
node_has_child_toggled: (reporting: TreeNode, node: TreeNode) => void
|
|
14141
|
-
node_deleted: (reporting: TreeNode, relative_path: string
|
|
13856
|
+
node_deleted: (reporting: TreeNode, relative_path: string) => void
|
|
14142
13857
|
dump_header: (node: TreeNode) => string | null
|
|
14143
|
-
dump_children: (node: TreeNode, prefix: string
|
|
13858
|
+
dump_children: (node: TreeNode, prefix: string, in_string: GLib.String) => void
|
|
14144
13859
|
}
|
|
14145
13860
|
|
|
14146
13861
|
export abstract class TreeNodeClass {
|