@girs/gda-5.0 5.0.0-3.2.5 → 5.0.0-3.2.7
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.d.cts +521 -236
- package/gda-5.0.d.ts +521 -236
- package/package.json +5 -5
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
|
|
|
@@ -3051,6 +3051,14 @@ export module Config {
|
|
|
3051
3051
|
* File to use for per-user DSN list. When changed, the whole list of DSN will be reloaded.
|
|
3052
3052
|
*/
|
|
3053
3053
|
user_filename?: string | null
|
|
3054
|
+
/**
|
|
3055
|
+
* File to use for system-wide DSN list. When changed, the whole list of DSN will be reloaded.
|
|
3056
|
+
*/
|
|
3057
|
+
systemFilename?: string | null
|
|
3058
|
+
/**
|
|
3059
|
+
* File to use for per-user DSN list. When changed, the whole list of DSN will be reloaded.
|
|
3060
|
+
*/
|
|
3061
|
+
userFilename?: string | null
|
|
3054
3062
|
}
|
|
3055
3063
|
|
|
3056
3064
|
}
|
|
@@ -3063,10 +3071,18 @@ export interface Config {
|
|
|
3063
3071
|
* File to use for system-wide DSN list. When changed, the whole list of DSN will be reloaded.
|
|
3064
3072
|
*/
|
|
3065
3073
|
system_filename: string | null
|
|
3074
|
+
/**
|
|
3075
|
+
* File to use for system-wide DSN list. When changed, the whole list of DSN will be reloaded.
|
|
3076
|
+
*/
|
|
3077
|
+
systemFilename: string | null
|
|
3066
3078
|
/**
|
|
3067
3079
|
* File to use for per-user DSN list. When changed, the whole list of DSN will be reloaded.
|
|
3068
3080
|
*/
|
|
3069
3081
|
user_filename: string | null
|
|
3082
|
+
/**
|
|
3083
|
+
* File to use for per-user DSN list. When changed, the whole list of DSN will be reloaded.
|
|
3084
|
+
*/
|
|
3085
|
+
userFilename: string | null
|
|
3070
3086
|
|
|
3071
3087
|
// Own fields of Gda-5.0.Gda.Config
|
|
3072
3088
|
|
|
@@ -3140,7 +3156,7 @@ export class Config extends GObject.Object {
|
|
|
3140
3156
|
* @param dsn_name the name of a DSN, in the "[<username>[:<password>]`]`<DSN>" format
|
|
3141
3157
|
* @returns TRUE if an authentication is needed
|
|
3142
3158
|
*/
|
|
3143
|
-
static dsn_needs_authentication(dsn_name: string
|
|
3159
|
+
static dsn_needs_authentication(dsn_name: string): boolean
|
|
3144
3160
|
static error_quark(): GLib.Quark
|
|
3145
3161
|
/**
|
|
3146
3162
|
* Get a pointer to the global (unique) #GdaConfig object. This functions increments
|
|
@@ -3157,7 +3173,7 @@ export class Config extends GObject.Object {
|
|
|
3157
3173
|
* @param dsn_name the name of the DSN to look for
|
|
3158
3174
|
* @returns a pointer to read-only #GdaDsnInfo structure, or %NULL if not found
|
|
3159
3175
|
*/
|
|
3160
|
-
static get_dsn_info(dsn_name: string
|
|
3176
|
+
static get_dsn_info(dsn_name: string): DsnInfo
|
|
3161
3177
|
/**
|
|
3162
3178
|
* Get a pointer to a read-only #GdaDsnInfo at the `index` position
|
|
3163
3179
|
* @param index an index
|
|
@@ -3169,7 +3185,7 @@ export class Config extends GObject.Object {
|
|
|
3169
3185
|
* @param dsn_name a DSN
|
|
3170
3186
|
* @returns the index or -1 if not found
|
|
3171
3187
|
*/
|
|
3172
|
-
static get_dsn_info_index(dsn_name: string
|
|
3188
|
+
static get_dsn_info_index(dsn_name: string): number
|
|
3173
3189
|
/**
|
|
3174
3190
|
* Get the number of defined DSN
|
|
3175
3191
|
* @returns the number of defined DSN
|
|
@@ -3184,13 +3200,13 @@ export class Config extends GObject.Object {
|
|
|
3184
3200
|
* @param provider_name a database provider
|
|
3185
3201
|
* @returns a pointer to the #GdaServerProvider, or %NULL if an error occurred
|
|
3186
3202
|
*/
|
|
3187
|
-
static get_provider(provider_name: string
|
|
3203
|
+
static get_provider(provider_name: string): ServerProvider
|
|
3188
3204
|
/**
|
|
3189
3205
|
* Get some information about the a database provider (adapter) named
|
|
3190
3206
|
* @param provider_name a database provider
|
|
3191
3207
|
* @returns a pointer to read-only #GdaProviderInfo structure, or %NULL if not found
|
|
3192
3208
|
*/
|
|
3193
|
-
static get_provider_info(provider_name: string
|
|
3209
|
+
static get_provider_info(provider_name: string): ProviderInfo
|
|
3194
3210
|
/**
|
|
3195
3211
|
* Get a #GdaDataModel representing all the configured DSN, and keeping itself up to date with
|
|
3196
3212
|
* the changes in the declared DSN.
|
|
@@ -3227,7 +3243,7 @@ export class Config extends GObject.Object {
|
|
|
3227
3243
|
* @param dsn_name the name of the DSN to remove
|
|
3228
3244
|
* @returns TRUE if no error occurred
|
|
3229
3245
|
*/
|
|
3230
|
-
static remove_dsn(dsn_name: string
|
|
3246
|
+
static remove_dsn(dsn_name: string): boolean
|
|
3231
3247
|
}
|
|
3232
3248
|
|
|
3233
3249
|
export module Connection {
|
|
@@ -3320,6 +3336,41 @@ export module Connection {
|
|
|
3320
3336
|
monitor_wrapped_in_mainloop?: boolean | null
|
|
3321
3337
|
provider?: ServerProvider | null
|
|
3322
3338
|
thread_owner?: any | null
|
|
3339
|
+
authString?: string | null
|
|
3340
|
+
cncString?: string | null
|
|
3341
|
+
/**
|
|
3342
|
+
* Defines the number of #GdaConnectionEvent objects kept in memory which can
|
|
3343
|
+
* be fetched using gda_connection_get_events().
|
|
3344
|
+
*/
|
|
3345
|
+
eventsHistorySize?: number | null
|
|
3346
|
+
/**
|
|
3347
|
+
* Artificially slows down the execution of queries. This property can be used to
|
|
3348
|
+
* debug some problems. If non zero, this value is the number of microseconds waited before actually
|
|
3349
|
+
* executing each query.
|
|
3350
|
+
*/
|
|
3351
|
+
executionSlowdown?: number | null
|
|
3352
|
+
/**
|
|
3353
|
+
* Computes execution times for each statement executed.
|
|
3354
|
+
*/
|
|
3355
|
+
executionTimer?: boolean | null
|
|
3356
|
+
/**
|
|
3357
|
+
* This property, if set to %TRUE, specifies that the connection is not a real connection, but rather
|
|
3358
|
+
* a #GdaConnection object which "proxies" all the calls to another connection which executes in a sub
|
|
3359
|
+
* thread.
|
|
3360
|
+
*
|
|
3361
|
+
* Note: this property is used internally by Libgda and should not be directly used by any programs. Setting
|
|
3362
|
+
* this property has no effect, reading it is supported, though.
|
|
3363
|
+
*/
|
|
3364
|
+
isWrapper?: boolean | null
|
|
3365
|
+
metaStore?: MetaStore | null
|
|
3366
|
+
/**
|
|
3367
|
+
* Useful only when there is a mainloop and when the connection acts as a thread wrapper around another connection,
|
|
3368
|
+
* it sets up a timeout to handle signals coming from the wrapped connection.
|
|
3369
|
+
*
|
|
3370
|
+
* If the connection is not a thread wrapper, then this property has no effect.
|
|
3371
|
+
*/
|
|
3372
|
+
monitorWrappedInMainloop?: boolean | null
|
|
3373
|
+
threadOwner?: any | null
|
|
3323
3374
|
}
|
|
3324
3375
|
|
|
3325
3376
|
}
|
|
@@ -3329,23 +3380,40 @@ export interface Connection extends Lockable {
|
|
|
3329
3380
|
// Own properties of Gda-5.0.Gda.Connection
|
|
3330
3381
|
|
|
3331
3382
|
auth_string: string | null
|
|
3383
|
+
authString: string | null
|
|
3332
3384
|
cnc_string: string | null
|
|
3385
|
+
cncString: string | null
|
|
3333
3386
|
dsn: string | null
|
|
3334
3387
|
/**
|
|
3335
3388
|
* Defines the number of #GdaConnectionEvent objects kept in memory which can
|
|
3336
3389
|
* be fetched using gda_connection_get_events().
|
|
3337
3390
|
*/
|
|
3338
3391
|
events_history_size: number
|
|
3392
|
+
/**
|
|
3393
|
+
* Defines the number of #GdaConnectionEvent objects kept in memory which can
|
|
3394
|
+
* be fetched using gda_connection_get_events().
|
|
3395
|
+
*/
|
|
3396
|
+
eventsHistorySize: number
|
|
3339
3397
|
/**
|
|
3340
3398
|
* Artificially slows down the execution of queries. This property can be used to
|
|
3341
3399
|
* debug some problems. If non zero, this value is the number of microseconds waited before actually
|
|
3342
3400
|
* executing each query.
|
|
3343
3401
|
*/
|
|
3344
3402
|
execution_slowdown: number
|
|
3403
|
+
/**
|
|
3404
|
+
* Artificially slows down the execution of queries. This property can be used to
|
|
3405
|
+
* debug some problems. If non zero, this value is the number of microseconds waited before actually
|
|
3406
|
+
* executing each query.
|
|
3407
|
+
*/
|
|
3408
|
+
executionSlowdown: number
|
|
3345
3409
|
/**
|
|
3346
3410
|
* Computes execution times for each statement executed.
|
|
3347
3411
|
*/
|
|
3348
3412
|
execution_timer: boolean
|
|
3413
|
+
/**
|
|
3414
|
+
* Computes execution times for each statement executed.
|
|
3415
|
+
*/
|
|
3416
|
+
executionTimer: boolean
|
|
3349
3417
|
/**
|
|
3350
3418
|
* This property, if set to %TRUE, specifies that the connection is not a real connection, but rather
|
|
3351
3419
|
* a #GdaConnection object which "proxies" all the calls to another connection which executes in a sub
|
|
@@ -3355,7 +3423,17 @@ export interface Connection extends Lockable {
|
|
|
3355
3423
|
* this property has no effect, reading it is supported, though.
|
|
3356
3424
|
*/
|
|
3357
3425
|
is_wrapper: boolean
|
|
3426
|
+
/**
|
|
3427
|
+
* This property, if set to %TRUE, specifies that the connection is not a real connection, but rather
|
|
3428
|
+
* a #GdaConnection object which "proxies" all the calls to another connection which executes in a sub
|
|
3429
|
+
* thread.
|
|
3430
|
+
*
|
|
3431
|
+
* Note: this property is used internally by Libgda and should not be directly used by any programs. Setting
|
|
3432
|
+
* this property has no effect, reading it is supported, though.
|
|
3433
|
+
*/
|
|
3434
|
+
isWrapper: boolean
|
|
3358
3435
|
meta_store: MetaStore
|
|
3436
|
+
metaStore: MetaStore
|
|
3359
3437
|
/**
|
|
3360
3438
|
* Useful only when there is a mainloop and when the connection acts as a thread wrapper around another connection,
|
|
3361
3439
|
* it sets up a timeout to handle signals coming from the wrapped connection.
|
|
@@ -3363,8 +3441,16 @@ export interface Connection extends Lockable {
|
|
|
3363
3441
|
* If the connection is not a thread wrapper, then this property has no effect.
|
|
3364
3442
|
*/
|
|
3365
3443
|
monitor_wrapped_in_mainloop: boolean
|
|
3444
|
+
/**
|
|
3445
|
+
* Useful only when there is a mainloop and when the connection acts as a thread wrapper around another connection,
|
|
3446
|
+
* it sets up a timeout to handle signals coming from the wrapped connection.
|
|
3447
|
+
*
|
|
3448
|
+
* If the connection is not a thread wrapper, then this property has no effect.
|
|
3449
|
+
*/
|
|
3450
|
+
monitorWrappedInMainloop: boolean
|
|
3366
3451
|
provider: ServerProvider
|
|
3367
3452
|
thread_owner: any
|
|
3453
|
+
threadOwner: any
|
|
3368
3454
|
|
|
3369
3455
|
// Own fields of Gda-5.0.Gda.Connection
|
|
3370
3456
|
|
|
@@ -3532,7 +3618,7 @@ export interface Connection extends Lockable {
|
|
|
3532
3618
|
* @param condition_value the `condition_column_type'`s GType
|
|
3533
3619
|
* @returns TRUE if no error occurred, FALSE otherwise
|
|
3534
3620
|
*/
|
|
3535
|
-
delete_row_from_table(table: string
|
|
3621
|
+
delete_row_from_table(table: string, condition_column_name: string, condition_value: any): boolean
|
|
3536
3622
|
/**
|
|
3537
3623
|
* Delete the SAVEPOINT named `name` when not used anymore.
|
|
3538
3624
|
* @param name name of the savepoint to delete
|
|
@@ -3545,18 +3631,18 @@ export interface Connection extends Lockable {
|
|
|
3545
3631
|
* @param sql a query statement that must not begin with "SELECT"
|
|
3546
3632
|
* @returns the number of rows affected or -1, or -2
|
|
3547
3633
|
*/
|
|
3548
|
-
execute_non_select_command(sql: string
|
|
3634
|
+
execute_non_select_command(sql: string): number
|
|
3549
3635
|
/**
|
|
3550
3636
|
* Execute a SQL SELECT command over an opened connection.
|
|
3551
3637
|
* @param sql a query statement that must begin with "SELECT"
|
|
3552
3638
|
* @returns a new #GdaDataModel if successful, %NULL otherwise
|
|
3553
3639
|
*/
|
|
3554
|
-
execute_select_command(sql: string
|
|
3640
|
+
execute_select_command(sql: string): DataModel
|
|
3555
3641
|
/**
|
|
3556
3642
|
* Gets the user name used to open this connection.
|
|
3557
3643
|
* @returns the user name.
|
|
3558
3644
|
*/
|
|
3559
|
-
get_authentication(): string
|
|
3645
|
+
get_authentication(): string
|
|
3560
3646
|
/**
|
|
3561
3647
|
* Gets the connection string used to open this connection.
|
|
3562
3648
|
*
|
|
@@ -3565,13 +3651,13 @@ export interface Connection extends Lockable {
|
|
|
3565
3651
|
* to open a connection on the underlying data source.
|
|
3566
3652
|
* @returns the connection string used when opening the connection.
|
|
3567
3653
|
*/
|
|
3568
|
-
get_cnc_string(): string
|
|
3654
|
+
get_cnc_string(): string
|
|
3569
3655
|
/**
|
|
3570
3656
|
* This function allows you to determine the actual format for the date values.
|
|
3571
3657
|
* @returns %TRUE if no error occurred
|
|
3572
3658
|
*/
|
|
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
|
|
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
|
|
3575
3661
|
/**
|
|
3576
3662
|
* Retrieves a list of the last errors occurred during the connection. The returned list is
|
|
3577
3663
|
* chronologically ordered such as that the most recent event is the #GdaConnectionEvent of the first node.
|
|
@@ -3613,7 +3699,7 @@ export interface Connection extends Lockable {
|
|
|
3613
3699
|
* Gets the name (identifier) of the database provider used by `cnc`
|
|
3614
3700
|
* @returns a non modifiable string
|
|
3615
3701
|
*/
|
|
3616
|
-
get_provider_name(): string
|
|
3702
|
+
get_provider_name(): string
|
|
3617
3703
|
/**
|
|
3618
3704
|
* Get the status of `cnc` regarding transactions. The returned object should not be modified
|
|
3619
3705
|
* or destroyed; however it may be modified or destroyed by the connection itself.
|
|
@@ -3634,7 +3720,7 @@ export interface Connection extends Lockable {
|
|
|
3634
3720
|
* @param values a list of values (as #GValue)
|
|
3635
3721
|
* @returns TRUE if no error occurred, FALSE otherwise
|
|
3636
3722
|
*/
|
|
3637
|
-
insert_row_into_table_v(table: string
|
|
3723
|
+
insert_row_into_table_v(table: string, col_names: string[], values: any[]): boolean
|
|
3638
3724
|
/**
|
|
3639
3725
|
* Checks whether a connection is open or not.
|
|
3640
3726
|
* @returns %TRUE if the connection is open, %FALSE if it's not.
|
|
@@ -3650,7 +3736,7 @@ export interface Connection extends Lockable {
|
|
|
3650
3736
|
* @param sql an SQL command to parse, not %NULL
|
|
3651
3737
|
* @returns a #GdaStatement representing the SQL command, or %NULL if an error occurred
|
|
3652
3738
|
*/
|
|
3653
|
-
parse_sql_string(sql: string
|
|
3739
|
+
parse_sql_string(sql: string): [ /* returnType */ Statement, /* params */ Set ]
|
|
3654
3740
|
/**
|
|
3655
3741
|
* Performs the operation described by `op` (which should have been created using
|
|
3656
3742
|
* gda_connection_create_operation()). It is a wrapper around the gda_server_provider_perform_operation()
|
|
@@ -3685,7 +3771,7 @@ export interface Connection extends Lockable {
|
|
|
3685
3771
|
* @param id an SQL identifier
|
|
3686
3772
|
* @returns a new string, to free with g_free() once not needed anymore
|
|
3687
3773
|
*/
|
|
3688
|
-
quote_sql_identifier(id: string
|
|
3774
|
+
quote_sql_identifier(id: string): string | null
|
|
3689
3775
|
/**
|
|
3690
3776
|
* Executes the statement upon which `rstmt` is built. Note that as several statements can actually be executed by this
|
|
3691
3777
|
* method, it is recommended to be within a transaction.
|
|
@@ -3912,7 +3998,7 @@ export interface Connection extends Lockable {
|
|
|
3912
3998
|
* @param values a list of values (as #GValue)
|
|
3913
3999
|
* @returns TRUE if no error occurred, FALSE otherwise
|
|
3914
4000
|
*/
|
|
3915
|
-
update_row_in_table_v(table: string
|
|
4001
|
+
update_row_in_table_v(table: string, condition_column_name: string, condition_value: any, col_names: string[], values: any[]): boolean
|
|
3916
4002
|
/**
|
|
3917
4003
|
* Produces a fully quoted and escaped string from a GValue
|
|
3918
4004
|
* @param from #GValue to convert from
|
|
@@ -4010,7 +4096,7 @@ export class Connection extends GObject.Object {
|
|
|
4010
4096
|
* @param options options for the connection (see #GdaConnectionOptions).
|
|
4011
4097
|
* @returns a new #GdaConnection if connection opening was successful or %NULL if there was an error.
|
|
4012
4098
|
*/
|
|
4013
|
-
static new_from_dsn(dsn: string
|
|
4099
|
+
static new_from_dsn(dsn: string, auth_string: string | null, options: ConnectionOptions): Connection
|
|
4014
4100
|
/**
|
|
4015
4101
|
* This function is similar to gda_connection_open_from_string(), except it does not actually open the
|
|
4016
4102
|
* connection, you have to open it using gda_connection_open().
|
|
@@ -4021,7 +4107,7 @@ export class Connection extends GObject.Object {
|
|
|
4021
4107
|
* @param options options for the connection (see #GdaConnectionOptions).
|
|
4022
4108
|
* @returns a new #GdaConnection if connection opening was successful or %NULL if there was an error.
|
|
4023
4109
|
*/
|
|
4024
|
-
static new_from_string(provider_name: string | null, cnc_string: string
|
|
4110
|
+
static new_from_string(provider_name: string | null, cnc_string: string, auth_string: string | null, options: ConnectionOptions): Connection
|
|
4025
4111
|
_init(config?: Connection.ConstructorProperties): void
|
|
4026
4112
|
static error_quark(): GLib.Quark
|
|
4027
4113
|
/**
|
|
@@ -4051,7 +4137,7 @@ export class Connection extends GObject.Object {
|
|
|
4051
4137
|
* @param options options for the connection (see #GdaConnectionOptions).
|
|
4052
4138
|
* @returns a new #GdaConnection if connection opening was successful or %NULL if there was an error.
|
|
4053
4139
|
*/
|
|
4054
|
-
static open_from_dsn(dsn: string
|
|
4140
|
+
static open_from_dsn(dsn: string, auth_string: string | null, options: ConnectionOptions): Connection
|
|
4055
4141
|
/**
|
|
4056
4142
|
* Opens a connection given a provider ID and a connection string. This
|
|
4057
4143
|
* allows applications to open connections without having to create
|
|
@@ -4096,7 +4182,7 @@ export class Connection extends GObject.Object {
|
|
|
4096
4182
|
* @param options options for the connection (see #GdaConnectionOptions).
|
|
4097
4183
|
* @returns a new #GdaConnection if connection opening was successful or %NULL if there was an error.
|
|
4098
4184
|
*/
|
|
4099
|
-
static open_from_string(provider_name: string | null, cnc_string: string
|
|
4185
|
+
static open_from_string(provider_name: string | null, cnc_string: string, auth_string: string | null, options: ConnectionOptions): Connection
|
|
4100
4186
|
/**
|
|
4101
4187
|
* Opens an SQLite connection even if the SQLite provider is not installed,
|
|
4102
4188
|
* to be used by database providers which need a temporary database to store
|
|
@@ -4106,7 +4192,7 @@ export class Connection extends GObject.Object {
|
|
|
4106
4192
|
* @param auto_unlink if %TRUE, then the database file will be removed afterwards
|
|
4107
4193
|
* @returns a new #GdaConnection, or %NULL if an error occurred
|
|
4108
4194
|
*/
|
|
4109
|
-
static open_sqlite(directory: string | null, filename: string
|
|
4195
|
+
static open_sqlite(directory: string | null, filename: string, auto_unlink: boolean): Connection
|
|
4110
4196
|
/**
|
|
4111
4197
|
* Extract the provider, connection parameters, username and password from `string`.
|
|
4112
4198
|
* in `string,` the various parts are strings
|
|
@@ -4138,7 +4224,7 @@ export class Connection extends GObject.Object {
|
|
|
4138
4224
|
* @param out_username a place to store the new string containing the <username> part
|
|
4139
4225
|
* @param out_password a place to store the new string containing the <password> part, or %NULL
|
|
4140
4226
|
*/
|
|
4141
|
-
static string_split(string: string
|
|
4227
|
+
static string_split(string: string, out_cnc_params: string | null, out_provider: string | null, out_username: string | null, out_password: string | null): void
|
|
4142
4228
|
}
|
|
4143
4229
|
|
|
4144
4230
|
export module ConnectionEvent {
|
|
@@ -4173,7 +4259,7 @@ export interface ConnectionEvent {
|
|
|
4173
4259
|
* the the description is the SQL of the command.
|
|
4174
4260
|
* @returns @event's description.
|
|
4175
4261
|
*/
|
|
4176
|
-
get_description(): string
|
|
4262
|
+
get_description(): string
|
|
4177
4263
|
/**
|
|
4178
4264
|
* Get `event'`s severity (from a simple notice to a fatal event)
|
|
4179
4265
|
* @returns the event type
|
|
@@ -4184,14 +4270,14 @@ export interface ConnectionEvent {
|
|
|
4184
4270
|
* @returns the #GdaConnectionEventCode event's code
|
|
4185
4271
|
*/
|
|
4186
4272
|
get_gda_code(): ConnectionEventCode
|
|
4187
|
-
get_source(): string
|
|
4273
|
+
get_source(): string
|
|
4188
4274
|
/**
|
|
4189
4275
|
* Get the SQLSTATE value of `event`. Even though the SQLSTATE values are specified by ANSI SQL and ODBC,
|
|
4190
4276
|
* consult each DBMS for the possible values. However, the "00000" (success) value means that there is no error,
|
|
4191
4277
|
* and the "HY000" (general error) value means an error but no better error code available.
|
|
4192
4278
|
* @returns @event's SQL state.
|
|
4193
4279
|
*/
|
|
4194
|
-
get_sqlstate(): string
|
|
4280
|
+
get_sqlstate(): string
|
|
4195
4281
|
/**
|
|
4196
4282
|
* Sets `event'`s code: the code is specific to the provider being used.
|
|
4197
4283
|
* If you want to have a common understanding of the event codes, use
|
|
@@ -4225,14 +4311,14 @@ export interface ConnectionEvent {
|
|
|
4225
4311
|
* Sets `event'`s `source;` this function should not be called directly
|
|
4226
4312
|
* @param source a source.
|
|
4227
4313
|
*/
|
|
4228
|
-
set_source(source: string
|
|
4314
|
+
set_source(source: string): void
|
|
4229
4315
|
/**
|
|
4230
4316
|
* Changes the SQLSTATE code of `event,` this function should not be called directly
|
|
4231
4317
|
*
|
|
4232
4318
|
* Sets `event'`s SQL state.
|
|
4233
4319
|
* @param sqlstate SQL state.
|
|
4234
4320
|
*/
|
|
4235
|
-
set_sqlstate(sqlstate: string
|
|
4321
|
+
set_sqlstate(sqlstate: string): void
|
|
4236
4322
|
|
|
4237
4323
|
// Class property signals of Gda-5.0.Gda.ConnectionEvent
|
|
4238
4324
|
|
|
@@ -4357,6 +4443,8 @@ export module DataComparator {
|
|
|
4357
4443
|
|
|
4358
4444
|
new_model?: DataModel | null
|
|
4359
4445
|
old_model?: DataModel | null
|
|
4446
|
+
newModel?: DataModel | null
|
|
4447
|
+
oldModel?: DataModel | null
|
|
4360
4448
|
}
|
|
4361
4449
|
|
|
4362
4450
|
}
|
|
@@ -4366,7 +4454,9 @@ export interface DataComparator {
|
|
|
4366
4454
|
// Own properties of Gda-5.0.Gda.DataComparator
|
|
4367
4455
|
|
|
4368
4456
|
new_model: DataModel
|
|
4457
|
+
newModel: DataModel
|
|
4369
4458
|
old_model: DataModel
|
|
4459
|
+
oldModel: DataModel
|
|
4370
4460
|
|
|
4371
4461
|
// Own fields of Gda-5.0.Gda.DataComparator
|
|
4372
4462
|
|
|
@@ -4470,6 +4560,8 @@ export module DataModelArray {
|
|
|
4470
4560
|
|
|
4471
4561
|
n_columns?: number | null
|
|
4472
4562
|
read_only?: boolean | null
|
|
4563
|
+
nColumns?: number | null
|
|
4564
|
+
readOnly?: boolean | null
|
|
4473
4565
|
}
|
|
4474
4566
|
|
|
4475
4567
|
}
|
|
@@ -4479,7 +4571,9 @@ export interface DataModelArray extends DataModel {
|
|
|
4479
4571
|
// Own properties of Gda-5.0.Gda.DataModelArray
|
|
4480
4572
|
|
|
4481
4573
|
n_columns: number
|
|
4574
|
+
nColumns: number
|
|
4482
4575
|
read_only: boolean
|
|
4576
|
+
readOnly: boolean
|
|
4483
4577
|
|
|
4484
4578
|
// Own fields of Gda-5.0.Gda.DataModelArray
|
|
4485
4579
|
|
|
@@ -4604,7 +4698,7 @@ export class DataModelDir extends GObject.Object {
|
|
|
4604
4698
|
* @param basedir a directory
|
|
4605
4699
|
* @returns a new #GdaDataModel
|
|
4606
4700
|
*/
|
|
4607
|
-
static new(basedir: string
|
|
4701
|
+
static new(basedir: string): DataModel
|
|
4608
4702
|
}
|
|
4609
4703
|
|
|
4610
4704
|
export module DataModelImport {
|
|
@@ -4642,6 +4736,19 @@ export module DataModelImport {
|
|
|
4642
4736
|
* Data to import, as a pointer to an XML node (a #xmlNodePtr).
|
|
4643
4737
|
*/
|
|
4644
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
|
+
/**
|
|
4749
|
+
* Data to import, as a pointer to an XML node (a #xmlNodePtr).
|
|
4750
|
+
*/
|
|
4751
|
+
xmlNode?: any | null
|
|
4645
4752
|
}
|
|
4646
4753
|
|
|
4647
4754
|
}
|
|
@@ -4654,6 +4761,10 @@ export interface DataModelImport extends DataModel {
|
|
|
4654
4761
|
* Data to import, as a string.
|
|
4655
4762
|
*/
|
|
4656
4763
|
readonly data_string: string | null
|
|
4764
|
+
/**
|
|
4765
|
+
* Data to import, as a string.
|
|
4766
|
+
*/
|
|
4767
|
+
readonly dataString: string | null
|
|
4657
4768
|
/**
|
|
4658
4769
|
* Name of the file to import.
|
|
4659
4770
|
*/
|
|
@@ -4667,6 +4778,11 @@ export interface DataModelImport extends DataModel {
|
|
|
4667
4778
|
* access will have to be done using a cursor.
|
|
4668
4779
|
*/
|
|
4669
4780
|
readonly random_access: boolean
|
|
4781
|
+
/**
|
|
4782
|
+
* Defines if the data model will be accessed randomly or through a cursor. If set to %FALSE,
|
|
4783
|
+
* access will have to be done using a cursor.
|
|
4784
|
+
*/
|
|
4785
|
+
readonly randomAccess: boolean
|
|
4670
4786
|
/**
|
|
4671
4787
|
* Defines the behaviour in case the imported data contains recoverable errors (usually too
|
|
4672
4788
|
* many or too few data per row). If set to %TRUE, an error will be reported and the import
|
|
@@ -4677,6 +4793,10 @@ export interface DataModelImport extends DataModel {
|
|
|
4677
4793
|
* Data to import, as a pointer to an XML node (a #xmlNodePtr).
|
|
4678
4794
|
*/
|
|
4679
4795
|
readonly xml_node: any
|
|
4796
|
+
/**
|
|
4797
|
+
* Data to import, as a pointer to an XML node (a #xmlNodePtr).
|
|
4798
|
+
*/
|
|
4799
|
+
readonly xmlNode: any
|
|
4680
4800
|
|
|
4681
4801
|
// Own fields of Gda-5.0.Gda.DataModelImport
|
|
4682
4802
|
|
|
@@ -4756,7 +4876,7 @@ export class DataModelImport extends GObject.Object {
|
|
|
4756
4876
|
* @param options importing options
|
|
4757
4877
|
* @returns a pointer to the newly created #GdaDataModel.
|
|
4758
4878
|
*/
|
|
4759
|
-
static new_file(filename: string
|
|
4879
|
+
static new_file(filename: string, random_access: boolean, options: Set | null): DataModel
|
|
4760
4880
|
/**
|
|
4761
4881
|
* Creates a new #GdaDataModel object which contains the data stored in the `data` string.
|
|
4762
4882
|
*
|
|
@@ -4767,7 +4887,7 @@ export class DataModelImport extends GObject.Object {
|
|
|
4767
4887
|
* @param options importing options, see gda_data_model_import_new_file() for more information
|
|
4768
4888
|
* @returns a pointer to the newly created #GdaDataModel.
|
|
4769
4889
|
*/
|
|
4770
|
-
static new_mem(data: string
|
|
4890
|
+
static new_mem(data: string, random_access: boolean, options: Set | null): DataModel
|
|
4771
4891
|
/**
|
|
4772
4892
|
* Creates a new #GdaDataModel and loads the data in `node`. The resulting data model
|
|
4773
4893
|
* can be accessed in a random way.
|
|
@@ -4806,6 +4926,10 @@ export module DataModelIter {
|
|
|
4806
4926
|
data_model?: DataModel | null
|
|
4807
4927
|
forced_model?: DataModel | null
|
|
4808
4928
|
update_model?: boolean | null
|
|
4929
|
+
currentRow?: number | null
|
|
4930
|
+
dataModel?: DataModel | null
|
|
4931
|
+
forcedModel?: DataModel | null
|
|
4932
|
+
updateModel?: boolean | null
|
|
4809
4933
|
}
|
|
4810
4934
|
|
|
4811
4935
|
}
|
|
@@ -4815,9 +4939,13 @@ export interface DataModelIter {
|
|
|
4815
4939
|
// Own properties of Gda-5.0.Gda.DataModelIter
|
|
4816
4940
|
|
|
4817
4941
|
current_row: number
|
|
4942
|
+
currentRow: number
|
|
4818
4943
|
data_model: DataModel
|
|
4944
|
+
dataModel: DataModel
|
|
4819
4945
|
forced_model: DataModel
|
|
4946
|
+
forcedModel: DataModel
|
|
4820
4947
|
update_model: boolean
|
|
4948
|
+
updateModel: boolean
|
|
4821
4949
|
|
|
4822
4950
|
// Own fields of Gda-5.0.Gda.DataModelIter
|
|
4823
4951
|
|
|
@@ -4862,7 +4990,7 @@ export interface DataModelIter {
|
|
|
4862
4990
|
* @param field_name the requested column name
|
|
4863
4991
|
* @returns the #GValue, or %NULL
|
|
4864
4992
|
*/
|
|
4865
|
-
get_value_for_field(field_name: string
|
|
4993
|
+
get_value_for_field(field_name: string): any | null
|
|
4866
4994
|
/**
|
|
4867
4995
|
* Declare all the parameters in `iter` invalid, without modifying the
|
|
4868
4996
|
* #GdaDataModel `iter` is for or changing the row it represents. This method
|
|
@@ -5185,7 +5313,7 @@ export interface DataPivot extends DataModel {
|
|
|
5185
5313
|
* @param alias the field alias, or %NULL
|
|
5186
5314
|
* @returns %TRUE if no error occurred
|
|
5187
5315
|
*/
|
|
5188
|
-
add_data(aggregate_type: DataPivotAggregate, field: string
|
|
5316
|
+
add_data(aggregate_type: DataPivotAggregate, field: string, alias: string | null): boolean
|
|
5189
5317
|
/**
|
|
5190
5318
|
* Specifies that `field` has to be included in the analysis.
|
|
5191
5319
|
* `field` is a field specification with the following accepted syntaxes:
|
|
@@ -5206,7 +5334,7 @@ export interface DataPivot extends DataModel {
|
|
|
5206
5334
|
* @param alias the field alias, or %NULL
|
|
5207
5335
|
* @returns %TRUE if no error occurred
|
|
5208
5336
|
*/
|
|
5209
|
-
add_field(field_type: DataPivotFieldType, field: string
|
|
5337
|
+
add_field(field_type: DataPivotFieldType, field: string, alias: string | null): boolean
|
|
5210
5338
|
/**
|
|
5211
5339
|
* Acutally populates `pivot` by analysing the data from the provided data model.
|
|
5212
5340
|
* @returns %TRUE if no error occurred.
|
|
@@ -5314,6 +5442,22 @@ export module DataProxy {
|
|
|
5314
5442
|
model?: DataModel | null
|
|
5315
5443
|
prepend_null_entry?: boolean | null
|
|
5316
5444
|
sample_size?: number | null
|
|
5445
|
+
/**
|
|
5446
|
+
* Defines how changes kept in the data proxy are handled when the proxied data model
|
|
5447
|
+
* is changed (using the "model" property). The default is to silently discard all the
|
|
5448
|
+
* changes, but if this property is set to %TRUE, then the changes are cached.
|
|
5449
|
+
*
|
|
5450
|
+
* If set to %TRUE, each cached change will be re-applied to a newly set proxied data model if
|
|
5451
|
+
* the change's number of columns match the proxied data model's number of columns and based on:
|
|
5452
|
+
* <itemizedlist>
|
|
5453
|
+
* <listitem><para>the contents of the proxied data model's modified row for updates and deletes</para></listitem>
|
|
5454
|
+
* <listitem><para>the inserts are always kept</para></listitem>
|
|
5455
|
+
* </itemizedlist>
|
|
5456
|
+
*/
|
|
5457
|
+
cacheChanges?: boolean | null
|
|
5458
|
+
deferSync?: boolean | null
|
|
5459
|
+
prependNullEntry?: boolean | null
|
|
5460
|
+
sampleSize?: number | null
|
|
5317
5461
|
}
|
|
5318
5462
|
|
|
5319
5463
|
}
|
|
@@ -5335,10 +5479,26 @@ export interface DataProxy extends DataModel {
|
|
|
5335
5479
|
* </itemizedlist>
|
|
5336
5480
|
*/
|
|
5337
5481
|
cache_changes: boolean
|
|
5482
|
+
/**
|
|
5483
|
+
* Defines how changes kept in the data proxy are handled when the proxied data model
|
|
5484
|
+
* is changed (using the "model" property). The default is to silently discard all the
|
|
5485
|
+
* changes, but if this property is set to %TRUE, then the changes are cached.
|
|
5486
|
+
*
|
|
5487
|
+
* If set to %TRUE, each cached change will be re-applied to a newly set proxied data model if
|
|
5488
|
+
* the change's number of columns match the proxied data model's number of columns and based on:
|
|
5489
|
+
* <itemizedlist>
|
|
5490
|
+
* <listitem><para>the contents of the proxied data model's modified row for updates and deletes</para></listitem>
|
|
5491
|
+
* <listitem><para>the inserts are always kept</para></listitem>
|
|
5492
|
+
* </itemizedlist>
|
|
5493
|
+
*/
|
|
5494
|
+
cacheChanges: boolean
|
|
5338
5495
|
defer_sync: boolean
|
|
5496
|
+
deferSync: boolean
|
|
5339
5497
|
model: DataModel
|
|
5340
5498
|
prepend_null_entry: boolean
|
|
5499
|
+
prependNullEntry: boolean
|
|
5341
5500
|
sample_size: number
|
|
5501
|
+
sampleSize: number
|
|
5342
5502
|
|
|
5343
5503
|
// Own fields of Gda-5.0.Gda.DataProxy
|
|
5344
5504
|
|
|
@@ -5393,7 +5553,7 @@ export interface DataProxy extends DataModel {
|
|
|
5393
5553
|
* Get the current filter expression used by `proxy`.
|
|
5394
5554
|
* @returns the current filter expression or %NULL if no filter has been set
|
|
5395
5555
|
*/
|
|
5396
|
-
get_filter_expr(): string
|
|
5556
|
+
get_filter_expr(): string
|
|
5397
5557
|
/**
|
|
5398
5558
|
* Get the total number of filtered rows in `proxy` if a filter has been applied. As new rows
|
|
5399
5559
|
* (rows added to the proxy and not yet added to the proxied data model) and rows to remove
|
|
@@ -5650,6 +5810,18 @@ export module DataSelect {
|
|
|
5650
5810
|
prepared_stmt?: PStmt | null
|
|
5651
5811
|
store_all_rows?: boolean | null
|
|
5652
5812
|
update_stmt?: Statement | null
|
|
5813
|
+
autoReset?: boolean | null
|
|
5814
|
+
deleteStmt?: Statement | null
|
|
5815
|
+
execParams?: Set | null
|
|
5816
|
+
/**
|
|
5817
|
+
* This property stores the execution delay which has been necessary to obtain the data
|
|
5818
|
+
*/
|
|
5819
|
+
executionDelay?: number | null
|
|
5820
|
+
insertStmt?: Statement | null
|
|
5821
|
+
modelUsage?: number | null
|
|
5822
|
+
preparedStmt?: PStmt | null
|
|
5823
|
+
storeAllRows?: boolean | null
|
|
5824
|
+
updateStmt?: Statement | null
|
|
5653
5825
|
}
|
|
5654
5826
|
|
|
5655
5827
|
}
|
|
@@ -5659,19 +5831,32 @@ export interface DataSelect extends DataModel {
|
|
|
5659
5831
|
// Own properties of Gda-5.0.Gda.DataSelect
|
|
5660
5832
|
|
|
5661
5833
|
auto_reset: boolean
|
|
5834
|
+
autoReset: boolean
|
|
5662
5835
|
readonly connection: Connection
|
|
5663
5836
|
delete_stmt: Statement
|
|
5837
|
+
deleteStmt: Statement
|
|
5664
5838
|
readonly exec_params: Set
|
|
5839
|
+
readonly execParams: Set
|
|
5665
5840
|
/**
|
|
5666
5841
|
* This property stores the execution delay which has been necessary to obtain the data
|
|
5667
5842
|
*/
|
|
5668
5843
|
execution_delay: number
|
|
5844
|
+
/**
|
|
5845
|
+
* This property stores the execution delay which has been necessary to obtain the data
|
|
5846
|
+
*/
|
|
5847
|
+
executionDelay: number
|
|
5669
5848
|
insert_stmt: Statement
|
|
5849
|
+
insertStmt: Statement
|
|
5670
5850
|
readonly model_usage: number
|
|
5851
|
+
readonly modelUsage: number
|
|
5671
5852
|
prepared_stmt: PStmt
|
|
5853
|
+
preparedStmt: PStmt
|
|
5672
5854
|
readonly select_stmt: Statement
|
|
5855
|
+
readonly selectStmt: Statement
|
|
5673
5856
|
store_all_rows: boolean
|
|
5857
|
+
storeAllRows: boolean
|
|
5674
5858
|
update_stmt: Statement
|
|
5859
|
+
updateStmt: Statement
|
|
5675
5860
|
|
|
5676
5861
|
// Own fields of Gda-5.0.Gda.DataSelect
|
|
5677
5862
|
|
|
@@ -5805,7 +5990,7 @@ export interface DataSelect extends DataModel {
|
|
|
5805
5990
|
* @param sql an SQL text
|
|
5806
5991
|
* @returns TRUE if no error occurred.
|
|
5807
5992
|
*/
|
|
5808
|
-
set_modification_statement_sql(sql: string
|
|
5993
|
+
set_modification_statement_sql(sql: string): boolean
|
|
5809
5994
|
/**
|
|
5810
5995
|
* Specifies the SQL condition corresponding to the WHERE part of a SELECT statement which would
|
|
5811
5996
|
* return only 1 row (the expression of the primary key).
|
|
@@ -5823,7 +6008,7 @@ export interface DataSelect extends DataModel {
|
|
|
5823
6008
|
* @param sql_where an SQL condition (without the WHERE keyword)
|
|
5824
6009
|
* @returns TRUE if no error occurred
|
|
5825
6010
|
*/
|
|
5826
|
-
set_row_selection_condition_sql(sql_where: string
|
|
6011
|
+
set_row_selection_condition_sql(sql_where: string): boolean
|
|
5827
6012
|
|
|
5828
6013
|
// Own virtual methods of Gda-5.0.Gda.DataSelect
|
|
5829
6014
|
|
|
@@ -6248,6 +6433,17 @@ export module Holder {
|
|
|
6248
6433
|
* the holder's value changes.
|
|
6249
6434
|
*/
|
|
6250
6435
|
validate_changes?: boolean | null
|
|
6436
|
+
fullBind?: Holder | null
|
|
6437
|
+
gType?: GObject.GType | null
|
|
6438
|
+
notNull?: boolean | null
|
|
6439
|
+
simpleBind?: Holder | null
|
|
6440
|
+
sourceColumn?: number | null
|
|
6441
|
+
sourceModel?: DataModel | null
|
|
6442
|
+
/**
|
|
6443
|
+
* Defines if the "validate-change" signal gets emitted when
|
|
6444
|
+
* the holder's value changes.
|
|
6445
|
+
*/
|
|
6446
|
+
validateChanges?: boolean | null
|
|
6251
6447
|
}
|
|
6252
6448
|
|
|
6253
6449
|
}
|
|
@@ -6258,18 +6454,29 @@ export interface Holder extends Lockable {
|
|
|
6258
6454
|
|
|
6259
6455
|
description: string | null
|
|
6260
6456
|
full_bind: Holder
|
|
6457
|
+
fullBind: Holder
|
|
6261
6458
|
g_type: GObject.GType
|
|
6459
|
+
gType: GObject.GType
|
|
6262
6460
|
id: string | null
|
|
6263
6461
|
name: string | null
|
|
6264
6462
|
not_null: boolean
|
|
6463
|
+
notNull: boolean
|
|
6265
6464
|
simple_bind: Holder
|
|
6465
|
+
simpleBind: Holder
|
|
6266
6466
|
source_column: number
|
|
6467
|
+
sourceColumn: number
|
|
6267
6468
|
source_model: DataModel
|
|
6469
|
+
sourceModel: DataModel
|
|
6268
6470
|
/**
|
|
6269
6471
|
* Defines if the "validate-change" signal gets emitted when
|
|
6270
6472
|
* the holder's value changes.
|
|
6271
6473
|
*/
|
|
6272
6474
|
validate_changes: boolean
|
|
6475
|
+
/**
|
|
6476
|
+
* Defines if the "validate-change" signal gets emitted when
|
|
6477
|
+
* the holder's value changes.
|
|
6478
|
+
*/
|
|
6479
|
+
validateChanges: boolean
|
|
6273
6480
|
|
|
6274
6481
|
// Own fields of Gda-5.0.Gda.Holder
|
|
6275
6482
|
|
|
@@ -6317,7 +6524,7 @@ export interface Holder extends Lockable {
|
|
|
6317
6524
|
* @param attribute attribute name as a string
|
|
6318
6525
|
* @returns a read-only #GValue, or %NULL if not attribute named @attribute has been set for @holder
|
|
6319
6526
|
*/
|
|
6320
|
-
get_attribute(attribute: string
|
|
6527
|
+
get_attribute(attribute: string): any
|
|
6321
6528
|
/**
|
|
6322
6529
|
* Get the holder which makes `holder` change its value when the holder's value is changed.
|
|
6323
6530
|
* @returns the #GdaHolder or %NULL
|
|
@@ -6334,7 +6541,7 @@ export interface Holder extends Lockable {
|
|
|
6334
6541
|
* Get the ID of `holder`. The ID can be set using `holder'`s "id" property
|
|
6335
6542
|
* @returns the ID (don't modify the string).
|
|
6336
6543
|
*/
|
|
6337
|
-
get_id(): string
|
|
6544
|
+
get_id(): string
|
|
6338
6545
|
/**
|
|
6339
6546
|
* Get wether the holder can be NULL or not
|
|
6340
6547
|
* @returns TRUE if the holder cannot be NULL
|
|
@@ -6397,7 +6604,7 @@ export interface Holder extends Lockable {
|
|
|
6397
6604
|
* @param value a #GValue, or %NULL
|
|
6398
6605
|
* @param destroy a function to be called when `attribute` is not needed anymore, or %NULL
|
|
6399
6606
|
*/
|
|
6400
|
-
set_attribute(attribute: string
|
|
6607
|
+
set_attribute(attribute: string, value: any, destroy: GLib.DestroyNotify): void
|
|
6401
6608
|
/**
|
|
6402
6609
|
* Sets `holder` to change when `bind_to` changes (and does not make `bind_to` change when `holder` changes).
|
|
6403
6610
|
* For the operation to succeed, the GType of `holder` and `bind_to` must be the same, with the exception that
|
|
@@ -6469,7 +6676,7 @@ export interface Holder extends Lockable {
|
|
|
6469
6676
|
* @param value a value to set the holder to, as a string
|
|
6470
6677
|
* @returns TRUE if value has been set
|
|
6471
6678
|
*/
|
|
6472
|
-
set_value_str(dh: DataHandler, value: string
|
|
6679
|
+
set_value_str(dh: DataHandler, value: string): boolean
|
|
6473
6680
|
/**
|
|
6474
6681
|
* Set `holder'`s value to its default value.
|
|
6475
6682
|
* @returns TRUE if @holder has got a default value
|
|
@@ -6528,7 +6735,7 @@ export interface Holder extends Lockable {
|
|
|
6528
6735
|
|
|
6529
6736
|
// Own virtual methods of Gda-5.0.Gda.Holder
|
|
6530
6737
|
|
|
6531
|
-
vfunc_att_changed(att_name: string
|
|
6738
|
+
vfunc_att_changed(att_name: string, att_value: any): void
|
|
6532
6739
|
vfunc_changed(): void
|
|
6533
6740
|
vfunc_source_changed(): void
|
|
6534
6741
|
vfunc_validate_change(new_value: any): GLib.Error
|
|
@@ -6650,6 +6857,7 @@ export module MetaStore {
|
|
|
6650
6857
|
cnc?: Connection | null
|
|
6651
6858
|
cnc_string?: string | null
|
|
6652
6859
|
schema?: string | null
|
|
6860
|
+
cncString?: string | null
|
|
6653
6861
|
}
|
|
6654
6862
|
|
|
6655
6863
|
}
|
|
@@ -6661,6 +6869,7 @@ export interface MetaStore {
|
|
|
6661
6869
|
readonly catalog: string | null
|
|
6662
6870
|
readonly cnc: Connection
|
|
6663
6871
|
readonly cnc_string: string | null
|
|
6872
|
+
readonly cncString: string | null
|
|
6664
6873
|
readonly schema: string | null
|
|
6665
6874
|
|
|
6666
6875
|
// Own fields of Gda-5.0.Gda.MetaStore
|
|
@@ -6678,7 +6887,7 @@ export interface MetaStore {
|
|
|
6678
6887
|
* @param table_name the name of a table present in `store`
|
|
6679
6888
|
* @returns a new #GdaDataModel
|
|
6680
6889
|
*/
|
|
6681
|
-
create_modify_data_model(table_name: string
|
|
6890
|
+
create_modify_data_model(table_name: string): DataModel
|
|
6682
6891
|
/**
|
|
6683
6892
|
* Defines a new declared foreign key into `store`. If another declared foreign key is already defined
|
|
6684
6893
|
* between the two tables and with the same name, then it is first removed.
|
|
@@ -6709,7 +6918,7 @@ export interface MetaStore {
|
|
|
6709
6918
|
* @param ref_colnames an array of column names from the referenced table
|
|
6710
6919
|
* @returns %TRUE if no error occurred
|
|
6711
6920
|
*/
|
|
6712
|
-
declare_foreign_key(mstruct: MetaStruct | null, fk_name: string
|
|
6921
|
+
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
|
|
6713
6922
|
/**
|
|
6714
6923
|
* Extracts some data stored in `store` using a custom SELECT query. If the `select_sql` filter involves
|
|
6715
6924
|
* SQL identifiers (such as table or column names), then the values should have been adapted using
|
|
@@ -6722,7 +6931,7 @@ export interface MetaStore {
|
|
|
6722
6931
|
* @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.
|
|
6723
6932
|
* @returns a new #GdaDataModel, or %NULL if an error occurred
|
|
6724
6933
|
*/
|
|
6725
|
-
extract(select_sql: string
|
|
6934
|
+
extract(select_sql: string, vars: GLib.HashTable | null): DataModel
|
|
6726
6935
|
/**
|
|
6727
6936
|
* The #GdaMetaStore object maintains a list of (name,value) attributes (attributes names starting with a '_'
|
|
6728
6937
|
* character are for internal use only and cannot be altered). This method and the gda_meta_store_set_attribute_value()
|
|
@@ -6736,7 +6945,7 @@ export interface MetaStore {
|
|
|
6736
6945
|
* @param att_name name of the attribute to get
|
|
6737
6946
|
* @returns TRUE if no error occurred
|
|
6738
6947
|
*/
|
|
6739
|
-
get_attribute_value(att_name: string
|
|
6948
|
+
get_attribute_value(att_name: string): [ /* returnType */ boolean, /* att_value */ string | null ]
|
|
6740
6949
|
/**
|
|
6741
6950
|
* Get a pointer to the #GdaConnection object internally used by `store` to store
|
|
6742
6951
|
* its contents.
|
|
@@ -6762,7 +6971,7 @@ export interface MetaStore {
|
|
|
6762
6971
|
* @param values values
|
|
6763
6972
|
* @returns %TRUE if no error occurred
|
|
6764
6973
|
*/
|
|
6765
|
-
modify(table_name: string
|
|
6974
|
+
modify(table_name: string, new_data: DataModel | null, condition: string | null, value_names: string[], values: any[]): boolean
|
|
6766
6975
|
/**
|
|
6767
6976
|
* Propagates an update to `store,` the update's contents is represented by `new_data,` this function is
|
|
6768
6977
|
* primarily reserved to database providers.
|
|
@@ -6824,7 +7033,7 @@ export interface MetaStore {
|
|
|
6824
7033
|
* @param xml_description an XML description of the table or view to add to `store`
|
|
6825
7034
|
* @returns TRUE if the new object has successfully been added
|
|
6826
7035
|
*/
|
|
6827
|
-
schema_add_custom_object(xml_description: string
|
|
7036
|
+
schema_add_custom_object(xml_description: string): boolean
|
|
6828
7037
|
/**
|
|
6829
7038
|
* Get an ordered list of the tables `store` knows about. The tables are ordered in a way that tables dependencies
|
|
6830
7039
|
* are respected: if table B has a foreign key on table A, then table A will be listed before table B in the returned
|
|
@@ -6840,7 +7049,7 @@ export interface MetaStore {
|
|
|
6840
7049
|
* @param table_name the name of the table for which all the dependencies must be listed
|
|
6841
7050
|
* @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.
|
|
6842
7051
|
*/
|
|
6843
|
-
schema_get_depend_tables(table_name: string
|
|
7052
|
+
schema_get_depend_tables(table_name: string): string[]
|
|
6844
7053
|
/**
|
|
6845
7054
|
* Creates a new #GdaMetaStruct object representing `store'`s internal database structure.
|
|
6846
7055
|
* @returns a new #GdaMetaStruct object, or %NULL if an error occurred
|
|
@@ -6851,7 +7060,7 @@ export interface MetaStore {
|
|
|
6851
7060
|
* @param obj_name name of the custom object to remove
|
|
6852
7061
|
* @returns TRUE if the custom object has successfully been removed
|
|
6853
7062
|
*/
|
|
6854
|
-
schema_remove_custom_object(obj_name: string
|
|
7063
|
+
schema_remove_custom_object(obj_name: string): boolean
|
|
6855
7064
|
/**
|
|
6856
7065
|
* Set the value of the attribute named `att_name` to `att_value;` see gda_meta_store_get_attribute_value() for
|
|
6857
7066
|
* more information.
|
|
@@ -6859,7 +7068,7 @@ export interface MetaStore {
|
|
|
6859
7068
|
* @param att_value value of the attribute to set, or %NULL to unset the attribute
|
|
6860
7069
|
* @returns TRUE if no error occurred
|
|
6861
7070
|
*/
|
|
6862
|
-
set_attribute_value(att_name: string
|
|
7071
|
+
set_attribute_value(att_name: string, att_value: string | null): boolean
|
|
6863
7072
|
/**
|
|
6864
7073
|
* Specifies how `store` must handle SQL identifiers it has to store. This method is mainly used by
|
|
6865
7074
|
* database providers.
|
|
@@ -6897,7 +7106,7 @@ export interface MetaStore {
|
|
|
6897
7106
|
* @param ref_table the name of the referenced table
|
|
6898
7107
|
* @returns %TRUE if no error occurred
|
|
6899
7108
|
*/
|
|
6900
|
-
undeclare_foreign_key(mstruct: MetaStruct | null, fk_name: string
|
|
7109
|
+
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
|
|
6901
7110
|
|
|
6902
7111
|
// Own virtual methods of Gda-5.0.Gda.MetaStore
|
|
6903
7112
|
|
|
@@ -6967,7 +7176,7 @@ export class MetaStore extends GObject.Object {
|
|
|
6967
7176
|
* @param file_name a file name
|
|
6968
7177
|
* @returns the newly created object, or %NULL if an error occurred
|
|
6969
7178
|
*/
|
|
6970
|
-
static new_with_file(file_name: string
|
|
7179
|
+
static new_with_file(file_name: string): MetaStore
|
|
6971
7180
|
_init(config?: MetaStore.ConstructorProperties): void
|
|
6972
7181
|
static error_quark(): GLib.Quark
|
|
6973
7182
|
/**
|
|
@@ -6981,7 +7190,7 @@ export class MetaStore extends GObject.Object {
|
|
|
6981
7190
|
* @param cnc a #GdaConnection
|
|
6982
7191
|
* @returns a new string, to free with g_free() once not needed anymore
|
|
6983
7192
|
*/
|
|
6984
|
-
static sql_identifier_quote(id: string
|
|
7193
|
+
static sql_identifier_quote(id: string, cnc: Connection): string | null
|
|
6985
7194
|
}
|
|
6986
7195
|
|
|
6987
7196
|
export module MetaStruct {
|
|
@@ -6994,6 +7203,7 @@ export module MetaStruct {
|
|
|
6994
7203
|
|
|
6995
7204
|
features?: number | null
|
|
6996
7205
|
meta_store?: MetaStore | null
|
|
7206
|
+
metaStore?: MetaStore | null
|
|
6997
7207
|
}
|
|
6998
7208
|
|
|
6999
7209
|
}
|
|
@@ -7004,6 +7214,7 @@ export interface MetaStruct {
|
|
|
7004
7214
|
|
|
7005
7215
|
readonly features: number
|
|
7006
7216
|
readonly meta_store: MetaStore
|
|
7217
|
+
readonly metaStore: MetaStore
|
|
7007
7218
|
|
|
7008
7219
|
// Own fields of Gda-5.0.Gda.MetaStruct
|
|
7009
7220
|
|
|
@@ -7110,7 +7321,7 @@ export interface MetaStruct {
|
|
|
7110
7321
|
* @param xml_spec_file the specifications as the name of an XML file
|
|
7111
7322
|
* @returns TRUE if no error has occurred
|
|
7112
7323
|
*/
|
|
7113
|
-
load_from_xml_file(catalog: string | null, schema: string | null, xml_spec_file: string
|
|
7324
|
+
load_from_xml_file(catalog: string | null, schema: string | null, xml_spec_file: string): boolean
|
|
7114
7325
|
/**
|
|
7115
7326
|
* Reorders the list of database objects within `mstruct` in a way specified by `sort_type`.
|
|
7116
7327
|
* @param sort_type the kind of sorting requested
|
|
@@ -7350,6 +7561,7 @@ export module Row {
|
|
|
7350
7561
|
// Own constructor properties of Gda-5.0.Gda.Row
|
|
7351
7562
|
|
|
7352
7563
|
nb_values?: number | null
|
|
7564
|
+
nbValues?: number | null
|
|
7353
7565
|
}
|
|
7354
7566
|
|
|
7355
7567
|
}
|
|
@@ -7359,6 +7571,7 @@ export interface Row {
|
|
|
7359
7571
|
// Own properties of Gda-5.0.Gda.Row
|
|
7360
7572
|
|
|
7361
7573
|
nb_values: number
|
|
7574
|
+
nbValues: number
|
|
7362
7575
|
|
|
7363
7576
|
// Own fields of Gda-5.0.Gda.Row
|
|
7364
7577
|
|
|
@@ -7474,6 +7687,8 @@ export module ServerOperation {
|
|
|
7474
7687
|
op_type?: number | null
|
|
7475
7688
|
provider?: ServerProvider | null
|
|
7476
7689
|
spec_filename?: string | null
|
|
7690
|
+
opType?: number | null
|
|
7691
|
+
specFilename?: string | null
|
|
7477
7692
|
}
|
|
7478
7693
|
|
|
7479
7694
|
}
|
|
@@ -7484,8 +7699,10 @@ export interface ServerOperation {
|
|
|
7484
7699
|
|
|
7485
7700
|
readonly connection: Connection
|
|
7486
7701
|
readonly op_type: number
|
|
7702
|
+
readonly opType: number
|
|
7487
7703
|
readonly provider: ServerProvider
|
|
7488
7704
|
readonly spec_filename: string | null
|
|
7705
|
+
readonly specFilename: string | null
|
|
7489
7706
|
|
|
7490
7707
|
// Own fields of Gda-5.0.Gda.ServerOperation
|
|
7491
7708
|
|
|
@@ -7494,27 +7711,27 @@ export interface ServerOperation {
|
|
|
7494
7711
|
|
|
7495
7712
|
// Owm methods of Gda-5.0.Gda.ServerOperation
|
|
7496
7713
|
|
|
7497
|
-
add_item_to_sequence(seq_path: string
|
|
7498
|
-
del_item_from_sequence(item_path: string
|
|
7714
|
+
add_item_to_sequence(seq_path: string): number
|
|
7715
|
+
del_item_from_sequence(item_path: string): boolean
|
|
7499
7716
|
/**
|
|
7500
7717
|
* Get the complete path to the parent of the node defined by `path`
|
|
7501
7718
|
* @param path a complete path to a node (starting with "/")
|
|
7502
7719
|
* @returns a new string or %NULL if the node does not have any parent or does not exist.
|
|
7503
7720
|
*/
|
|
7504
|
-
get_node_parent(path: string
|
|
7721
|
+
get_node_parent(path: string): string | null
|
|
7505
7722
|
/**
|
|
7506
7723
|
* Get the last part of `path`
|
|
7507
7724
|
* @param path a complete path to a node (starting with "/")
|
|
7508
7725
|
* @returns a new string, or %NULL if an error occurred
|
|
7509
7726
|
*/
|
|
7510
|
-
get_node_path_portion(path: string
|
|
7727
|
+
get_node_path_portion(path: string): string | null
|
|
7511
7728
|
/**
|
|
7512
7729
|
* Convenience function to get the type of a node.
|
|
7513
7730
|
* @param path a complete path to a node (starting with "/")
|
|
7514
7731
|
* @param status a place to store the status of the node, or %NULL
|
|
7515
7732
|
* @returns the type of node, or GDA_SERVER_OPERATION_NODE_UNKNOWN if the node was not found
|
|
7516
7733
|
*/
|
|
7517
|
-
get_node_type(path: string
|
|
7734
|
+
get_node_type(path: string, status: ServerOperationNodeStatus | null): ServerOperationNodeType
|
|
7518
7735
|
/**
|
|
7519
7736
|
* Get the type of operation `op` is for
|
|
7520
7737
|
* @returns a #GdaServerOperationType enum
|
|
@@ -7531,11 +7748,11 @@ export interface ServerOperation {
|
|
|
7531
7748
|
* @param path a complete path to a sequence node (starting with "/")
|
|
7532
7749
|
* @returns a array of strings containing the complete paths of the nodes contained at @path (free with g_strfreev())
|
|
7533
7750
|
*/
|
|
7534
|
-
get_sequence_item_names(path: string
|
|
7535
|
-
get_sequence_max_size(path: string
|
|
7536
|
-
get_sequence_min_size(path: string
|
|
7537
|
-
get_sequence_name(path: string
|
|
7538
|
-
get_sequence_size(path: string
|
|
7751
|
+
get_sequence_item_names(path: string): string[]
|
|
7752
|
+
get_sequence_max_size(path: string): number
|
|
7753
|
+
get_sequence_min_size(path: string): number
|
|
7754
|
+
get_sequence_name(path: string): string
|
|
7755
|
+
get_sequence_size(path: string): number
|
|
7539
7756
|
/**
|
|
7540
7757
|
* This method is similar to gda_server_operation_get_value_at(), but for SQL identifiers: a new string
|
|
7541
7758
|
* is returned instead of a #GValue. Also the returned string is assumed to represents an SQL identifier
|
|
@@ -7546,13 +7763,13 @@ export interface ServerOperation {
|
|
|
7546
7763
|
* @param path a complete path to a node (starting with "/")
|
|
7547
7764
|
* @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).
|
|
7548
7765
|
*/
|
|
7549
|
-
get_sql_identifier_at(cnc: Connection | null, prov: ServerProvider | null, path: string
|
|
7766
|
+
get_sql_identifier_at(cnc: Connection | null, prov: ServerProvider | null, path: string): string | null
|
|
7550
7767
|
/**
|
|
7551
7768
|
* Get the value for the node at the `path` path
|
|
7552
7769
|
* @param path a complete path to a node (starting with "/")
|
|
7553
7770
|
* @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.
|
|
7554
7771
|
*/
|
|
7555
|
-
get_value_at(path: string
|
|
7772
|
+
get_value_at(path: string): any | null
|
|
7556
7773
|
/**
|
|
7557
7774
|
* Tells if all the required values in `op` have been defined.
|
|
7558
7775
|
*
|
|
@@ -7629,12 +7846,12 @@ export interface ServerOperation {
|
|
|
7629
7846
|
* @param path a complete path to a node (starting with "/")
|
|
7630
7847
|
* @returns %TRUE if no error occurred
|
|
7631
7848
|
*/
|
|
7632
|
-
set_value_at(value: string | null, path: string
|
|
7849
|
+
set_value_at(value: string | null, path: string): boolean
|
|
7633
7850
|
|
|
7634
7851
|
// Own virtual methods of Gda-5.0.Gda.ServerOperation
|
|
7635
7852
|
|
|
7636
|
-
vfunc_seq_item_added(seq_path: string
|
|
7637
|
-
vfunc_seq_item_remove(seq_path: string
|
|
7853
|
+
vfunc_seq_item_added(seq_path: string, item_index: number): void
|
|
7854
|
+
vfunc_seq_item_remove(seq_path: string, item_index: number): void
|
|
7638
7855
|
|
|
7639
7856
|
// Own signals of Gda-5.0.Gda.ServerOperation
|
|
7640
7857
|
|
|
@@ -7689,7 +7906,7 @@ export class ServerOperation extends GObject.Object {
|
|
|
7689
7906
|
* @param xml_file a file which has the specifications for the GdaServerOperation object to create
|
|
7690
7907
|
* @returns a new #GdaServerOperation object
|
|
7691
7908
|
*/
|
|
7692
|
-
constructor(op_type: ServerOperationType, xml_file: string
|
|
7909
|
+
constructor(op_type: ServerOperationType, xml_file: string)
|
|
7693
7910
|
/**
|
|
7694
7911
|
* IMPORTANT NOTE: Using this funtion is not the recommended way of creating a #GdaServerOperation object, the
|
|
7695
7912
|
* correct way is to use gda_server_provider_create_operation(); this method is reserved for the database provider's
|
|
@@ -7704,7 +7921,7 @@ export class ServerOperation extends GObject.Object {
|
|
|
7704
7921
|
* @param xml_file a file which has the specifications for the GdaServerOperation object to create
|
|
7705
7922
|
* @returns a new #GdaServerOperation object
|
|
7706
7923
|
*/
|
|
7707
|
-
static new(op_type: ServerOperationType, xml_file: string
|
|
7924
|
+
static new(op_type: ServerOperationType, xml_file: string): ServerOperation
|
|
7708
7925
|
_init(config?: ServerOperation.ConstructorProperties): void
|
|
7709
7926
|
static error_quark(): GLib.Quark
|
|
7710
7927
|
/**
|
|
@@ -7712,7 +7929,7 @@ export class ServerOperation extends GObject.Object {
|
|
|
7712
7929
|
* @param type a #GdaServerOperationType value
|
|
7713
7930
|
* @returns a non %NULL string (do not free or modify)
|
|
7714
7931
|
*/
|
|
7715
|
-
static op_type_to_string(type: ServerOperationType): string
|
|
7932
|
+
static op_type_to_string(type: ServerOperationType): string
|
|
7716
7933
|
/**
|
|
7717
7934
|
* Creates a new #GdaServerOperation object which contains the specifications required
|
|
7718
7935
|
* to create a database. Once these specifications provided, use
|
|
@@ -7724,7 +7941,7 @@ export class ServerOperation extends GObject.Object {
|
|
|
7724
7941
|
* @param db_name the name of the database to create, or %NULL
|
|
7725
7942
|
* @returns new #GdaServerOperation object, or %NULL if the provider does not support database creation
|
|
7726
7943
|
*/
|
|
7727
|
-
static prepare_create_database(provider: string
|
|
7944
|
+
static prepare_create_database(provider: string, db_name: string | null): ServerOperation | null
|
|
7728
7945
|
/**
|
|
7729
7946
|
* Creates a new #GdaServerOperation object which contains the specifications required
|
|
7730
7947
|
* to drop a database. Once these specifications provided, use
|
|
@@ -7736,7 +7953,7 @@ export class ServerOperation extends GObject.Object {
|
|
|
7736
7953
|
* @param db_name the name of the database to drop, or %NULL
|
|
7737
7954
|
* @returns new #GdaServerOperation object, or %NULL if the provider does not support database destruction
|
|
7738
7955
|
*/
|
|
7739
|
-
static prepare_drop_database(provider: string
|
|
7956
|
+
static prepare_drop_database(provider: string, db_name: string | null): ServerOperation | null
|
|
7740
7957
|
/**
|
|
7741
7958
|
* This is just a convenient function to create a #GdaServerOperation to drop a
|
|
7742
7959
|
* table in an opened connection.
|
|
@@ -7744,13 +7961,13 @@ export class ServerOperation extends GObject.Object {
|
|
|
7744
7961
|
* @param table_name name of the table to drop
|
|
7745
7962
|
* @returns a new #GdaServerOperation or %NULL if couldn't create the opereration.
|
|
7746
7963
|
*/
|
|
7747
|
-
static prepare_drop_table(cnc: Connection, table_name: string
|
|
7964
|
+
static prepare_drop_table(cnc: Connection, table_name: string): ServerOperation | null
|
|
7748
7965
|
/**
|
|
7749
7966
|
* Performs the reverse of gda_server_operation_op_type_to_string()
|
|
7750
7967
|
* @param str a string
|
|
7751
7968
|
* @returns the #GdaServerOperationType represented by @str, or #G_MAXINT if @str is not a valid representation of a #GdaServerOperationType
|
|
7752
7969
|
*/
|
|
7753
|
-
static string_to_op_type(str: string
|
|
7970
|
+
static string_to_op_type(str: string): ServerOperationType
|
|
7754
7971
|
}
|
|
7755
7972
|
|
|
7756
7973
|
export module ServerProvider {
|
|
@@ -7801,7 +8018,7 @@ export interface ServerProvider {
|
|
|
7801
8018
|
* @param str a string to escape
|
|
7802
8019
|
* @returns a new string suitable to use in SQL statements
|
|
7803
8020
|
*/
|
|
7804
|
-
escape_string(cnc: Connection | null, str: string
|
|
8021
|
+
escape_string(cnc: Connection | null, str: string): string | null
|
|
7805
8022
|
/**
|
|
7806
8023
|
* Finds the location of a `filename`. This function should only be used by database provider's
|
|
7807
8024
|
* implementations
|
|
@@ -7809,7 +8026,7 @@ export interface ServerProvider {
|
|
|
7809
8026
|
* @param filename name of the file to find
|
|
7810
8027
|
* @returns the complete path to @filename, or %NULL if not found
|
|
7811
8028
|
*/
|
|
7812
|
-
find_file(inst_dir: string
|
|
8029
|
+
find_file(inst_dir: string, filename: string): string | null
|
|
7813
8030
|
/**
|
|
7814
8031
|
* Find a #GdaDataHandler object to manipulate data of type `for_type`.
|
|
7815
8032
|
*
|
|
@@ -7818,7 +8035,7 @@ export interface ServerProvider {
|
|
|
7818
8035
|
* @param for_type a DBMS type definition
|
|
7819
8036
|
* @returns a #GdaDataHandler, or %NULL if the provider does not know about the @for_type type
|
|
7820
8037
|
*/
|
|
7821
|
-
get_data_handler_dbms(cnc: Connection | null, for_type: string
|
|
8038
|
+
get_data_handler_dbms(cnc: Connection | null, for_type: string): DataHandler
|
|
7822
8039
|
/**
|
|
7823
8040
|
* Provides the implementation when the default Libgda's data handlers must be used
|
|
7824
8041
|
* @param cnc a #GdaConnection object, or %NULL
|
|
@@ -7826,7 +8043,7 @@ export interface ServerProvider {
|
|
|
7826
8043
|
* @param dbms_type a DBMS type definition
|
|
7827
8044
|
* @returns a #GdaDataHandler, or %NULL
|
|
7828
8045
|
*/
|
|
7829
|
-
get_data_handler_default(cnc: Connection | null, type: GObject.GType, dbms_type: string
|
|
8046
|
+
get_data_handler_default(cnc: Connection | null, type: GObject.GType, dbms_type: string): DataHandler
|
|
7830
8047
|
/**
|
|
7831
8048
|
* Find a #GdaDataHandler object to manipulate data of type `for_type`. The returned object must not be modified.
|
|
7832
8049
|
* @param cnc a #GdaConnection object, or %NULL
|
|
@@ -7849,19 +8066,19 @@ export interface ServerProvider {
|
|
|
7849
8066
|
* Get the name (identifier) of the provider
|
|
7850
8067
|
* @returns a string containing the provider's name
|
|
7851
8068
|
*/
|
|
7852
|
-
get_name(): string
|
|
8069
|
+
get_name(): string
|
|
7853
8070
|
/**
|
|
7854
8071
|
* Get the version of the database to which the connection is opened.
|
|
7855
8072
|
* @param cnc a #GdaConnection object
|
|
7856
8073
|
* @returns a (read only) string, or %NULL if an error occurred
|
|
7857
8074
|
*/
|
|
7858
|
-
get_server_version(cnc: Connection): string
|
|
8075
|
+
get_server_version(cnc: Connection): string
|
|
7859
8076
|
/**
|
|
7860
8077
|
* Get the version of the provider.
|
|
7861
8078
|
* @returns a string containing the version identification.
|
|
7862
8079
|
*/
|
|
7863
|
-
get_version(): string
|
|
7864
|
-
handler_declare(dh: DataHandler, cnc: Connection, g_type: GObject.GType, dbms_type: string
|
|
8080
|
+
get_version(): string
|
|
8081
|
+
handler_declare(dh: DataHandler, cnc: Connection, g_type: GObject.GType, dbms_type: string): void
|
|
7865
8082
|
/**
|
|
7866
8083
|
* Reserved to database provider's implementations: get the #GdaDataHandler associated to `prov`
|
|
7867
8084
|
* for connection `cnc`. You probably want to use gda_server_provider_get_data_handler_g_type().
|
|
@@ -7925,7 +8142,7 @@ export interface ServerProvider {
|
|
|
7925
8142
|
* @param dbms_type place to get the actual database type used if the conversion succeeded, or %NULL
|
|
7926
8143
|
* @returns a new #GValue, or %NULL
|
|
7927
8144
|
*/
|
|
7928
|
-
string_to_value(cnc: Connection | null, string: string
|
|
8145
|
+
string_to_value(cnc: Connection | null, string: string, preferred_type: GObject.GType, dbms_type: string | null): any
|
|
7929
8146
|
/**
|
|
7930
8147
|
* Tests if a feature is supported
|
|
7931
8148
|
* @param cnc a #GdaConnection object, or %NULL
|
|
@@ -7948,7 +8165,7 @@ export interface ServerProvider {
|
|
|
7948
8165
|
* @param str a string to escape
|
|
7949
8166
|
* @returns a new string
|
|
7950
8167
|
*/
|
|
7951
|
-
unescape_string(cnc: Connection | null, str: string
|
|
8168
|
+
unescape_string(cnc: Connection | null, str: string): string | null
|
|
7952
8169
|
/**
|
|
7953
8170
|
* Produces a fully quoted and escaped string from a GValue
|
|
7954
8171
|
* @param cnc a #GdaConnection object, or %NULL
|
|
@@ -7959,11 +8176,11 @@ export interface ServerProvider {
|
|
|
7959
8176
|
|
|
7960
8177
|
// Own virtual methods of Gda-5.0.Gda.ServerProvider
|
|
7961
8178
|
|
|
7962
|
-
vfunc_add_savepoint(cnc: Connection, name: string
|
|
7963
|
-
vfunc_begin_transaction(cnc: Connection, name: string
|
|
8179
|
+
vfunc_add_savepoint(cnc: Connection, name: string): boolean
|
|
8180
|
+
vfunc_begin_transaction(cnc: Connection, name: string, level: TransactionIsolation): boolean
|
|
7964
8181
|
vfunc_cancel(cnc: Connection, task_id: number): boolean
|
|
7965
8182
|
vfunc_close_connection(cnc: Connection): boolean
|
|
7966
|
-
vfunc_commit_transaction(cnc: Connection, name: string
|
|
8183
|
+
vfunc_commit_transaction(cnc: Connection, name: string): boolean
|
|
7967
8184
|
/**
|
|
7968
8185
|
* Creates a new #GdaServerOperation object which can be modified in order to perform the `type` type of
|
|
7969
8186
|
* action. The `options` can contain:
|
|
@@ -7989,7 +8206,7 @@ export interface ServerProvider {
|
|
|
7989
8206
|
* @returns a new #GdaSqlParser object, or %NULL.
|
|
7990
8207
|
*/
|
|
7991
8208
|
vfunc_create_parser(cnc: Connection | null): SqlParser
|
|
7992
|
-
vfunc_delete_savepoint(cnc: Connection, name: string
|
|
8209
|
+
vfunc_delete_savepoint(cnc: Connection, name: string): boolean
|
|
7993
8210
|
/**
|
|
7994
8211
|
* Escapes `str` for use within an SQL command (to avoid SQL injection attacks). Note that the returned value still needs
|
|
7995
8212
|
* to be enclosed in single quotes before being used in an SQL statement.
|
|
@@ -7998,30 +8215,30 @@ export interface ServerProvider {
|
|
|
7998
8215
|
* @param str a string to escape
|
|
7999
8216
|
* @returns a new string suitable to use in SQL statements
|
|
8000
8217
|
*/
|
|
8001
|
-
vfunc_escape_string(cnc: Connection | null, str: string
|
|
8002
|
-
vfunc_get_database(cnc: Connection): string
|
|
8003
|
-
vfunc_get_def_dbms_type(cnc: Connection, g_type: GObject.GType): string
|
|
8218
|
+
vfunc_escape_string(cnc: Connection | null, str: string): string | null
|
|
8219
|
+
vfunc_get_database(cnc: Connection): string
|
|
8220
|
+
vfunc_get_def_dbms_type(cnc: Connection, g_type: GObject.GType): string
|
|
8004
8221
|
/**
|
|
8005
8222
|
* Get the name (identifier) of the provider
|
|
8006
8223
|
* @virtual
|
|
8007
8224
|
* @returns a string containing the provider's name
|
|
8008
8225
|
*/
|
|
8009
|
-
vfunc_get_name(): string
|
|
8226
|
+
vfunc_get_name(): string
|
|
8010
8227
|
/**
|
|
8011
8228
|
* Get the version of the database to which the connection is opened.
|
|
8012
8229
|
* @virtual
|
|
8013
8230
|
* @param cnc a #GdaConnection object
|
|
8014
8231
|
* @returns a (read only) string, or %NULL if an error occurred
|
|
8015
8232
|
*/
|
|
8016
|
-
vfunc_get_server_version(cnc: Connection): string
|
|
8233
|
+
vfunc_get_server_version(cnc: Connection): string
|
|
8017
8234
|
/**
|
|
8018
8235
|
* Get the version of the provider.
|
|
8019
8236
|
* @virtual
|
|
8020
8237
|
* @returns a string containing the version identification.
|
|
8021
8238
|
*/
|
|
8022
|
-
vfunc_get_version(): string
|
|
8239
|
+
vfunc_get_version(): string
|
|
8023
8240
|
vfunc_handle_async(cnc: Connection): boolean
|
|
8024
|
-
vfunc_identifier_quote(cnc: Connection, id: string
|
|
8241
|
+
vfunc_identifier_quote(cnc: Connection, id: string, for_meta_store: boolean, force_quotes: boolean): string | null
|
|
8025
8242
|
vfunc_is_busy(cnc: Connection): boolean
|
|
8026
8243
|
/**
|
|
8027
8244
|
* Creates an SQL statement (possibly using some specific extensions of the DBMS) corresponding to the
|
|
@@ -8035,8 +8252,8 @@ export interface ServerProvider {
|
|
|
8035
8252
|
* @returns a new string, or %NULL if an error occurred or operation cannot be rendered as SQL.
|
|
8036
8253
|
*/
|
|
8037
8254
|
vfunc_render_operation(cnc: Connection | null, op: ServerOperation): string | null
|
|
8038
|
-
vfunc_rollback_savepoint(cnc: Connection, name: string
|
|
8039
|
-
vfunc_rollback_transaction(cnc: Connection, name: string
|
|
8255
|
+
vfunc_rollback_savepoint(cnc: Connection, name: string): boolean
|
|
8256
|
+
vfunc_rollback_transaction(cnc: Connection, name: string): boolean
|
|
8040
8257
|
vfunc_statement_prepare(cnc: Connection, stmt: Statement): boolean
|
|
8041
8258
|
/**
|
|
8042
8259
|
* Tests if a feature is supported
|
|
@@ -8063,7 +8280,7 @@ export interface ServerProvider {
|
|
|
8063
8280
|
* @param str a string to escape
|
|
8064
8281
|
* @returns a new string
|
|
8065
8282
|
*/
|
|
8066
|
-
vfunc_unescape_string(cnc: Connection | null, str: string
|
|
8283
|
+
vfunc_unescape_string(cnc: Connection | null, str: string): string | null
|
|
8067
8284
|
|
|
8068
8285
|
// Class property signals of Gda-5.0.Gda.ServerProvider
|
|
8069
8286
|
|
|
@@ -8094,7 +8311,7 @@ export class ServerProvider extends GObject.Object {
|
|
|
8094
8311
|
* @param filename name of the file to load
|
|
8095
8312
|
* @returns a new string containing @filename's contents, or %NULL if not found or if an error occurred
|
|
8096
8313
|
*/
|
|
8097
|
-
static load_file_contents(inst_dir: string
|
|
8314
|
+
static load_file_contents(inst_dir: string, data_dir: string, filename: string): string | null
|
|
8098
8315
|
}
|
|
8099
8316
|
|
|
8100
8317
|
export module Set {
|
|
@@ -8167,6 +8384,12 @@ export module Set {
|
|
|
8167
8384
|
* GdaHolder:validate-changes property.
|
|
8168
8385
|
*/
|
|
8169
8386
|
validate_changes?: boolean | null
|
|
8387
|
+
/**
|
|
8388
|
+
* Defines if the "validate-set" signal gets emitted when
|
|
8389
|
+
* any holder in the data set changes. This property also affects the
|
|
8390
|
+
* GdaHolder:validate-changes property.
|
|
8391
|
+
*/
|
|
8392
|
+
validateChanges?: boolean | null
|
|
8170
8393
|
}
|
|
8171
8394
|
|
|
8172
8395
|
}
|
|
@@ -8184,6 +8407,12 @@ export interface Set {
|
|
|
8184
8407
|
* GdaHolder:validate-changes property.
|
|
8185
8408
|
*/
|
|
8186
8409
|
validate_changes: boolean
|
|
8410
|
+
/**
|
|
8411
|
+
* Defines if the "validate-set" signal gets emitted when
|
|
8412
|
+
* any holder in the data set changes. This property also affects the
|
|
8413
|
+
* GdaHolder:validate-changes property.
|
|
8414
|
+
*/
|
|
8415
|
+
validateChanges: boolean
|
|
8187
8416
|
|
|
8188
8417
|
// Own fields of Gda-5.0.Gda.Set
|
|
8189
8418
|
|
|
@@ -8239,13 +8468,13 @@ export interface Set {
|
|
|
8239
8468
|
* @param holder_id the ID of the requested value holder
|
|
8240
8469
|
* @returns the requested #GdaHolder or %NULL
|
|
8241
8470
|
*/
|
|
8242
|
-
get_holder(holder_id: string
|
|
8471
|
+
get_holder(holder_id: string): Holder
|
|
8243
8472
|
/**
|
|
8244
8473
|
* Get the value of the #GdaHolder which ID is `holder_id`
|
|
8245
8474
|
* @param holder_id the ID of the holder to set the value
|
|
8246
8475
|
* @returns the requested GValue, or %NULL (see gda_holder_get_value())
|
|
8247
8476
|
*/
|
|
8248
|
-
get_holder_value(holder_id: string
|
|
8477
|
+
get_holder_value(holder_id: string): any | null
|
|
8249
8478
|
/**
|
|
8250
8479
|
* Finds a #GdaSetNode holding information for `holder,` don't modify the returned structure
|
|
8251
8480
|
* @param holder a #GdaHolder object
|
|
@@ -8307,7 +8536,7 @@ export interface Set {
|
|
|
8307
8536
|
|
|
8308
8537
|
// Own virtual methods of Gda-5.0.Gda.Set
|
|
8309
8538
|
|
|
8310
|
-
vfunc_holder_attr_changed(holder: Holder, attr_name: string
|
|
8539
|
+
vfunc_holder_attr_changed(holder: Holder, attr_name: string, attr_value: any): void
|
|
8311
8540
|
vfunc_holder_changed(holder: Holder): void
|
|
8312
8541
|
vfunc_holder_type_set(holder: Holder): void
|
|
8313
8542
|
vfunc_public_data_changed(): void
|
|
@@ -8402,7 +8631,7 @@ export class Set extends GObject.Object {
|
|
|
8402
8631
|
* @param xml_spec a string
|
|
8403
8632
|
* @returns a new object, or %NULL if an error occurred
|
|
8404
8633
|
*/
|
|
8405
|
-
static new_from_spec_string(xml_spec: string
|
|
8634
|
+
static new_from_spec_string(xml_spec: string): Set
|
|
8406
8635
|
/**
|
|
8407
8636
|
* Creates a new #GdaSet like gda_set_new(), but does not allow modifications to any of the #GdaHolder
|
|
8408
8637
|
* object in `holders`. This function is used for Libgda's database providers' implementation.
|
|
@@ -8500,7 +8729,7 @@ export interface SqlBuilder {
|
|
|
8500
8729
|
* @param table_name a table name, or %NULL
|
|
8501
8730
|
* @returns the ID of the new expression, or %0 if there was an error
|
|
8502
8731
|
*/
|
|
8503
|
-
add_field_id(field_name: string
|
|
8732
|
+
add_field_id(field_name: string, table_name: string | null): SqlBuilderId
|
|
8504
8733
|
/**
|
|
8505
8734
|
* Valid only for: INSERT, UPDATE statements.
|
|
8506
8735
|
*
|
|
@@ -8509,7 +8738,7 @@ export interface SqlBuilder {
|
|
|
8509
8738
|
* @param field_name a field name
|
|
8510
8739
|
* @param value value to set the field to, or %NULL or a GDA_TYPE_NULL value to represent an SQL NULL
|
|
8511
8740
|
*/
|
|
8512
|
-
add_field_value_as_gvalue(field_name: string
|
|
8741
|
+
add_field_value_as_gvalue(field_name: string, value: any | null): void
|
|
8513
8742
|
/**
|
|
8514
8743
|
* Valid only for: INSERT, UPDATE, SELECT statements
|
|
8515
8744
|
* <itemizedlist>
|
|
@@ -8535,7 +8764,7 @@ export interface SqlBuilder {
|
|
|
8535
8764
|
* @param args an array of IDs representing the function's arguments
|
|
8536
8765
|
* @returns the ID of the new expression, or %0 if there was an error
|
|
8537
8766
|
*/
|
|
8538
|
-
add_function(func_name: string
|
|
8767
|
+
add_function(func_name: string, args: SqlBuilderId[]): SqlBuilderId
|
|
8539
8768
|
/**
|
|
8540
8769
|
* Defines an expression representing an identifier in `builder,`
|
|
8541
8770
|
* which may be reused to build other parts of a statement,
|
|
@@ -8561,7 +8790,7 @@ export interface SqlBuilder {
|
|
|
8561
8790
|
* @param str a string
|
|
8562
8791
|
* @returns the ID of the new expression, or %0 if there was an error
|
|
8563
8792
|
*/
|
|
8564
|
-
add_id(str: string
|
|
8793
|
+
add_id(str: string): SqlBuilderId
|
|
8565
8794
|
/**
|
|
8566
8795
|
* Defines a parameter in `builder` which may be reused to build other parts of a statement.
|
|
8567
8796
|
*
|
|
@@ -8581,7 +8810,7 @@ export interface SqlBuilder {
|
|
|
8581
8810
|
* @param nullok TRUE if the parameter can be set to %NULL
|
|
8582
8811
|
* @returns the ID of the new expression, or %0 if there was an error
|
|
8583
8812
|
*/
|
|
8584
|
-
add_param(param_name: string
|
|
8813
|
+
add_param(param_name: string, type: GObject.GType, nullok: boolean): SqlBuilderId
|
|
8585
8814
|
/**
|
|
8586
8815
|
* Add a sub select to a COMPOUND statement
|
|
8587
8816
|
* @param subselect a #GdaSqlBuilder, which has to be a SELECT or compound SELECT. This will be copied.
|
|
@@ -8610,7 +8839,7 @@ export interface SqlBuilder {
|
|
|
8610
8839
|
* @param join_id the ID of the join to modify (not %0)
|
|
8611
8840
|
* @param field_name the name of the field to use in the join condition (not %NULL)
|
|
8612
8841
|
*/
|
|
8613
|
-
join_add_field(join_id: SqlBuilderId, field_name: string
|
|
8842
|
+
join_add_field(join_id: SqlBuilderId, field_name: string): void
|
|
8614
8843
|
/**
|
|
8615
8844
|
* Valid only for: SELECT statements.
|
|
8616
8845
|
*
|
|
@@ -8622,14 +8851,14 @@ export interface SqlBuilder {
|
|
|
8622
8851
|
* @param alias an alias (eg. for the "AS" clause), or %NULL
|
|
8623
8852
|
* @returns the ID of the added field, or %0 if there was an error
|
|
8624
8853
|
*/
|
|
8625
|
-
select_add_field(field_name: string
|
|
8854
|
+
select_add_field(field_name: string, table_name: string | null, alias: string | null): SqlBuilderId
|
|
8626
8855
|
/**
|
|
8627
8856
|
* Adds a new target to a SELECT statement
|
|
8628
8857
|
* @param table_name the name of the target table
|
|
8629
8858
|
* @param alias the alias to give to the target, or %NULL
|
|
8630
8859
|
* @returns the ID of the new target, or %0 if there was an error
|
|
8631
8860
|
*/
|
|
8632
|
-
select_add_target(table_name: string
|
|
8861
|
+
select_add_target(table_name: string, alias: string | null): SqlBuilderId
|
|
8633
8862
|
/**
|
|
8634
8863
|
* Adds a new target to a SELECT statement. If there already exists a target representing
|
|
8635
8864
|
* the same table and the same alias (or with the same absence of alias) then the same target
|
|
@@ -8689,7 +8918,7 @@ export interface SqlBuilder {
|
|
|
8689
8918
|
* Sets the name of the table on which the built statement operates.
|
|
8690
8919
|
* @param table_name a table name
|
|
8691
8920
|
*/
|
|
8692
|
-
set_table(table_name: string
|
|
8921
|
+
set_table(table_name: string): void
|
|
8693
8922
|
/**
|
|
8694
8923
|
* Valid only for: UPDATE, DELETE, SELECT statements
|
|
8695
8924
|
*
|
|
@@ -8746,6 +8975,7 @@ export module SqlParser {
|
|
|
8746
8975
|
|
|
8747
8976
|
mode?: number | null
|
|
8748
8977
|
tokenizer_flavour?: number | null
|
|
8978
|
+
tokenizerFlavour?: number | null
|
|
8749
8979
|
}
|
|
8750
8980
|
|
|
8751
8981
|
}
|
|
@@ -8755,9 +8985,12 @@ export interface SqlParser extends Lockable {
|
|
|
8755
8985
|
// Own properties of Gda-5.0.Gda.SqlParser
|
|
8756
8986
|
|
|
8757
8987
|
readonly column_error: number
|
|
8988
|
+
readonly columnError: number
|
|
8758
8989
|
readonly line_error: number
|
|
8990
|
+
readonly lineError: number
|
|
8759
8991
|
mode: number
|
|
8760
8992
|
tokenizer_flavour: number
|
|
8993
|
+
tokenizerFlavour: number
|
|
8761
8994
|
|
|
8762
8995
|
// Own fields of Gda-5.0.Gda.SqlParser
|
|
8763
8996
|
|
|
@@ -8777,7 +9010,7 @@ export interface SqlParser extends Lockable {
|
|
|
8777
9010
|
* @param filename name of the file to parse
|
|
8778
9011
|
* @returns a new #GdaBatch object, or %NULL if an error occurred
|
|
8779
9012
|
*/
|
|
8780
|
-
parse_file_as_batch(filename: string
|
|
9013
|
+
parse_file_as_batch(filename: string): Batch | null
|
|
8781
9014
|
/**
|
|
8782
9015
|
* Parses `sql` and creates a #GdaStatement statement from the first SQL statement contained in `sql:` if `sql`
|
|
8783
9016
|
* contains more than one statement, then the remaining part of the string is not parsed at all, and `remain` (if
|
|
@@ -8788,7 +9021,7 @@ export interface SqlParser extends Lockable {
|
|
|
8788
9021
|
* @param sql the SQL string to parse
|
|
8789
9022
|
* @returns a new #GdaStatement object, or %NULL if an error occurred
|
|
8790
9023
|
*/
|
|
8791
|
-
parse_string(sql: string
|
|
9024
|
+
parse_string(sql: string): [ /* returnType */ Statement | null, /* remain */ string ]
|
|
8792
9025
|
/**
|
|
8793
9026
|
* Parse `sql` and creates a #GdaBatch object which contains all the #GdaStatement objects created while parsing (one object
|
|
8794
9027
|
* per SQL statement). Empty statements (composed of spaces only) do not appear in the resulting object.
|
|
@@ -8804,7 +9037,7 @@ export interface SqlParser extends Lockable {
|
|
|
8804
9037
|
* @param sql the SQL string to parse
|
|
8805
9038
|
* @returns a new #GdaBatch object, or %NULL if an error occurred
|
|
8806
9039
|
*/
|
|
8807
|
-
parse_string_as_batch(sql: string
|
|
9040
|
+
parse_string_as_batch(sql: string): [ /* returnType */ Batch | null, /* remain */ string ]
|
|
8808
9041
|
set_overflow_error(): void
|
|
8809
9042
|
set_syntax_error(): void
|
|
8810
9043
|
|
|
@@ -9078,7 +9311,7 @@ export interface ThreadWrapper {
|
|
|
9078
9311
|
* @param callback a #GdaThreadWrapperCallback function
|
|
9079
9312
|
* @returns the handler ID
|
|
9080
9313
|
*/
|
|
9081
|
-
connect_raw(instance: any | null, sig_name: string
|
|
9314
|
+
connect_raw(instance: any | null, sig_name: string, private_thread: boolean, private_job: boolean, callback: ThreadWrapperCallback): number
|
|
9082
9315
|
/**
|
|
9083
9316
|
* Disconnects the emission of a signal, does the opposite of gda_thread_wrapper_connect_raw().
|
|
9084
9317
|
*
|
|
@@ -9242,7 +9475,7 @@ export interface TransactionStatus {
|
|
|
9242
9475
|
|
|
9243
9476
|
// Owm methods of Gda-5.0.Gda.TransactionStatus
|
|
9244
9477
|
|
|
9245
|
-
find(str: string
|
|
9478
|
+
find(str: string, destev: TransactionStatusEvent): TransactionStatus | null
|
|
9246
9479
|
/**
|
|
9247
9480
|
* Find a pointer to the "current" _unnamed_ transaction, which is the last
|
|
9248
9481
|
* transaction if there are several nested transactions
|
|
@@ -9277,7 +9510,7 @@ export class TransactionStatus extends GObject.Object {
|
|
|
9277
9510
|
* @param name name for the transaction
|
|
9278
9511
|
* @returns the newly created object.
|
|
9279
9512
|
*/
|
|
9280
|
-
constructor(name: string
|
|
9513
|
+
constructor(name: string)
|
|
9281
9514
|
/**
|
|
9282
9515
|
* Creates a new #GdaTransactionStatus object, which allows a fine-tune and
|
|
9283
9516
|
* full control of transactions to be used with providers.
|
|
@@ -9285,7 +9518,7 @@ export class TransactionStatus extends GObject.Object {
|
|
|
9285
9518
|
* @param name name for the transaction
|
|
9286
9519
|
* @returns the newly created object.
|
|
9287
9520
|
*/
|
|
9288
|
-
static new(name: string
|
|
9521
|
+
static new(name: string): TransactionStatus
|
|
9289
9522
|
_init(config?: TransactionStatus.ConstructorProperties): void
|
|
9290
9523
|
}
|
|
9291
9524
|
|
|
@@ -9337,6 +9570,10 @@ export interface Tree {
|
|
|
9337
9570
|
* Tells if the GdaTree is a list or a tree.
|
|
9338
9571
|
*/
|
|
9339
9572
|
readonly is_list: boolean
|
|
9573
|
+
/**
|
|
9574
|
+
* Tells if the GdaTree is a list or a tree.
|
|
9575
|
+
*/
|
|
9576
|
+
readonly isList: boolean
|
|
9340
9577
|
|
|
9341
9578
|
// Own fields of Gda-5.0.Gda.Tree
|
|
9342
9579
|
|
|
@@ -9366,7 +9603,7 @@ export interface Tree {
|
|
|
9366
9603
|
* @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.
|
|
9367
9604
|
* @returns the requested #GdaTreeNode pointer, or %NULL if not found
|
|
9368
9605
|
*/
|
|
9369
|
-
get_node(tree_path: string
|
|
9606
|
+
get_node(tree_path: string, use_names: boolean): TreeNode | null
|
|
9370
9607
|
/**
|
|
9371
9608
|
* Get the #GdaTreeManager which created `node` in `tree`
|
|
9372
9609
|
* @param node a #GdaTreeNode present in `tree`
|
|
@@ -9395,7 +9632,7 @@ export interface Tree {
|
|
|
9395
9632
|
* @param value a #GValue, or %NULL
|
|
9396
9633
|
* @param destroy a function to be called when `attribute` is not needed anymore, or %NULL
|
|
9397
9634
|
*/
|
|
9398
|
-
set_attribute(attribute: string
|
|
9635
|
+
set_attribute(attribute: string, value: any, destroy: GLib.DestroyNotify): void
|
|
9399
9636
|
/**
|
|
9400
9637
|
* Requests that `tree` be populated with nodes. If an error occurs, then `tree'`s contents is left
|
|
9401
9638
|
* unchanged, and otherwise `tree'`s previous contents is completely replaced by the new one.
|
|
@@ -9419,7 +9656,7 @@ export interface Tree {
|
|
|
9419
9656
|
// Own virtual methods of Gda-5.0.Gda.Tree
|
|
9420
9657
|
|
|
9421
9658
|
vfunc_node_changed(node: TreeNode): void
|
|
9422
|
-
vfunc_node_deleted(node_path: string
|
|
9659
|
+
vfunc_node_deleted(node_path: string): void
|
|
9423
9660
|
vfunc_node_has_child_toggled(node: TreeNode): void
|
|
9424
9661
|
vfunc_node_inserted(node: TreeNode): void
|
|
9425
9662
|
|
|
@@ -9546,7 +9783,7 @@ export interface TreeManager {
|
|
|
9546
9783
|
* @param attribute an attribute name
|
|
9547
9784
|
* @param value the attribute's value, or %NULL
|
|
9548
9785
|
*/
|
|
9549
|
-
add_new_node_attribute(attribute: string
|
|
9786
|
+
add_new_node_attribute(attribute: string, value: any | null): void
|
|
9550
9787
|
/**
|
|
9551
9788
|
* Requests that `manager` creates a new #GdaTreeNode. The new node is not in any
|
|
9552
9789
|
* way linked to `manager` yet, consider this method as a #GdaTreeNode factory.
|
|
@@ -9619,6 +9856,16 @@ export module TreeMgrColumns {
|
|
|
9619
9856
|
* If no set, then the table name will be fetched from the parent node using the "table_name" attribute
|
|
9620
9857
|
*/
|
|
9621
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
|
+
/**
|
|
9866
|
+
* If no set, then the table name will be fetched from the parent node using the "table_name" attribute
|
|
9867
|
+
*/
|
|
9868
|
+
tableName?: string | null
|
|
9622
9869
|
}
|
|
9623
9870
|
|
|
9624
9871
|
}
|
|
@@ -9638,6 +9885,12 @@ export interface TreeMgrColumns {
|
|
|
9638
9885
|
* priority over the GdaTreeMgrColumns:connection property.
|
|
9639
9886
|
*/
|
|
9640
9887
|
readonly meta_store: MetaStore
|
|
9888
|
+
/**
|
|
9889
|
+
* Defines the #GdaMetaStore to extract information from. Necessary upon construction unless
|
|
9890
|
+
* the #GdaTreeMgrColumns:connection property is specified instead. This property has
|
|
9891
|
+
* priority over the GdaTreeMgrColumns:connection property.
|
|
9892
|
+
*/
|
|
9893
|
+
readonly metaStore: MetaStore
|
|
9641
9894
|
/**
|
|
9642
9895
|
* If no set, then the table name will be fetched from the parent node using the "schema" attribute
|
|
9643
9896
|
*/
|
|
@@ -9646,6 +9899,10 @@ export interface TreeMgrColumns {
|
|
|
9646
9899
|
* If no set, then the table name will be fetched from the parent node using the "table_name" attribute
|
|
9647
9900
|
*/
|
|
9648
9901
|
readonly table_name: string | null
|
|
9902
|
+
/**
|
|
9903
|
+
* If no set, then the table name will be fetched from the parent node using the "table_name" attribute
|
|
9904
|
+
*/
|
|
9905
|
+
readonly tableName: string | null
|
|
9649
9906
|
|
|
9650
9907
|
// Own fields of Gda-5.0.Gda.TreeMgrColumns
|
|
9651
9908
|
|
|
@@ -9697,7 +9954,7 @@ export class TreeMgrColumns extends TreeManager {
|
|
|
9697
9954
|
* @param table_name the name of the table
|
|
9698
9955
|
* @returns a new #GdaTreeManager object
|
|
9699
9956
|
*/
|
|
9700
|
-
constructor(cnc: Connection, schema: string
|
|
9957
|
+
constructor(cnc: Connection, schema: string, table_name: string)
|
|
9701
9958
|
/**
|
|
9702
9959
|
* Creates a new #GdaTreeManager object which will add one tree node for each
|
|
9703
9960
|
* column in the table named `table_name` in the `schema` schema.
|
|
@@ -9707,7 +9964,7 @@ export class TreeMgrColumns extends TreeManager {
|
|
|
9707
9964
|
* @param table_name the name of the table
|
|
9708
9965
|
* @returns a new #GdaTreeManager object
|
|
9709
9966
|
*/
|
|
9710
|
-
static new(cnc: Connection, schema: string
|
|
9967
|
+
static new(cnc: Connection, schema: string, table_name: string): TreeMgrColumns
|
|
9711
9968
|
_init(config?: TreeMgrColumns.ConstructorProperties): void
|
|
9712
9969
|
}
|
|
9713
9970
|
|
|
@@ -9768,14 +10025,14 @@ export class TreeMgrLabel extends TreeManager {
|
|
|
9768
10025
|
* @param label a label string
|
|
9769
10026
|
* @returns a new #GdaTreeManager object
|
|
9770
10027
|
*/
|
|
9771
|
-
constructor(label: string
|
|
10028
|
+
constructor(label: string)
|
|
9772
10029
|
/**
|
|
9773
10030
|
* Creates a new #GdaTreeManager object which will add one tree node labelled `label`
|
|
9774
10031
|
* @constructor
|
|
9775
10032
|
* @param label a label string
|
|
9776
10033
|
* @returns a new #GdaTreeManager object
|
|
9777
10034
|
*/
|
|
9778
|
-
static new(label: string
|
|
10035
|
+
static new(label: string): TreeMgrLabel
|
|
9779
10036
|
_init(config?: TreeMgrLabel.ConstructorProperties): void
|
|
9780
10037
|
}
|
|
9781
10038
|
|
|
@@ -9878,6 +10135,12 @@ export module TreeMgrSchemas {
|
|
|
9878
10135
|
* priority over the GdaTreeMgrSchema:connection property.
|
|
9879
10136
|
*/
|
|
9880
10137
|
meta_store?: MetaStore | null
|
|
10138
|
+
/**
|
|
10139
|
+
* Defines the #GdaMetaStore to extract information from. Necessary upon construction unless
|
|
10140
|
+
* the #GdaTreeMgrSchema:connection property is specified instead. This property has
|
|
10141
|
+
* priority over the GdaTreeMgrSchema:connection property.
|
|
10142
|
+
*/
|
|
10143
|
+
metaStore?: MetaStore | null
|
|
9881
10144
|
}
|
|
9882
10145
|
|
|
9883
10146
|
}
|
|
@@ -9897,6 +10160,12 @@ export interface TreeMgrSchemas {
|
|
|
9897
10160
|
* priority over the GdaTreeMgrSchema:connection property.
|
|
9898
10161
|
*/
|
|
9899
10162
|
readonly meta_store: MetaStore
|
|
10163
|
+
/**
|
|
10164
|
+
* Defines the #GdaMetaStore to extract information from. Necessary upon construction unless
|
|
10165
|
+
* the #GdaTreeMgrSchema:connection property is specified instead. This property has
|
|
10166
|
+
* priority over the GdaTreeMgrSchema:connection property.
|
|
10167
|
+
*/
|
|
10168
|
+
readonly metaStore: MetaStore
|
|
9900
10169
|
|
|
9901
10170
|
// Own fields of Gda-5.0.Gda.TreeMgrSchemas
|
|
9902
10171
|
|
|
@@ -10061,6 +10330,12 @@ export module TreeMgrTables {
|
|
|
10061
10330
|
* a schema) will be used
|
|
10062
10331
|
*/
|
|
10063
10332
|
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
|
|
10064
10339
|
}
|
|
10065
10340
|
|
|
10066
10341
|
}
|
|
@@ -10080,6 +10355,12 @@ export interface TreeMgrTables {
|
|
|
10080
10355
|
* priority over the GdaTreeMgrTables:connection property.
|
|
10081
10356
|
*/
|
|
10082
10357
|
readonly meta_store: MetaStore
|
|
10358
|
+
/**
|
|
10359
|
+
* Defines the #GdaMetaStore to extract information from. Necessary upon construction unless
|
|
10360
|
+
* the #GdaTreeMgrTables:connection property is specified instead. This property has
|
|
10361
|
+
* priority over the GdaTreeMgrTables:connection property.
|
|
10362
|
+
*/
|
|
10363
|
+
readonly metaStore: MetaStore
|
|
10083
10364
|
/**
|
|
10084
10365
|
* If no set, then the table name will be fetched from the parent node using the "schema" attribute. If not
|
|
10085
10366
|
* found that way, then the list of visible tables (tables which can be identified without having to specify
|
|
@@ -10212,7 +10493,7 @@ export interface TreeNode {
|
|
|
10212
10493
|
* @param attribute attribute name as a string
|
|
10213
10494
|
* @returns a read-only #GValue, or %NULL if not attribute named @attribute has been set for @node
|
|
10214
10495
|
*/
|
|
10215
|
-
fetch_attribute(attribute: string
|
|
10496
|
+
fetch_attribute(attribute: string): any
|
|
10216
10497
|
/**
|
|
10217
10498
|
* Get the #GdaTreeNode child of `node` at position `index` (starting at 0).
|
|
10218
10499
|
* @param index a index
|
|
@@ -10224,7 +10505,7 @@ export interface TreeNode {
|
|
|
10224
10505
|
* @param name requested node's name
|
|
10225
10506
|
* @returns the #GdaTreeNode, or %NULL if not found
|
|
10226
10507
|
*/
|
|
10227
|
-
get_child_name(name: string
|
|
10508
|
+
get_child_name(name: string): TreeNode
|
|
10228
10509
|
/**
|
|
10229
10510
|
* Get a list of all `node'`s children, free it with g_slist_free() after usage
|
|
10230
10511
|
* @returns a new #GSList of #GdaTreeNode objects, or %NULL if @node does not have any child
|
|
@@ -10240,7 +10521,7 @@ export interface TreeNode {
|
|
|
10240
10521
|
* @param attribute attribute name as a string
|
|
10241
10522
|
* @returns a read-only #GValue, or %NULL if not attribute named @attribute has been set for @node
|
|
10242
10523
|
*/
|
|
10243
|
-
get_node_attribute(attribute: string
|
|
10524
|
+
get_node_attribute(attribute: string): any
|
|
10244
10525
|
/**
|
|
10245
10526
|
* Get the #GdaTreeNode parent of `node` in the #GdaTree node belongs to. If `node` is at the top level,
|
|
10246
10527
|
* then this method return %NULL.
|
|
@@ -10269,14 +10550,14 @@ export interface TreeNode {
|
|
|
10269
10550
|
* @param value a #GValue, or %NULL
|
|
10270
10551
|
* @param destroy a function to be called when `attribute` is not needed anymore, or %NULL
|
|
10271
10552
|
*/
|
|
10272
|
-
set_node_attribute(attribute: string
|
|
10553
|
+
set_node_attribute(attribute: string, value: any | null, destroy: GLib.DestroyNotify): void
|
|
10273
10554
|
|
|
10274
10555
|
// Own virtual methods of Gda-5.0.Gda.TreeNode
|
|
10275
10556
|
|
|
10276
|
-
vfunc_dump_children(prefix: string
|
|
10557
|
+
vfunc_dump_children(prefix: string, in_string: GLib.String): void
|
|
10277
10558
|
vfunc_dump_header(): string | null
|
|
10278
10559
|
vfunc_node_changed(node: TreeNode): void
|
|
10279
|
-
vfunc_node_deleted(relative_path: string
|
|
10560
|
+
vfunc_node_deleted(relative_path: string): void
|
|
10280
10561
|
vfunc_node_has_child_toggled(node: TreeNode): void
|
|
10281
10562
|
vfunc_node_inserted(node: TreeNode): void
|
|
10282
10563
|
|
|
@@ -10354,6 +10635,8 @@ export module XaTransaction {
|
|
|
10354
10635
|
|
|
10355
10636
|
format_id?: number | null
|
|
10356
10637
|
transaction_id?: string | null
|
|
10638
|
+
formatId?: number | null
|
|
10639
|
+
transactionId?: string | null
|
|
10357
10640
|
}
|
|
10358
10641
|
|
|
10359
10642
|
}
|
|
@@ -10363,7 +10646,9 @@ export interface XaTransaction {
|
|
|
10363
10646
|
// Own properties of Gda-5.0.Gda.XaTransaction
|
|
10364
10647
|
|
|
10365
10648
|
readonly format_id: number
|
|
10649
|
+
readonly formatId: number
|
|
10366
10650
|
readonly transaction_id: string | null
|
|
10651
|
+
readonly transactionId: string | null
|
|
10367
10652
|
|
|
10368
10653
|
// Own fields of Gda-5.0.Gda.XaTransaction
|
|
10369
10654
|
|
|
@@ -10411,7 +10696,7 @@ export interface XaTransaction {
|
|
|
10411
10696
|
* @param branch the branch qualifier
|
|
10412
10697
|
* @returns %TRUE if no error occurred
|
|
10413
10698
|
*/
|
|
10414
|
-
register_connection(cnc: Connection, branch: string
|
|
10699
|
+
register_connection(cnc: Connection, branch: string): boolean
|
|
10415
10700
|
/**
|
|
10416
10701
|
* Cancels a distributed transaction (managed by `xa_trans)`.
|
|
10417
10702
|
* @returns %TRUE if no error occurred
|
|
@@ -10456,7 +10741,7 @@ export class XaTransaction extends GObject.Object {
|
|
|
10456
10741
|
* @param global_transaction_id the global transaction ID
|
|
10457
10742
|
* @returns the newly created object.
|
|
10458
10743
|
*/
|
|
10459
|
-
constructor(format: number, global_transaction_id: string
|
|
10744
|
+
constructor(format: number, global_transaction_id: string)
|
|
10460
10745
|
/**
|
|
10461
10746
|
* Creates a new #GdaXaTransaction object, which will control the process of
|
|
10462
10747
|
* performing a distributed transaction across several connections.
|
|
@@ -10465,7 +10750,7 @@ export class XaTransaction extends GObject.Object {
|
|
|
10465
10750
|
* @param global_transaction_id the global transaction ID
|
|
10466
10751
|
* @returns the newly created object.
|
|
10467
10752
|
*/
|
|
10468
|
-
static new(format: number, global_transaction_id: string
|
|
10753
|
+
static new(format: number, global_transaction_id: string): XaTransaction
|
|
10469
10754
|
_init(config?: XaTransaction.ConstructorProperties): void
|
|
10470
10755
|
static error_quark(): GLib.Quark
|
|
10471
10756
|
}
|
|
@@ -10477,9 +10762,9 @@ export interface AttributesManager {
|
|
|
10477
10762
|
clear(ptr: any | null): void
|
|
10478
10763
|
foreach(ptr: any | null, func: AttributesManagerFunc): void
|
|
10479
10764
|
free(): void
|
|
10480
|
-
get(ptr: any | null, att_name: string
|
|
10481
|
-
set(ptr: any | null, att_name: string
|
|
10482
|
-
set_full(ptr: any | null, att_name: string
|
|
10765
|
+
get(ptr: any | null, att_name: string): any
|
|
10766
|
+
set(ptr: any | null, att_name: string, value: any): void
|
|
10767
|
+
set_full(ptr: any | null, att_name: string, value: any, destroy: GLib.DestroyNotify): void
|
|
10483
10768
|
}
|
|
10484
10769
|
|
|
10485
10770
|
export class AttributesManager {
|
|
@@ -10652,7 +10937,7 @@ export interface ColumnClass {
|
|
|
10652
10937
|
// Own fields of Gda-5.0.Gda.ColumnClass
|
|
10653
10938
|
|
|
10654
10939
|
parent_class: GObject.ObjectClass
|
|
10655
|
-
name_changed: (column: Column, old_name: string
|
|
10940
|
+
name_changed: (column: Column, old_name: string) => void
|
|
10656
10941
|
g_type_changed: (column: Column, old_type: GObject.GType, new_type: GObject.GType) => void
|
|
10657
10942
|
}
|
|
10658
10943
|
|
|
@@ -10815,7 +11100,7 @@ export interface DataHandlerIface {
|
|
|
10815
11100
|
get_value_from_str: (dh: DataHandler, str: string | null, type: GObject.GType) => any
|
|
10816
11101
|
get_sane_init_value: (dh: DataHandler, type: GObject.GType) => any | null
|
|
10817
11102
|
accepts_g_type: (dh: DataHandler, type: GObject.GType) => boolean
|
|
10818
|
-
get_descr: (dh: DataHandler) => string
|
|
11103
|
+
get_descr: (dh: DataHandler) => string
|
|
10819
11104
|
}
|
|
10820
11105
|
|
|
10821
11106
|
export abstract class DataHandlerIface {
|
|
@@ -11335,7 +11620,7 @@ export interface HolderClass {
|
|
|
11335
11620
|
changed: (holder: Holder) => void
|
|
11336
11621
|
source_changed: (holder: Holder) => void
|
|
11337
11622
|
validate_change: (holder: Holder, new_value: any) => GLib.Error
|
|
11338
|
-
att_changed: (holder: Holder, att_name: string
|
|
11623
|
+
att_changed: (holder: Holder, att_name: string, att_value: any) => void
|
|
11339
11624
|
}
|
|
11340
11625
|
|
|
11341
11626
|
export abstract class HolderClass {
|
|
@@ -11418,7 +11703,7 @@ export interface MetaContext {
|
|
|
11418
11703
|
* Get table's name to used in the context.
|
|
11419
11704
|
* @returns A string with the table's name used in the context.
|
|
11420
11705
|
*/
|
|
11421
|
-
get_table(): string
|
|
11706
|
+
get_table(): string
|
|
11422
11707
|
/**
|
|
11423
11708
|
* Sets a new column/value pair to the given context `ctx`. Column, must be a column in the given table's
|
|
11424
11709
|
* name setted by #gda_meta_context_set_table () (a table in the <link linkend="information_schema">database
|
|
@@ -11429,7 +11714,7 @@ export interface MetaContext {
|
|
|
11429
11714
|
* @param value the column's value
|
|
11430
11715
|
* @param cnc a #GdaConnection to be used when identifier are normalized, or NULL
|
|
11431
11716
|
*/
|
|
11432
|
-
set_column(column: string
|
|
11717
|
+
set_column(column: string, value: any, cnc: Connection | null): void
|
|
11433
11718
|
/**
|
|
11434
11719
|
* Set columns to use in the context. The #GHashTable use column's name as key and a #GValue as value,
|
|
11435
11720
|
* to represent its value.
|
|
@@ -11445,7 +11730,7 @@ export interface MetaContext {
|
|
|
11445
11730
|
* about database's tables.
|
|
11446
11731
|
* @param table a string with the table's name to use in context
|
|
11447
11732
|
*/
|
|
11448
|
-
set_table(table: string
|
|
11733
|
+
set_table(table: string): void
|
|
11449
11734
|
}
|
|
11450
11735
|
|
|
11451
11736
|
/**
|
|
@@ -11729,7 +12014,7 @@ export interface MetaTableColumn {
|
|
|
11729
12014
|
* @param attribute attribute name as a string
|
|
11730
12015
|
* @returns a read-only #GValue, or %NULL if not attribute named @attribute has been set for @column
|
|
11731
12016
|
*/
|
|
11732
|
-
get_attribute(attribute: string
|
|
12017
|
+
get_attribute(attribute: string): any
|
|
11733
12018
|
/**
|
|
11734
12019
|
* Set the value associated to a named attribute.
|
|
11735
12020
|
*
|
|
@@ -11743,7 +12028,7 @@ export interface MetaTableColumn {
|
|
|
11743
12028
|
* @param value a #GValue, or %NULL
|
|
11744
12029
|
* @param destroy function called when `attribute` has to be freed, or %NULL
|
|
11745
12030
|
*/
|
|
11746
|
-
set_attribute(attribute: string
|
|
12031
|
+
set_attribute(attribute: string, value: any | null, destroy: GLib.DestroyNotify | null): void
|
|
11747
12032
|
}
|
|
11748
12033
|
|
|
11749
12034
|
/**
|
|
@@ -11901,7 +12186,7 @@ export interface Numeric {
|
|
|
11901
12186
|
* Sets `numeric` with a number represented by `str,` in the C locale format (dot as a fraction separator).
|
|
11902
12187
|
* @param str a string representing a number, in the C locale format
|
|
11903
12188
|
*/
|
|
11904
|
-
set_from_string(str: string
|
|
12189
|
+
set_from_string(str: string): void
|
|
11905
12190
|
/**
|
|
11906
12191
|
* Sets the precision of a #GdaNumeric.
|
|
11907
12192
|
* @param precision a #glong
|
|
@@ -12028,7 +12313,7 @@ export interface QuarkList {
|
|
|
12028
12313
|
* @param string a string.
|
|
12029
12314
|
* @param cleanup whether to cleanup the previous content or not.
|
|
12030
12315
|
*/
|
|
12031
|
-
add_from_string(string: string
|
|
12316
|
+
add_from_string(string: string, cleanup: boolean): void
|
|
12032
12317
|
/**
|
|
12033
12318
|
* Removes all strings in the given #GdaQuarkList.
|
|
12034
12319
|
*/
|
|
@@ -12045,7 +12330,7 @@ export interface QuarkList {
|
|
|
12045
12330
|
* @param name the name of the value to search for.
|
|
12046
12331
|
* @returns the value associated with the given key if found, or %NULL if not found.
|
|
12047
12332
|
*/
|
|
12048
|
-
find(name: string
|
|
12333
|
+
find(name: string): string
|
|
12049
12334
|
/**
|
|
12050
12335
|
* Calls the given function for each of the key/value pairs in `qlist`. The function is passed the key and value
|
|
12051
12336
|
* of each pair, and the given user_data parameter. `qlist` may not be modified while iterating over it.
|
|
@@ -12065,7 +12350,7 @@ export interface QuarkList {
|
|
|
12065
12350
|
* Removes an entry from the #GdaQuarkList, given its name.
|
|
12066
12351
|
* @param name an entry name.
|
|
12067
12352
|
*/
|
|
12068
|
-
remove(name: string
|
|
12353
|
+
remove(name: string): void
|
|
12069
12354
|
}
|
|
12070
12355
|
|
|
12071
12356
|
export class QuarkList {
|
|
@@ -12108,7 +12393,7 @@ export class QuarkList {
|
|
|
12108
12393
|
* @param string a string.
|
|
12109
12394
|
* @returns the newly created #GdaQuarkList. Free-function: gda_quark_list_free
|
|
12110
12395
|
*/
|
|
12111
|
-
static new_from_string(string: string
|
|
12396
|
+
static new_from_string(string: string): QuarkList
|
|
12112
12397
|
}
|
|
12113
12398
|
|
|
12114
12399
|
export interface RepetitiveStatementClass {
|
|
@@ -12154,8 +12439,8 @@ export interface ServerOperationClass {
|
|
|
12154
12439
|
// Own fields of Gda-5.0.Gda.ServerOperationClass
|
|
12155
12440
|
|
|
12156
12441
|
parent_class: GObject.ObjectClass
|
|
12157
|
-
seq_item_added: (op: ServerOperation, seq_path: string
|
|
12158
|
-
seq_item_remove: (op: ServerOperation, seq_path: string
|
|
12442
|
+
seq_item_added: (op: ServerOperation, seq_path: string, item_index: number) => void
|
|
12443
|
+
seq_item_remove: (op: ServerOperation, seq_path: string, item_index: number) => void
|
|
12159
12444
|
}
|
|
12160
12445
|
|
|
12161
12446
|
export abstract class ServerOperationClass {
|
|
@@ -12201,31 +12486,31 @@ export interface ServerProviderClass {
|
|
|
12201
12486
|
|
|
12202
12487
|
parent_class: GObject.ObjectClass
|
|
12203
12488
|
limiting_thread: GLib.Thread
|
|
12204
|
-
get_name: (provider: ServerProvider) => string
|
|
12205
|
-
get_version: (provider: ServerProvider) => string
|
|
12206
|
-
get_server_version: (provider: ServerProvider, cnc: Connection) => string
|
|
12489
|
+
get_name: (provider: ServerProvider) => string
|
|
12490
|
+
get_version: (provider: ServerProvider) => string
|
|
12491
|
+
get_server_version: (provider: ServerProvider, cnc: Connection) => string
|
|
12207
12492
|
supports_feature: (provider: ServerProvider, cnc: Connection | null, feature: ConnectionFeature) => boolean
|
|
12208
|
-
get_def_dbms_type: (provider: ServerProvider, cnc: Connection, g_type: GObject.GType) => string
|
|
12209
|
-
escape_string: (provider: ServerProvider, cnc: Connection | null, str: string
|
|
12210
|
-
unescape_string: (provider: ServerProvider, cnc: Connection | null, str: string
|
|
12493
|
+
get_def_dbms_type: (provider: ServerProvider, cnc: Connection, g_type: GObject.GType) => string
|
|
12494
|
+
escape_string: (provider: ServerProvider, cnc: Connection | null, str: string) => string | null
|
|
12495
|
+
unescape_string: (provider: ServerProvider, cnc: Connection | null, str: string) => string | null
|
|
12211
12496
|
close_connection: (provider: ServerProvider, cnc: Connection) => boolean
|
|
12212
|
-
get_database: (provider: ServerProvider, cnc: Connection) => string
|
|
12497
|
+
get_database: (provider: ServerProvider, cnc: Connection) => string
|
|
12213
12498
|
supports_operation: (provider: ServerProvider, cnc: Connection | null, type: ServerOperationType, options: Set | null) => boolean
|
|
12214
12499
|
create_operation: (provider: ServerProvider, cnc: Connection | null, type: ServerOperationType, options: Set | null) => ServerOperation | null
|
|
12215
12500
|
render_operation: (provider: ServerProvider, cnc: Connection | null, op: ServerOperation) => string | null
|
|
12216
|
-
begin_transaction: (provider: ServerProvider, cnc: Connection, name: string
|
|
12217
|
-
commit_transaction: (provider: ServerProvider, cnc: Connection, name: string
|
|
12218
|
-
rollback_transaction: (provider: ServerProvider, cnc: Connection, name: string
|
|
12219
|
-
add_savepoint: (provider: ServerProvider, cnc: Connection, name: string
|
|
12220
|
-
rollback_savepoint: (provider: ServerProvider, cnc: Connection, name: string
|
|
12221
|
-
delete_savepoint: (provider: ServerProvider, cnc: Connection, name: string
|
|
12501
|
+
begin_transaction: (provider: ServerProvider, cnc: Connection, name: string, level: TransactionIsolation) => boolean
|
|
12502
|
+
commit_transaction: (provider: ServerProvider, cnc: Connection, name: string) => boolean
|
|
12503
|
+
rollback_transaction: (provider: ServerProvider, cnc: Connection, name: string) => boolean
|
|
12504
|
+
add_savepoint: (provider: ServerProvider, cnc: Connection, name: string) => boolean
|
|
12505
|
+
rollback_savepoint: (provider: ServerProvider, cnc: Connection, name: string) => boolean
|
|
12506
|
+
delete_savepoint: (provider: ServerProvider, cnc: Connection, name: string) => boolean
|
|
12222
12507
|
create_parser: (provider: ServerProvider, cnc: Connection | null) => SqlParser
|
|
12223
12508
|
statement_prepare: (provider: ServerProvider, cnc: Connection, stmt: Statement) => boolean
|
|
12224
12509
|
is_busy: (provider: ServerProvider, cnc: Connection) => boolean
|
|
12225
12510
|
cancel: (provider: ServerProvider, cnc: Connection, task_id: number) => boolean
|
|
12226
12511
|
meta_funcs: ServerProviderMeta
|
|
12227
12512
|
xa_funcs: ServerProviderXa
|
|
12228
|
-
identifier_quote: (provider: ServerProvider, cnc: Connection, id: string
|
|
12513
|
+
identifier_quote: (provider: ServerProvider, cnc: Connection, id: string, for_meta_store: boolean, force_quotes: boolean) => string | null
|
|
12229
12514
|
handle_async: (provider: ServerProvider, cnc: Connection) => boolean
|
|
12230
12515
|
}
|
|
12231
12516
|
|
|
@@ -12344,7 +12629,7 @@ export interface SetClass {
|
|
|
12344
12629
|
validate_holder_change: (set: Set, holder: Holder, new_value: any) => GLib.Error
|
|
12345
12630
|
validate_set: (set: Set) => GLib.Error
|
|
12346
12631
|
holder_changed: (set: Set, holder: Holder) => void
|
|
12347
|
-
holder_attr_changed: (set: Set, holder: Holder, attr_name: string
|
|
12632
|
+
holder_attr_changed: (set: Set, holder: Holder, attr_name: string, attr_value: any) => void
|
|
12348
12633
|
public_data_changed: (set: Set) => void
|
|
12349
12634
|
holder_type_set: (set: Set, holder: Holder) => void
|
|
12350
12635
|
source_model_changed: (set: Set, source: SetSource) => void
|
|
@@ -12878,8 +13163,8 @@ export class SqlOperation {
|
|
|
12878
13163
|
|
|
12879
13164
|
// Constructors of Gda-5.0.Gda.SqlOperation
|
|
12880
13165
|
|
|
12881
|
-
static operator_from_string(op: string
|
|
12882
|
-
static operator_to_string(op: SqlOperatorType): string
|
|
13166
|
+
static operator_from_string(op: string): SqlOperatorType
|
|
13167
|
+
static operator_to_string(op: SqlOperatorType): string
|
|
12883
13168
|
}
|
|
12884
13169
|
|
|
12885
13170
|
export interface SqlParserClass {
|
|
@@ -13117,7 +13402,7 @@ export class SqlSelectJoin {
|
|
|
13117
13402
|
|
|
13118
13403
|
// Constructors of Gda-5.0.Gda.SqlSelectJoin
|
|
13119
13404
|
|
|
13120
|
-
static type_to_string(type: SqlSelectJoinType): string
|
|
13405
|
+
static type_to_string(type: SqlSelectJoinType): string
|
|
13121
13406
|
}
|
|
13122
13407
|
|
|
13123
13408
|
export interface SqlSelectOrder {
|
|
@@ -13667,7 +13952,7 @@ export interface TreeClass {
|
|
|
13667
13952
|
node_changed: (tree: Tree, node: TreeNode) => void
|
|
13668
13953
|
node_inserted: (tree: Tree, node: TreeNode) => void
|
|
13669
13954
|
node_has_child_toggled: (tree: Tree, node: TreeNode) => void
|
|
13670
|
-
node_deleted: (tree: Tree, node_path: string
|
|
13955
|
+
node_deleted: (tree: Tree, node_path: string) => void
|
|
13671
13956
|
}
|
|
13672
13957
|
|
|
13673
13958
|
export abstract class TreeClass {
|
|
@@ -13853,9 +14138,9 @@ export interface TreeNodeClass {
|
|
|
13853
14138
|
node_changed: (reporting: TreeNode, node: TreeNode) => void
|
|
13854
14139
|
node_inserted: (reporting: TreeNode, node: TreeNode) => void
|
|
13855
14140
|
node_has_child_toggled: (reporting: TreeNode, node: TreeNode) => void
|
|
13856
|
-
node_deleted: (reporting: TreeNode, relative_path: string
|
|
14141
|
+
node_deleted: (reporting: TreeNode, relative_path: string) => void
|
|
13857
14142
|
dump_header: (node: TreeNode) => string | null
|
|
13858
|
-
dump_children: (node: TreeNode, prefix: string
|
|
14143
|
+
dump_children: (node: TreeNode, prefix: string, in_string: GLib.String) => void
|
|
13859
14144
|
}
|
|
13860
14145
|
|
|
13861
14146
|
export abstract class TreeNodeClass {
|