@girs/gda-5.0 5.0.0-3.2.6 → 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 +236 -236
- package/gda-5.0.d.ts +236 -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
|
|
|
@@ -3156,7 +3156,7 @@ export class Config extends GObject.Object {
|
|
|
3156
3156
|
* @param dsn_name the name of a DSN, in the "[<username>[:<password>]`]`<DSN>" format
|
|
3157
3157
|
* @returns TRUE if an authentication is needed
|
|
3158
3158
|
*/
|
|
3159
|
-
static dsn_needs_authentication(dsn_name: string
|
|
3159
|
+
static dsn_needs_authentication(dsn_name: string): boolean
|
|
3160
3160
|
static error_quark(): GLib.Quark
|
|
3161
3161
|
/**
|
|
3162
3162
|
* Get a pointer to the global (unique) #GdaConfig object. This functions increments
|
|
@@ -3173,7 +3173,7 @@ export class Config extends GObject.Object {
|
|
|
3173
3173
|
* @param dsn_name the name of the DSN to look for
|
|
3174
3174
|
* @returns a pointer to read-only #GdaDsnInfo structure, or %NULL if not found
|
|
3175
3175
|
*/
|
|
3176
|
-
static get_dsn_info(dsn_name: string
|
|
3176
|
+
static get_dsn_info(dsn_name: string): DsnInfo
|
|
3177
3177
|
/**
|
|
3178
3178
|
* Get a pointer to a read-only #GdaDsnInfo at the `index` position
|
|
3179
3179
|
* @param index an index
|
|
@@ -3185,7 +3185,7 @@ export class Config extends GObject.Object {
|
|
|
3185
3185
|
* @param dsn_name a DSN
|
|
3186
3186
|
* @returns the index or -1 if not found
|
|
3187
3187
|
*/
|
|
3188
|
-
static get_dsn_info_index(dsn_name: string
|
|
3188
|
+
static get_dsn_info_index(dsn_name: string): number
|
|
3189
3189
|
/**
|
|
3190
3190
|
* Get the number of defined DSN
|
|
3191
3191
|
* @returns the number of defined DSN
|
|
@@ -3200,13 +3200,13 @@ export class Config extends GObject.Object {
|
|
|
3200
3200
|
* @param provider_name a database provider
|
|
3201
3201
|
* @returns a pointer to the #GdaServerProvider, or %NULL if an error occurred
|
|
3202
3202
|
*/
|
|
3203
|
-
static get_provider(provider_name: string
|
|
3203
|
+
static get_provider(provider_name: string): ServerProvider
|
|
3204
3204
|
/**
|
|
3205
3205
|
* Get some information about the a database provider (adapter) named
|
|
3206
3206
|
* @param provider_name a database provider
|
|
3207
3207
|
* @returns a pointer to read-only #GdaProviderInfo structure, or %NULL if not found
|
|
3208
3208
|
*/
|
|
3209
|
-
static get_provider_info(provider_name: string
|
|
3209
|
+
static get_provider_info(provider_name: string): ProviderInfo
|
|
3210
3210
|
/**
|
|
3211
3211
|
* Get a #GdaDataModel representing all the configured DSN, and keeping itself up to date with
|
|
3212
3212
|
* the changes in the declared DSN.
|
|
@@ -3243,7 +3243,7 @@ export class Config extends GObject.Object {
|
|
|
3243
3243
|
* @param dsn_name the name of the DSN to remove
|
|
3244
3244
|
* @returns TRUE if no error occurred
|
|
3245
3245
|
*/
|
|
3246
|
-
static remove_dsn(dsn_name: string
|
|
3246
|
+
static remove_dsn(dsn_name: string): boolean
|
|
3247
3247
|
}
|
|
3248
3248
|
|
|
3249
3249
|
export module Connection {
|
|
@@ -3618,7 +3618,7 @@ export interface Connection extends Lockable {
|
|
|
3618
3618
|
* @param condition_value the `condition_column_type'`s GType
|
|
3619
3619
|
* @returns TRUE if no error occurred, FALSE otherwise
|
|
3620
3620
|
*/
|
|
3621
|
-
delete_row_from_table(table: string
|
|
3621
|
+
delete_row_from_table(table: string, condition_column_name: string, condition_value: any): boolean
|
|
3622
3622
|
/**
|
|
3623
3623
|
* Delete the SAVEPOINT named `name` when not used anymore.
|
|
3624
3624
|
* @param name name of the savepoint to delete
|
|
@@ -3631,18 +3631,18 @@ export interface Connection extends Lockable {
|
|
|
3631
3631
|
* @param sql a query statement that must not begin with "SELECT"
|
|
3632
3632
|
* @returns the number of rows affected or -1, or -2
|
|
3633
3633
|
*/
|
|
3634
|
-
execute_non_select_command(sql: string
|
|
3634
|
+
execute_non_select_command(sql: string): number
|
|
3635
3635
|
/**
|
|
3636
3636
|
* Execute a SQL SELECT command over an opened connection.
|
|
3637
3637
|
* @param sql a query statement that must begin with "SELECT"
|
|
3638
3638
|
* @returns a new #GdaDataModel if successful, %NULL otherwise
|
|
3639
3639
|
*/
|
|
3640
|
-
execute_select_command(sql: string
|
|
3640
|
+
execute_select_command(sql: string): DataModel
|
|
3641
3641
|
/**
|
|
3642
3642
|
* Gets the user name used to open this connection.
|
|
3643
3643
|
* @returns the user name.
|
|
3644
3644
|
*/
|
|
3645
|
-
get_authentication(): string
|
|
3645
|
+
get_authentication(): string
|
|
3646
3646
|
/**
|
|
3647
3647
|
* Gets the connection string used to open this connection.
|
|
3648
3648
|
*
|
|
@@ -3651,13 +3651,13 @@ export interface Connection extends Lockable {
|
|
|
3651
3651
|
* to open a connection on the underlying data source.
|
|
3652
3652
|
* @returns the connection string used when opening the connection.
|
|
3653
3653
|
*/
|
|
3654
|
-
get_cnc_string(): string
|
|
3654
|
+
get_cnc_string(): string
|
|
3655
3655
|
/**
|
|
3656
3656
|
* This function allows you to determine the actual format for the date values.
|
|
3657
3657
|
* @returns %TRUE if no error occurred
|
|
3658
3658
|
*/
|
|
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
|
|
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
|
|
3661
3661
|
/**
|
|
3662
3662
|
* Retrieves a list of the last errors occurred during the connection. The returned list is
|
|
3663
3663
|
* chronologically ordered such as that the most recent event is the #GdaConnectionEvent of the first node.
|
|
@@ -3699,7 +3699,7 @@ export interface Connection extends Lockable {
|
|
|
3699
3699
|
* Gets the name (identifier) of the database provider used by `cnc`
|
|
3700
3700
|
* @returns a non modifiable string
|
|
3701
3701
|
*/
|
|
3702
|
-
get_provider_name(): string
|
|
3702
|
+
get_provider_name(): string
|
|
3703
3703
|
/**
|
|
3704
3704
|
* Get the status of `cnc` regarding transactions. The returned object should not be modified
|
|
3705
3705
|
* or destroyed; however it may be modified or destroyed by the connection itself.
|
|
@@ -3720,7 +3720,7 @@ export interface Connection extends Lockable {
|
|
|
3720
3720
|
* @param values a list of values (as #GValue)
|
|
3721
3721
|
* @returns TRUE if no error occurred, FALSE otherwise
|
|
3722
3722
|
*/
|
|
3723
|
-
insert_row_into_table_v(table: string
|
|
3723
|
+
insert_row_into_table_v(table: string, col_names: string[], values: any[]): boolean
|
|
3724
3724
|
/**
|
|
3725
3725
|
* Checks whether a connection is open or not.
|
|
3726
3726
|
* @returns %TRUE if the connection is open, %FALSE if it's not.
|
|
@@ -3736,7 +3736,7 @@ export interface Connection extends Lockable {
|
|
|
3736
3736
|
* @param sql an SQL command to parse, not %NULL
|
|
3737
3737
|
* @returns a #GdaStatement representing the SQL command, or %NULL if an error occurred
|
|
3738
3738
|
*/
|
|
3739
|
-
parse_sql_string(sql: string
|
|
3739
|
+
parse_sql_string(sql: string): [ /* returnType */ Statement, /* params */ Set ]
|
|
3740
3740
|
/**
|
|
3741
3741
|
* Performs the operation described by `op` (which should have been created using
|
|
3742
3742
|
* gda_connection_create_operation()). It is a wrapper around the gda_server_provider_perform_operation()
|
|
@@ -3771,7 +3771,7 @@ export interface Connection extends Lockable {
|
|
|
3771
3771
|
* @param id an SQL identifier
|
|
3772
3772
|
* @returns a new string, to free with g_free() once not needed anymore
|
|
3773
3773
|
*/
|
|
3774
|
-
quote_sql_identifier(id: string
|
|
3774
|
+
quote_sql_identifier(id: string): string | null
|
|
3775
3775
|
/**
|
|
3776
3776
|
* Executes the statement upon which `rstmt` is built. Note that as several statements can actually be executed by this
|
|
3777
3777
|
* method, it is recommended to be within a transaction.
|
|
@@ -3998,7 +3998,7 @@ export interface Connection extends Lockable {
|
|
|
3998
3998
|
* @param values a list of values (as #GValue)
|
|
3999
3999
|
* @returns TRUE if no error occurred, FALSE otherwise
|
|
4000
4000
|
*/
|
|
4001
|
-
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
|
|
4002
4002
|
/**
|
|
4003
4003
|
* Produces a fully quoted and escaped string from a GValue
|
|
4004
4004
|
* @param from #GValue to convert from
|
|
@@ -4096,7 +4096,7 @@ export class Connection extends GObject.Object {
|
|
|
4096
4096
|
* @param options options for the connection (see #GdaConnectionOptions).
|
|
4097
4097
|
* @returns a new #GdaConnection if connection opening was successful or %NULL if there was an error.
|
|
4098
4098
|
*/
|
|
4099
|
-
static new_from_dsn(dsn: string
|
|
4099
|
+
static new_from_dsn(dsn: string, auth_string: string | null, options: ConnectionOptions): Connection
|
|
4100
4100
|
/**
|
|
4101
4101
|
* This function is similar to gda_connection_open_from_string(), except it does not actually open the
|
|
4102
4102
|
* connection, you have to open it using gda_connection_open().
|
|
@@ -4107,7 +4107,7 @@ export class Connection extends GObject.Object {
|
|
|
4107
4107
|
* @param options options for the connection (see #GdaConnectionOptions).
|
|
4108
4108
|
* @returns a new #GdaConnection if connection opening was successful or %NULL if there was an error.
|
|
4109
4109
|
*/
|
|
4110
|
-
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
|
|
4111
4111
|
_init(config?: Connection.ConstructorProperties): void
|
|
4112
4112
|
static error_quark(): GLib.Quark
|
|
4113
4113
|
/**
|
|
@@ -4137,7 +4137,7 @@ export class Connection extends GObject.Object {
|
|
|
4137
4137
|
* @param options options for the connection (see #GdaConnectionOptions).
|
|
4138
4138
|
* @returns a new #GdaConnection if connection opening was successful or %NULL if there was an error.
|
|
4139
4139
|
*/
|
|
4140
|
-
static open_from_dsn(dsn: string
|
|
4140
|
+
static open_from_dsn(dsn: string, auth_string: string | null, options: ConnectionOptions): Connection
|
|
4141
4141
|
/**
|
|
4142
4142
|
* Opens a connection given a provider ID and a connection string. This
|
|
4143
4143
|
* allows applications to open connections without having to create
|
|
@@ -4182,7 +4182,7 @@ export class Connection extends GObject.Object {
|
|
|
4182
4182
|
* @param options options for the connection (see #GdaConnectionOptions).
|
|
4183
4183
|
* @returns a new #GdaConnection if connection opening was successful or %NULL if there was an error.
|
|
4184
4184
|
*/
|
|
4185
|
-
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
|
|
4186
4186
|
/**
|
|
4187
4187
|
* Opens an SQLite connection even if the SQLite provider is not installed,
|
|
4188
4188
|
* to be used by database providers which need a temporary database to store
|
|
@@ -4192,7 +4192,7 @@ export class Connection extends GObject.Object {
|
|
|
4192
4192
|
* @param auto_unlink if %TRUE, then the database file will be removed afterwards
|
|
4193
4193
|
* @returns a new #GdaConnection, or %NULL if an error occurred
|
|
4194
4194
|
*/
|
|
4195
|
-
static open_sqlite(directory: string | null, filename: string
|
|
4195
|
+
static open_sqlite(directory: string | null, filename: string, auto_unlink: boolean): Connection
|
|
4196
4196
|
/**
|
|
4197
4197
|
* Extract the provider, connection parameters, username and password from `string`.
|
|
4198
4198
|
* in `string,` the various parts are strings
|
|
@@ -4224,7 +4224,7 @@ export class Connection extends GObject.Object {
|
|
|
4224
4224
|
* @param out_username a place to store the new string containing the <username> part
|
|
4225
4225
|
* @param out_password a place to store the new string containing the <password> part, or %NULL
|
|
4226
4226
|
*/
|
|
4227
|
-
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
|
|
4228
4228
|
}
|
|
4229
4229
|
|
|
4230
4230
|
export module ConnectionEvent {
|
|
@@ -4259,7 +4259,7 @@ export interface ConnectionEvent {
|
|
|
4259
4259
|
* the the description is the SQL of the command.
|
|
4260
4260
|
* @returns @event's description.
|
|
4261
4261
|
*/
|
|
4262
|
-
get_description(): string
|
|
4262
|
+
get_description(): string
|
|
4263
4263
|
/**
|
|
4264
4264
|
* Get `event'`s severity (from a simple notice to a fatal event)
|
|
4265
4265
|
* @returns the event type
|
|
@@ -4270,14 +4270,14 @@ export interface ConnectionEvent {
|
|
|
4270
4270
|
* @returns the #GdaConnectionEventCode event's code
|
|
4271
4271
|
*/
|
|
4272
4272
|
get_gda_code(): ConnectionEventCode
|
|
4273
|
-
get_source(): string
|
|
4273
|
+
get_source(): string
|
|
4274
4274
|
/**
|
|
4275
4275
|
* Get the SQLSTATE value of `event`. Even though the SQLSTATE values are specified by ANSI SQL and ODBC,
|
|
4276
4276
|
* consult each DBMS for the possible values. However, the "00000" (success) value means that there is no error,
|
|
4277
4277
|
* and the "HY000" (general error) value means an error but no better error code available.
|
|
4278
4278
|
* @returns @event's SQL state.
|
|
4279
4279
|
*/
|
|
4280
|
-
get_sqlstate(): string
|
|
4280
|
+
get_sqlstate(): string
|
|
4281
4281
|
/**
|
|
4282
4282
|
* Sets `event'`s code: the code is specific to the provider being used.
|
|
4283
4283
|
* If you want to have a common understanding of the event codes, use
|
|
@@ -4311,14 +4311,14 @@ export interface ConnectionEvent {
|
|
|
4311
4311
|
* Sets `event'`s `source;` this function should not be called directly
|
|
4312
4312
|
* @param source a source.
|
|
4313
4313
|
*/
|
|
4314
|
-
set_source(source: string
|
|
4314
|
+
set_source(source: string): void
|
|
4315
4315
|
/**
|
|
4316
4316
|
* Changes the SQLSTATE code of `event,` this function should not be called directly
|
|
4317
4317
|
*
|
|
4318
4318
|
* Sets `event'`s SQL state.
|
|
4319
4319
|
* @param sqlstate SQL state.
|
|
4320
4320
|
*/
|
|
4321
|
-
set_sqlstate(sqlstate: string
|
|
4321
|
+
set_sqlstate(sqlstate: string): void
|
|
4322
4322
|
|
|
4323
4323
|
// Class property signals of Gda-5.0.Gda.ConnectionEvent
|
|
4324
4324
|
|
|
@@ -4698,7 +4698,7 @@ export class DataModelDir extends GObject.Object {
|
|
|
4698
4698
|
* @param basedir a directory
|
|
4699
4699
|
* @returns a new #GdaDataModel
|
|
4700
4700
|
*/
|
|
4701
|
-
static new(basedir: string
|
|
4701
|
+
static new(basedir: string): DataModel
|
|
4702
4702
|
}
|
|
4703
4703
|
|
|
4704
4704
|
export module DataModelImport {
|
|
@@ -4876,7 +4876,7 @@ export class DataModelImport extends GObject.Object {
|
|
|
4876
4876
|
* @param options importing options
|
|
4877
4877
|
* @returns a pointer to the newly created #GdaDataModel.
|
|
4878
4878
|
*/
|
|
4879
|
-
static new_file(filename: string
|
|
4879
|
+
static new_file(filename: string, random_access: boolean, options: Set | null): DataModel
|
|
4880
4880
|
/**
|
|
4881
4881
|
* Creates a new #GdaDataModel object which contains the data stored in the `data` string.
|
|
4882
4882
|
*
|
|
@@ -4887,7 +4887,7 @@ export class DataModelImport extends GObject.Object {
|
|
|
4887
4887
|
* @param options importing options, see gda_data_model_import_new_file() for more information
|
|
4888
4888
|
* @returns a pointer to the newly created #GdaDataModel.
|
|
4889
4889
|
*/
|
|
4890
|
-
static new_mem(data: string
|
|
4890
|
+
static new_mem(data: string, random_access: boolean, options: Set | null): DataModel
|
|
4891
4891
|
/**
|
|
4892
4892
|
* Creates a new #GdaDataModel and loads the data in `node`. The resulting data model
|
|
4893
4893
|
* can be accessed in a random way.
|
|
@@ -4990,7 +4990,7 @@ export interface DataModelIter {
|
|
|
4990
4990
|
* @param field_name the requested column name
|
|
4991
4991
|
* @returns the #GValue, or %NULL
|
|
4992
4992
|
*/
|
|
4993
|
-
get_value_for_field(field_name: string
|
|
4993
|
+
get_value_for_field(field_name: string): any | null
|
|
4994
4994
|
/**
|
|
4995
4995
|
* Declare all the parameters in `iter` invalid, without modifying the
|
|
4996
4996
|
* #GdaDataModel `iter` is for or changing the row it represents. This method
|
|
@@ -5313,7 +5313,7 @@ export interface DataPivot extends DataModel {
|
|
|
5313
5313
|
* @param alias the field alias, or %NULL
|
|
5314
5314
|
* @returns %TRUE if no error occurred
|
|
5315
5315
|
*/
|
|
5316
|
-
add_data(aggregate_type: DataPivotAggregate, field: string
|
|
5316
|
+
add_data(aggregate_type: DataPivotAggregate, field: string, alias: string | null): boolean
|
|
5317
5317
|
/**
|
|
5318
5318
|
* Specifies that `field` has to be included in the analysis.
|
|
5319
5319
|
* `field` is a field specification with the following accepted syntaxes:
|
|
@@ -5334,7 +5334,7 @@ export interface DataPivot extends DataModel {
|
|
|
5334
5334
|
* @param alias the field alias, or %NULL
|
|
5335
5335
|
* @returns %TRUE if no error occurred
|
|
5336
5336
|
*/
|
|
5337
|
-
add_field(field_type: DataPivotFieldType, field: string
|
|
5337
|
+
add_field(field_type: DataPivotFieldType, field: string, alias: string | null): boolean
|
|
5338
5338
|
/**
|
|
5339
5339
|
* Acutally populates `pivot` by analysing the data from the provided data model.
|
|
5340
5340
|
* @returns %TRUE if no error occurred.
|
|
@@ -5553,7 +5553,7 @@ export interface DataProxy extends DataModel {
|
|
|
5553
5553
|
* Get the current filter expression used by `proxy`.
|
|
5554
5554
|
* @returns the current filter expression or %NULL if no filter has been set
|
|
5555
5555
|
*/
|
|
5556
|
-
get_filter_expr(): string
|
|
5556
|
+
get_filter_expr(): string
|
|
5557
5557
|
/**
|
|
5558
5558
|
* Get the total number of filtered rows in `proxy` if a filter has been applied. As new rows
|
|
5559
5559
|
* (rows added to the proxy and not yet added to the proxied data model) and rows to remove
|
|
@@ -5990,7 +5990,7 @@ export interface DataSelect extends DataModel {
|
|
|
5990
5990
|
* @param sql an SQL text
|
|
5991
5991
|
* @returns TRUE if no error occurred.
|
|
5992
5992
|
*/
|
|
5993
|
-
set_modification_statement_sql(sql: string
|
|
5993
|
+
set_modification_statement_sql(sql: string): boolean
|
|
5994
5994
|
/**
|
|
5995
5995
|
* Specifies the SQL condition corresponding to the WHERE part of a SELECT statement which would
|
|
5996
5996
|
* return only 1 row (the expression of the primary key).
|
|
@@ -6008,7 +6008,7 @@ export interface DataSelect extends DataModel {
|
|
|
6008
6008
|
* @param sql_where an SQL condition (without the WHERE keyword)
|
|
6009
6009
|
* @returns TRUE if no error occurred
|
|
6010
6010
|
*/
|
|
6011
|
-
set_row_selection_condition_sql(sql_where: string
|
|
6011
|
+
set_row_selection_condition_sql(sql_where: string): boolean
|
|
6012
6012
|
|
|
6013
6013
|
// Own virtual methods of Gda-5.0.Gda.DataSelect
|
|
6014
6014
|
|
|
@@ -6524,7 +6524,7 @@ export interface Holder extends Lockable {
|
|
|
6524
6524
|
* @param attribute attribute name as a string
|
|
6525
6525
|
* @returns a read-only #GValue, or %NULL if not attribute named @attribute has been set for @holder
|
|
6526
6526
|
*/
|
|
6527
|
-
get_attribute(attribute: string
|
|
6527
|
+
get_attribute(attribute: string): any
|
|
6528
6528
|
/**
|
|
6529
6529
|
* Get the holder which makes `holder` change its value when the holder's value is changed.
|
|
6530
6530
|
* @returns the #GdaHolder or %NULL
|
|
@@ -6541,7 +6541,7 @@ export interface Holder extends Lockable {
|
|
|
6541
6541
|
* Get the ID of `holder`. The ID can be set using `holder'`s "id" property
|
|
6542
6542
|
* @returns the ID (don't modify the string).
|
|
6543
6543
|
*/
|
|
6544
|
-
get_id(): string
|
|
6544
|
+
get_id(): string
|
|
6545
6545
|
/**
|
|
6546
6546
|
* Get wether the holder can be NULL or not
|
|
6547
6547
|
* @returns TRUE if the holder cannot be NULL
|
|
@@ -6604,7 +6604,7 @@ export interface Holder extends Lockable {
|
|
|
6604
6604
|
* @param value a #GValue, or %NULL
|
|
6605
6605
|
* @param destroy a function to be called when `attribute` is not needed anymore, or %NULL
|
|
6606
6606
|
*/
|
|
6607
|
-
set_attribute(attribute: string
|
|
6607
|
+
set_attribute(attribute: string, value: any, destroy: GLib.DestroyNotify): void
|
|
6608
6608
|
/**
|
|
6609
6609
|
* Sets `holder` to change when `bind_to` changes (and does not make `bind_to` change when `holder` changes).
|
|
6610
6610
|
* For the operation to succeed, the GType of `holder` and `bind_to` must be the same, with the exception that
|
|
@@ -6676,7 +6676,7 @@ export interface Holder extends Lockable {
|
|
|
6676
6676
|
* @param value a value to set the holder to, as a string
|
|
6677
6677
|
* @returns TRUE if value has been set
|
|
6678
6678
|
*/
|
|
6679
|
-
set_value_str(dh: DataHandler, value: string
|
|
6679
|
+
set_value_str(dh: DataHandler, value: string): boolean
|
|
6680
6680
|
/**
|
|
6681
6681
|
* Set `holder'`s value to its default value.
|
|
6682
6682
|
* @returns TRUE if @holder has got a default value
|
|
@@ -6735,7 +6735,7 @@ export interface Holder extends Lockable {
|
|
|
6735
6735
|
|
|
6736
6736
|
// Own virtual methods of Gda-5.0.Gda.Holder
|
|
6737
6737
|
|
|
6738
|
-
vfunc_att_changed(att_name: string
|
|
6738
|
+
vfunc_att_changed(att_name: string, att_value: any): void
|
|
6739
6739
|
vfunc_changed(): void
|
|
6740
6740
|
vfunc_source_changed(): void
|
|
6741
6741
|
vfunc_validate_change(new_value: any): GLib.Error
|
|
@@ -6887,7 +6887,7 @@ export interface MetaStore {
|
|
|
6887
6887
|
* @param table_name the name of a table present in `store`
|
|
6888
6888
|
* @returns a new #GdaDataModel
|
|
6889
6889
|
*/
|
|
6890
|
-
create_modify_data_model(table_name: string
|
|
6890
|
+
create_modify_data_model(table_name: string): DataModel
|
|
6891
6891
|
/**
|
|
6892
6892
|
* Defines a new declared foreign key into `store`. If another declared foreign key is already defined
|
|
6893
6893
|
* between the two tables and with the same name, then it is first removed.
|
|
@@ -6918,7 +6918,7 @@ export interface MetaStore {
|
|
|
6918
6918
|
* @param ref_colnames an array of column names from the referenced table
|
|
6919
6919
|
* @returns %TRUE if no error occurred
|
|
6920
6920
|
*/
|
|
6921
|
-
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
|
|
6922
6922
|
/**
|
|
6923
6923
|
* Extracts some data stored in `store` using a custom SELECT query. If the `select_sql` filter involves
|
|
6924
6924
|
* SQL identifiers (such as table or column names), then the values should have been adapted using
|
|
@@ -6931,7 +6931,7 @@ export interface MetaStore {
|
|
|
6931
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.
|
|
6932
6932
|
* @returns a new #GdaDataModel, or %NULL if an error occurred
|
|
6933
6933
|
*/
|
|
6934
|
-
extract(select_sql: string
|
|
6934
|
+
extract(select_sql: string, vars: GLib.HashTable | null): DataModel
|
|
6935
6935
|
/**
|
|
6936
6936
|
* The #GdaMetaStore object maintains a list of (name,value) attributes (attributes names starting with a '_'
|
|
6937
6937
|
* character are for internal use only and cannot be altered). This method and the gda_meta_store_set_attribute_value()
|
|
@@ -6945,7 +6945,7 @@ export interface MetaStore {
|
|
|
6945
6945
|
* @param att_name name of the attribute to get
|
|
6946
6946
|
* @returns TRUE if no error occurred
|
|
6947
6947
|
*/
|
|
6948
|
-
get_attribute_value(att_name: string
|
|
6948
|
+
get_attribute_value(att_name: string): [ /* returnType */ boolean, /* att_value */ string | null ]
|
|
6949
6949
|
/**
|
|
6950
6950
|
* Get a pointer to the #GdaConnection object internally used by `store` to store
|
|
6951
6951
|
* its contents.
|
|
@@ -6971,7 +6971,7 @@ export interface MetaStore {
|
|
|
6971
6971
|
* @param values values
|
|
6972
6972
|
* @returns %TRUE if no error occurred
|
|
6973
6973
|
*/
|
|
6974
|
-
modify(table_name: string
|
|
6974
|
+
modify(table_name: string, new_data: DataModel | null, condition: string | null, value_names: string[], values: any[]): boolean
|
|
6975
6975
|
/**
|
|
6976
6976
|
* Propagates an update to `store,` the update's contents is represented by `new_data,` this function is
|
|
6977
6977
|
* primarily reserved to database providers.
|
|
@@ -7033,7 +7033,7 @@ export interface MetaStore {
|
|
|
7033
7033
|
* @param xml_description an XML description of the table or view to add to `store`
|
|
7034
7034
|
* @returns TRUE if the new object has successfully been added
|
|
7035
7035
|
*/
|
|
7036
|
-
schema_add_custom_object(xml_description: string
|
|
7036
|
+
schema_add_custom_object(xml_description: string): boolean
|
|
7037
7037
|
/**
|
|
7038
7038
|
* Get an ordered list of the tables `store` knows about. The tables are ordered in a way that tables dependencies
|
|
7039
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
|
|
@@ -7049,7 +7049,7 @@ export interface MetaStore {
|
|
|
7049
7049
|
* @param table_name the name of the table for which all the dependencies must be listed
|
|
7050
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.
|
|
7051
7051
|
*/
|
|
7052
|
-
schema_get_depend_tables(table_name: string
|
|
7052
|
+
schema_get_depend_tables(table_name: string): string[]
|
|
7053
7053
|
/**
|
|
7054
7054
|
* Creates a new #GdaMetaStruct object representing `store'`s internal database structure.
|
|
7055
7055
|
* @returns a new #GdaMetaStruct object, or %NULL if an error occurred
|
|
@@ -7060,7 +7060,7 @@ export interface MetaStore {
|
|
|
7060
7060
|
* @param obj_name name of the custom object to remove
|
|
7061
7061
|
* @returns TRUE if the custom object has successfully been removed
|
|
7062
7062
|
*/
|
|
7063
|
-
schema_remove_custom_object(obj_name: string
|
|
7063
|
+
schema_remove_custom_object(obj_name: string): boolean
|
|
7064
7064
|
/**
|
|
7065
7065
|
* Set the value of the attribute named `att_name` to `att_value;` see gda_meta_store_get_attribute_value() for
|
|
7066
7066
|
* more information.
|
|
@@ -7068,7 +7068,7 @@ export interface MetaStore {
|
|
|
7068
7068
|
* @param att_value value of the attribute to set, or %NULL to unset the attribute
|
|
7069
7069
|
* @returns TRUE if no error occurred
|
|
7070
7070
|
*/
|
|
7071
|
-
set_attribute_value(att_name: string
|
|
7071
|
+
set_attribute_value(att_name: string, att_value: string | null): boolean
|
|
7072
7072
|
/**
|
|
7073
7073
|
* Specifies how `store` must handle SQL identifiers it has to store. This method is mainly used by
|
|
7074
7074
|
* database providers.
|
|
@@ -7106,7 +7106,7 @@ export interface MetaStore {
|
|
|
7106
7106
|
* @param ref_table the name of the referenced table
|
|
7107
7107
|
* @returns %TRUE if no error occurred
|
|
7108
7108
|
*/
|
|
7109
|
-
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
|
|
7110
7110
|
|
|
7111
7111
|
// Own virtual methods of Gda-5.0.Gda.MetaStore
|
|
7112
7112
|
|
|
@@ -7176,7 +7176,7 @@ export class MetaStore extends GObject.Object {
|
|
|
7176
7176
|
* @param file_name a file name
|
|
7177
7177
|
* @returns the newly created object, or %NULL if an error occurred
|
|
7178
7178
|
*/
|
|
7179
|
-
static new_with_file(file_name: string
|
|
7179
|
+
static new_with_file(file_name: string): MetaStore
|
|
7180
7180
|
_init(config?: MetaStore.ConstructorProperties): void
|
|
7181
7181
|
static error_quark(): GLib.Quark
|
|
7182
7182
|
/**
|
|
@@ -7190,7 +7190,7 @@ export class MetaStore extends GObject.Object {
|
|
|
7190
7190
|
* @param cnc a #GdaConnection
|
|
7191
7191
|
* @returns a new string, to free with g_free() once not needed anymore
|
|
7192
7192
|
*/
|
|
7193
|
-
static sql_identifier_quote(id: string
|
|
7193
|
+
static sql_identifier_quote(id: string, cnc: Connection): string | null
|
|
7194
7194
|
}
|
|
7195
7195
|
|
|
7196
7196
|
export module MetaStruct {
|
|
@@ -7321,7 +7321,7 @@ export interface MetaStruct {
|
|
|
7321
7321
|
* @param xml_spec_file the specifications as the name of an XML file
|
|
7322
7322
|
* @returns TRUE if no error has occurred
|
|
7323
7323
|
*/
|
|
7324
|
-
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
|
|
7325
7325
|
/**
|
|
7326
7326
|
* Reorders the list of database objects within `mstruct` in a way specified by `sort_type`.
|
|
7327
7327
|
* @param sort_type the kind of sorting requested
|
|
@@ -7711,27 +7711,27 @@ export interface ServerOperation {
|
|
|
7711
7711
|
|
|
7712
7712
|
// Owm methods of Gda-5.0.Gda.ServerOperation
|
|
7713
7713
|
|
|
7714
|
-
add_item_to_sequence(seq_path: string
|
|
7715
|
-
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
|
|
7716
7716
|
/**
|
|
7717
7717
|
* Get the complete path to the parent of the node defined by `path`
|
|
7718
7718
|
* @param path a complete path to a node (starting with "/")
|
|
7719
7719
|
* @returns a new string or %NULL if the node does not have any parent or does not exist.
|
|
7720
7720
|
*/
|
|
7721
|
-
get_node_parent(path: string
|
|
7721
|
+
get_node_parent(path: string): string | null
|
|
7722
7722
|
/**
|
|
7723
7723
|
* Get the last part of `path`
|
|
7724
7724
|
* @param path a complete path to a node (starting with "/")
|
|
7725
7725
|
* @returns a new string, or %NULL if an error occurred
|
|
7726
7726
|
*/
|
|
7727
|
-
get_node_path_portion(path: string
|
|
7727
|
+
get_node_path_portion(path: string): string | null
|
|
7728
7728
|
/**
|
|
7729
7729
|
* Convenience function to get the type of a node.
|
|
7730
7730
|
* @param path a complete path to a node (starting with "/")
|
|
7731
7731
|
* @param status a place to store the status of the node, or %NULL
|
|
7732
7732
|
* @returns the type of node, or GDA_SERVER_OPERATION_NODE_UNKNOWN if the node was not found
|
|
7733
7733
|
*/
|
|
7734
|
-
get_node_type(path: string
|
|
7734
|
+
get_node_type(path: string, status: ServerOperationNodeStatus | null): ServerOperationNodeType
|
|
7735
7735
|
/**
|
|
7736
7736
|
* Get the type of operation `op` is for
|
|
7737
7737
|
* @returns a #GdaServerOperationType enum
|
|
@@ -7748,11 +7748,11 @@ export interface ServerOperation {
|
|
|
7748
7748
|
* @param path a complete path to a sequence node (starting with "/")
|
|
7749
7749
|
* @returns a array of strings containing the complete paths of the nodes contained at @path (free with g_strfreev())
|
|
7750
7750
|
*/
|
|
7751
|
-
get_sequence_item_names(path: string
|
|
7752
|
-
get_sequence_max_size(path: string
|
|
7753
|
-
get_sequence_min_size(path: string
|
|
7754
|
-
get_sequence_name(path: string
|
|
7755
|
-
get_sequence_size(path: string
|
|
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
|
|
7756
7756
|
/**
|
|
7757
7757
|
* This method is similar to gda_server_operation_get_value_at(), but for SQL identifiers: a new string
|
|
7758
7758
|
* is returned instead of a #GValue. Also the returned string is assumed to represents an SQL identifier
|
|
@@ -7763,13 +7763,13 @@ export interface ServerOperation {
|
|
|
7763
7763
|
* @param path a complete path to a node (starting with "/")
|
|
7764
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).
|
|
7765
7765
|
*/
|
|
7766
|
-
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
|
|
7767
7767
|
/**
|
|
7768
7768
|
* Get the value for the node at the `path` path
|
|
7769
7769
|
* @param path a complete path to a node (starting with "/")
|
|
7770
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.
|
|
7771
7771
|
*/
|
|
7772
|
-
get_value_at(path: string
|
|
7772
|
+
get_value_at(path: string): any | null
|
|
7773
7773
|
/**
|
|
7774
7774
|
* Tells if all the required values in `op` have been defined.
|
|
7775
7775
|
*
|
|
@@ -7846,12 +7846,12 @@ export interface ServerOperation {
|
|
|
7846
7846
|
* @param path a complete path to a node (starting with "/")
|
|
7847
7847
|
* @returns %TRUE if no error occurred
|
|
7848
7848
|
*/
|
|
7849
|
-
set_value_at(value: string | null, path: string
|
|
7849
|
+
set_value_at(value: string | null, path: string): boolean
|
|
7850
7850
|
|
|
7851
7851
|
// Own virtual methods of Gda-5.0.Gda.ServerOperation
|
|
7852
7852
|
|
|
7853
|
-
vfunc_seq_item_added(seq_path: string
|
|
7854
|
-
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
|
|
7855
7855
|
|
|
7856
7856
|
// Own signals of Gda-5.0.Gda.ServerOperation
|
|
7857
7857
|
|
|
@@ -7906,7 +7906,7 @@ export class ServerOperation extends GObject.Object {
|
|
|
7906
7906
|
* @param xml_file a file which has the specifications for the GdaServerOperation object to create
|
|
7907
7907
|
* @returns a new #GdaServerOperation object
|
|
7908
7908
|
*/
|
|
7909
|
-
constructor(op_type: ServerOperationType, xml_file: string
|
|
7909
|
+
constructor(op_type: ServerOperationType, xml_file: string)
|
|
7910
7910
|
/**
|
|
7911
7911
|
* IMPORTANT NOTE: Using this funtion is not the recommended way of creating a #GdaServerOperation object, the
|
|
7912
7912
|
* correct way is to use gda_server_provider_create_operation(); this method is reserved for the database provider's
|
|
@@ -7921,7 +7921,7 @@ export class ServerOperation extends GObject.Object {
|
|
|
7921
7921
|
* @param xml_file a file which has the specifications for the GdaServerOperation object to create
|
|
7922
7922
|
* @returns a new #GdaServerOperation object
|
|
7923
7923
|
*/
|
|
7924
|
-
static new(op_type: ServerOperationType, xml_file: string
|
|
7924
|
+
static new(op_type: ServerOperationType, xml_file: string): ServerOperation
|
|
7925
7925
|
_init(config?: ServerOperation.ConstructorProperties): void
|
|
7926
7926
|
static error_quark(): GLib.Quark
|
|
7927
7927
|
/**
|
|
@@ -7929,7 +7929,7 @@ export class ServerOperation extends GObject.Object {
|
|
|
7929
7929
|
* @param type a #GdaServerOperationType value
|
|
7930
7930
|
* @returns a non %NULL string (do not free or modify)
|
|
7931
7931
|
*/
|
|
7932
|
-
static op_type_to_string(type: ServerOperationType): string
|
|
7932
|
+
static op_type_to_string(type: ServerOperationType): string
|
|
7933
7933
|
/**
|
|
7934
7934
|
* Creates a new #GdaServerOperation object which contains the specifications required
|
|
7935
7935
|
* to create a database. Once these specifications provided, use
|
|
@@ -7941,7 +7941,7 @@ export class ServerOperation extends GObject.Object {
|
|
|
7941
7941
|
* @param db_name the name of the database to create, or %NULL
|
|
7942
7942
|
* @returns new #GdaServerOperation object, or %NULL if the provider does not support database creation
|
|
7943
7943
|
*/
|
|
7944
|
-
static prepare_create_database(provider: string
|
|
7944
|
+
static prepare_create_database(provider: string, db_name: string | null): ServerOperation | null
|
|
7945
7945
|
/**
|
|
7946
7946
|
* Creates a new #GdaServerOperation object which contains the specifications required
|
|
7947
7947
|
* to drop a database. Once these specifications provided, use
|
|
@@ -7953,7 +7953,7 @@ export class ServerOperation extends GObject.Object {
|
|
|
7953
7953
|
* @param db_name the name of the database to drop, or %NULL
|
|
7954
7954
|
* @returns new #GdaServerOperation object, or %NULL if the provider does not support database destruction
|
|
7955
7955
|
*/
|
|
7956
|
-
static prepare_drop_database(provider: string
|
|
7956
|
+
static prepare_drop_database(provider: string, db_name: string | null): ServerOperation | null
|
|
7957
7957
|
/**
|
|
7958
7958
|
* This is just a convenient function to create a #GdaServerOperation to drop a
|
|
7959
7959
|
* table in an opened connection.
|
|
@@ -7961,13 +7961,13 @@ export class ServerOperation extends GObject.Object {
|
|
|
7961
7961
|
* @param table_name name of the table to drop
|
|
7962
7962
|
* @returns a new #GdaServerOperation or %NULL if couldn't create the opereration.
|
|
7963
7963
|
*/
|
|
7964
|
-
static prepare_drop_table(cnc: Connection, table_name: string
|
|
7964
|
+
static prepare_drop_table(cnc: Connection, table_name: string): ServerOperation | null
|
|
7965
7965
|
/**
|
|
7966
7966
|
* Performs the reverse of gda_server_operation_op_type_to_string()
|
|
7967
7967
|
* @param str a string
|
|
7968
7968
|
* @returns the #GdaServerOperationType represented by @str, or #G_MAXINT if @str is not a valid representation of a #GdaServerOperationType
|
|
7969
7969
|
*/
|
|
7970
|
-
static string_to_op_type(str: string
|
|
7970
|
+
static string_to_op_type(str: string): ServerOperationType
|
|
7971
7971
|
}
|
|
7972
7972
|
|
|
7973
7973
|
export module ServerProvider {
|
|
@@ -8018,7 +8018,7 @@ export interface ServerProvider {
|
|
|
8018
8018
|
* @param str a string to escape
|
|
8019
8019
|
* @returns a new string suitable to use in SQL statements
|
|
8020
8020
|
*/
|
|
8021
|
-
escape_string(cnc: Connection | null, str: string
|
|
8021
|
+
escape_string(cnc: Connection | null, str: string): string | null
|
|
8022
8022
|
/**
|
|
8023
8023
|
* Finds the location of a `filename`. This function should only be used by database provider's
|
|
8024
8024
|
* implementations
|
|
@@ -8026,7 +8026,7 @@ export interface ServerProvider {
|
|
|
8026
8026
|
* @param filename name of the file to find
|
|
8027
8027
|
* @returns the complete path to @filename, or %NULL if not found
|
|
8028
8028
|
*/
|
|
8029
|
-
find_file(inst_dir: string
|
|
8029
|
+
find_file(inst_dir: string, filename: string): string | null
|
|
8030
8030
|
/**
|
|
8031
8031
|
* Find a #GdaDataHandler object to manipulate data of type `for_type`.
|
|
8032
8032
|
*
|
|
@@ -8035,7 +8035,7 @@ export interface ServerProvider {
|
|
|
8035
8035
|
* @param for_type a DBMS type definition
|
|
8036
8036
|
* @returns a #GdaDataHandler, or %NULL if the provider does not know about the @for_type type
|
|
8037
8037
|
*/
|
|
8038
|
-
get_data_handler_dbms(cnc: Connection | null, for_type: string
|
|
8038
|
+
get_data_handler_dbms(cnc: Connection | null, for_type: string): DataHandler
|
|
8039
8039
|
/**
|
|
8040
8040
|
* Provides the implementation when the default Libgda's data handlers must be used
|
|
8041
8041
|
* @param cnc a #GdaConnection object, or %NULL
|
|
@@ -8043,7 +8043,7 @@ export interface ServerProvider {
|
|
|
8043
8043
|
* @param dbms_type a DBMS type definition
|
|
8044
8044
|
* @returns a #GdaDataHandler, or %NULL
|
|
8045
8045
|
*/
|
|
8046
|
-
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
|
|
8047
8047
|
/**
|
|
8048
8048
|
* Find a #GdaDataHandler object to manipulate data of type `for_type`. The returned object must not be modified.
|
|
8049
8049
|
* @param cnc a #GdaConnection object, or %NULL
|
|
@@ -8066,19 +8066,19 @@ export interface ServerProvider {
|
|
|
8066
8066
|
* Get the name (identifier) of the provider
|
|
8067
8067
|
* @returns a string containing the provider's name
|
|
8068
8068
|
*/
|
|
8069
|
-
get_name(): string
|
|
8069
|
+
get_name(): string
|
|
8070
8070
|
/**
|
|
8071
8071
|
* Get the version of the database to which the connection is opened.
|
|
8072
8072
|
* @param cnc a #GdaConnection object
|
|
8073
8073
|
* @returns a (read only) string, or %NULL if an error occurred
|
|
8074
8074
|
*/
|
|
8075
|
-
get_server_version(cnc: Connection): string
|
|
8075
|
+
get_server_version(cnc: Connection): string
|
|
8076
8076
|
/**
|
|
8077
8077
|
* Get the version of the provider.
|
|
8078
8078
|
* @returns a string containing the version identification.
|
|
8079
8079
|
*/
|
|
8080
|
-
get_version(): string
|
|
8081
|
-
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
|
|
8082
8082
|
/**
|
|
8083
8083
|
* Reserved to database provider's implementations: get the #GdaDataHandler associated to `prov`
|
|
8084
8084
|
* for connection `cnc`. You probably want to use gda_server_provider_get_data_handler_g_type().
|
|
@@ -8142,7 +8142,7 @@ export interface ServerProvider {
|
|
|
8142
8142
|
* @param dbms_type place to get the actual database type used if the conversion succeeded, or %NULL
|
|
8143
8143
|
* @returns a new #GValue, or %NULL
|
|
8144
8144
|
*/
|
|
8145
|
-
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
|
|
8146
8146
|
/**
|
|
8147
8147
|
* Tests if a feature is supported
|
|
8148
8148
|
* @param cnc a #GdaConnection object, or %NULL
|
|
@@ -8165,7 +8165,7 @@ export interface ServerProvider {
|
|
|
8165
8165
|
* @param str a string to escape
|
|
8166
8166
|
* @returns a new string
|
|
8167
8167
|
*/
|
|
8168
|
-
unescape_string(cnc: Connection | null, str: string
|
|
8168
|
+
unescape_string(cnc: Connection | null, str: string): string | null
|
|
8169
8169
|
/**
|
|
8170
8170
|
* Produces a fully quoted and escaped string from a GValue
|
|
8171
8171
|
* @param cnc a #GdaConnection object, or %NULL
|
|
@@ -8176,11 +8176,11 @@ export interface ServerProvider {
|
|
|
8176
8176
|
|
|
8177
8177
|
// Own virtual methods of Gda-5.0.Gda.ServerProvider
|
|
8178
8178
|
|
|
8179
|
-
vfunc_add_savepoint(cnc: Connection, name: string
|
|
8180
|
-
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
|
|
8181
8181
|
vfunc_cancel(cnc: Connection, task_id: number): boolean
|
|
8182
8182
|
vfunc_close_connection(cnc: Connection): boolean
|
|
8183
|
-
vfunc_commit_transaction(cnc: Connection, name: string
|
|
8183
|
+
vfunc_commit_transaction(cnc: Connection, name: string): boolean
|
|
8184
8184
|
/**
|
|
8185
8185
|
* Creates a new #GdaServerOperation object which can be modified in order to perform the `type` type of
|
|
8186
8186
|
* action. The `options` can contain:
|
|
@@ -8206,7 +8206,7 @@ export interface ServerProvider {
|
|
|
8206
8206
|
* @returns a new #GdaSqlParser object, or %NULL.
|
|
8207
8207
|
*/
|
|
8208
8208
|
vfunc_create_parser(cnc: Connection | null): SqlParser
|
|
8209
|
-
vfunc_delete_savepoint(cnc: Connection, name: string
|
|
8209
|
+
vfunc_delete_savepoint(cnc: Connection, name: string): boolean
|
|
8210
8210
|
/**
|
|
8211
8211
|
* Escapes `str` for use within an SQL command (to avoid SQL injection attacks). Note that the returned value still needs
|
|
8212
8212
|
* to be enclosed in single quotes before being used in an SQL statement.
|
|
@@ -8215,30 +8215,30 @@ export interface ServerProvider {
|
|
|
8215
8215
|
* @param str a string to escape
|
|
8216
8216
|
* @returns a new string suitable to use in SQL statements
|
|
8217
8217
|
*/
|
|
8218
|
-
vfunc_escape_string(cnc: Connection | null, str: string
|
|
8219
|
-
vfunc_get_database(cnc: Connection): string
|
|
8220
|
-
vfunc_get_def_dbms_type(cnc: Connection, g_type: GObject.GType): string
|
|
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
|
|
8221
8221
|
/**
|
|
8222
8222
|
* Get the name (identifier) of the provider
|
|
8223
8223
|
* @virtual
|
|
8224
8224
|
* @returns a string containing the provider's name
|
|
8225
8225
|
*/
|
|
8226
|
-
vfunc_get_name(): string
|
|
8226
|
+
vfunc_get_name(): string
|
|
8227
8227
|
/**
|
|
8228
8228
|
* Get the version of the database to which the connection is opened.
|
|
8229
8229
|
* @virtual
|
|
8230
8230
|
* @param cnc a #GdaConnection object
|
|
8231
8231
|
* @returns a (read only) string, or %NULL if an error occurred
|
|
8232
8232
|
*/
|
|
8233
|
-
vfunc_get_server_version(cnc: Connection): string
|
|
8233
|
+
vfunc_get_server_version(cnc: Connection): string
|
|
8234
8234
|
/**
|
|
8235
8235
|
* Get the version of the provider.
|
|
8236
8236
|
* @virtual
|
|
8237
8237
|
* @returns a string containing the version identification.
|
|
8238
8238
|
*/
|
|
8239
|
-
vfunc_get_version(): string
|
|
8239
|
+
vfunc_get_version(): string
|
|
8240
8240
|
vfunc_handle_async(cnc: Connection): boolean
|
|
8241
|
-
vfunc_identifier_quote(cnc: Connection, id: string
|
|
8241
|
+
vfunc_identifier_quote(cnc: Connection, id: string, for_meta_store: boolean, force_quotes: boolean): string | null
|
|
8242
8242
|
vfunc_is_busy(cnc: Connection): boolean
|
|
8243
8243
|
/**
|
|
8244
8244
|
* Creates an SQL statement (possibly using some specific extensions of the DBMS) corresponding to the
|
|
@@ -8252,8 +8252,8 @@ export interface ServerProvider {
|
|
|
8252
8252
|
* @returns a new string, or %NULL if an error occurred or operation cannot be rendered as SQL.
|
|
8253
8253
|
*/
|
|
8254
8254
|
vfunc_render_operation(cnc: Connection | null, op: ServerOperation): string | null
|
|
8255
|
-
vfunc_rollback_savepoint(cnc: Connection, name: string
|
|
8256
|
-
vfunc_rollback_transaction(cnc: Connection, name: string
|
|
8255
|
+
vfunc_rollback_savepoint(cnc: Connection, name: string): boolean
|
|
8256
|
+
vfunc_rollback_transaction(cnc: Connection, name: string): boolean
|
|
8257
8257
|
vfunc_statement_prepare(cnc: Connection, stmt: Statement): boolean
|
|
8258
8258
|
/**
|
|
8259
8259
|
* Tests if a feature is supported
|
|
@@ -8280,7 +8280,7 @@ export interface ServerProvider {
|
|
|
8280
8280
|
* @param str a string to escape
|
|
8281
8281
|
* @returns a new string
|
|
8282
8282
|
*/
|
|
8283
|
-
vfunc_unescape_string(cnc: Connection | null, str: string
|
|
8283
|
+
vfunc_unescape_string(cnc: Connection | null, str: string): string | null
|
|
8284
8284
|
|
|
8285
8285
|
// Class property signals of Gda-5.0.Gda.ServerProvider
|
|
8286
8286
|
|
|
@@ -8311,7 +8311,7 @@ export class ServerProvider extends GObject.Object {
|
|
|
8311
8311
|
* @param filename name of the file to load
|
|
8312
8312
|
* @returns a new string containing @filename's contents, or %NULL if not found or if an error occurred
|
|
8313
8313
|
*/
|
|
8314
|
-
static load_file_contents(inst_dir: string
|
|
8314
|
+
static load_file_contents(inst_dir: string, data_dir: string, filename: string): string | null
|
|
8315
8315
|
}
|
|
8316
8316
|
|
|
8317
8317
|
export module Set {
|
|
@@ -8468,13 +8468,13 @@ export interface Set {
|
|
|
8468
8468
|
* @param holder_id the ID of the requested value holder
|
|
8469
8469
|
* @returns the requested #GdaHolder or %NULL
|
|
8470
8470
|
*/
|
|
8471
|
-
get_holder(holder_id: string
|
|
8471
|
+
get_holder(holder_id: string): Holder
|
|
8472
8472
|
/**
|
|
8473
8473
|
* Get the value of the #GdaHolder which ID is `holder_id`
|
|
8474
8474
|
* @param holder_id the ID of the holder to set the value
|
|
8475
8475
|
* @returns the requested GValue, or %NULL (see gda_holder_get_value())
|
|
8476
8476
|
*/
|
|
8477
|
-
get_holder_value(holder_id: string
|
|
8477
|
+
get_holder_value(holder_id: string): any | null
|
|
8478
8478
|
/**
|
|
8479
8479
|
* Finds a #GdaSetNode holding information for `holder,` don't modify the returned structure
|
|
8480
8480
|
* @param holder a #GdaHolder object
|
|
@@ -8536,7 +8536,7 @@ export interface Set {
|
|
|
8536
8536
|
|
|
8537
8537
|
// Own virtual methods of Gda-5.0.Gda.Set
|
|
8538
8538
|
|
|
8539
|
-
vfunc_holder_attr_changed(holder: Holder, attr_name: string
|
|
8539
|
+
vfunc_holder_attr_changed(holder: Holder, attr_name: string, attr_value: any): void
|
|
8540
8540
|
vfunc_holder_changed(holder: Holder): void
|
|
8541
8541
|
vfunc_holder_type_set(holder: Holder): void
|
|
8542
8542
|
vfunc_public_data_changed(): void
|
|
@@ -8631,7 +8631,7 @@ export class Set extends GObject.Object {
|
|
|
8631
8631
|
* @param xml_spec a string
|
|
8632
8632
|
* @returns a new object, or %NULL if an error occurred
|
|
8633
8633
|
*/
|
|
8634
|
-
static new_from_spec_string(xml_spec: string
|
|
8634
|
+
static new_from_spec_string(xml_spec: string): Set
|
|
8635
8635
|
/**
|
|
8636
8636
|
* Creates a new #GdaSet like gda_set_new(), but does not allow modifications to any of the #GdaHolder
|
|
8637
8637
|
* object in `holders`. This function is used for Libgda's database providers' implementation.
|
|
@@ -8729,7 +8729,7 @@ export interface SqlBuilder {
|
|
|
8729
8729
|
* @param table_name a table name, or %NULL
|
|
8730
8730
|
* @returns the ID of the new expression, or %0 if there was an error
|
|
8731
8731
|
*/
|
|
8732
|
-
add_field_id(field_name: string
|
|
8732
|
+
add_field_id(field_name: string, table_name: string | null): SqlBuilderId
|
|
8733
8733
|
/**
|
|
8734
8734
|
* Valid only for: INSERT, UPDATE statements.
|
|
8735
8735
|
*
|
|
@@ -8738,7 +8738,7 @@ export interface SqlBuilder {
|
|
|
8738
8738
|
* @param field_name a field name
|
|
8739
8739
|
* @param value value to set the field to, or %NULL or a GDA_TYPE_NULL value to represent an SQL NULL
|
|
8740
8740
|
*/
|
|
8741
|
-
add_field_value_as_gvalue(field_name: string
|
|
8741
|
+
add_field_value_as_gvalue(field_name: string, value: any | null): void
|
|
8742
8742
|
/**
|
|
8743
8743
|
* Valid only for: INSERT, UPDATE, SELECT statements
|
|
8744
8744
|
* <itemizedlist>
|
|
@@ -8764,7 +8764,7 @@ export interface SqlBuilder {
|
|
|
8764
8764
|
* @param args an array of IDs representing the function's arguments
|
|
8765
8765
|
* @returns the ID of the new expression, or %0 if there was an error
|
|
8766
8766
|
*/
|
|
8767
|
-
add_function(func_name: string
|
|
8767
|
+
add_function(func_name: string, args: SqlBuilderId[]): SqlBuilderId
|
|
8768
8768
|
/**
|
|
8769
8769
|
* Defines an expression representing an identifier in `builder,`
|
|
8770
8770
|
* which may be reused to build other parts of a statement,
|
|
@@ -8790,7 +8790,7 @@ export interface SqlBuilder {
|
|
|
8790
8790
|
* @param str a string
|
|
8791
8791
|
* @returns the ID of the new expression, or %0 if there was an error
|
|
8792
8792
|
*/
|
|
8793
|
-
add_id(str: string
|
|
8793
|
+
add_id(str: string): SqlBuilderId
|
|
8794
8794
|
/**
|
|
8795
8795
|
* Defines a parameter in `builder` which may be reused to build other parts of a statement.
|
|
8796
8796
|
*
|
|
@@ -8810,7 +8810,7 @@ export interface SqlBuilder {
|
|
|
8810
8810
|
* @param nullok TRUE if the parameter can be set to %NULL
|
|
8811
8811
|
* @returns the ID of the new expression, or %0 if there was an error
|
|
8812
8812
|
*/
|
|
8813
|
-
add_param(param_name: string
|
|
8813
|
+
add_param(param_name: string, type: GObject.GType, nullok: boolean): SqlBuilderId
|
|
8814
8814
|
/**
|
|
8815
8815
|
* Add a sub select to a COMPOUND statement
|
|
8816
8816
|
* @param subselect a #GdaSqlBuilder, which has to be a SELECT or compound SELECT. This will be copied.
|
|
@@ -8839,7 +8839,7 @@ export interface SqlBuilder {
|
|
|
8839
8839
|
* @param join_id the ID of the join to modify (not %0)
|
|
8840
8840
|
* @param field_name the name of the field to use in the join condition (not %NULL)
|
|
8841
8841
|
*/
|
|
8842
|
-
join_add_field(join_id: SqlBuilderId, field_name: string
|
|
8842
|
+
join_add_field(join_id: SqlBuilderId, field_name: string): void
|
|
8843
8843
|
/**
|
|
8844
8844
|
* Valid only for: SELECT statements.
|
|
8845
8845
|
*
|
|
@@ -8851,14 +8851,14 @@ export interface SqlBuilder {
|
|
|
8851
8851
|
* @param alias an alias (eg. for the "AS" clause), or %NULL
|
|
8852
8852
|
* @returns the ID of the added field, or %0 if there was an error
|
|
8853
8853
|
*/
|
|
8854
|
-
select_add_field(field_name: string
|
|
8854
|
+
select_add_field(field_name: string, table_name: string | null, alias: string | null): SqlBuilderId
|
|
8855
8855
|
/**
|
|
8856
8856
|
* Adds a new target to a SELECT statement
|
|
8857
8857
|
* @param table_name the name of the target table
|
|
8858
8858
|
* @param alias the alias to give to the target, or %NULL
|
|
8859
8859
|
* @returns the ID of the new target, or %0 if there was an error
|
|
8860
8860
|
*/
|
|
8861
|
-
select_add_target(table_name: string
|
|
8861
|
+
select_add_target(table_name: string, alias: string | null): SqlBuilderId
|
|
8862
8862
|
/**
|
|
8863
8863
|
* Adds a new target to a SELECT statement. If there already exists a target representing
|
|
8864
8864
|
* the same table and the same alias (or with the same absence of alias) then the same target
|
|
@@ -8918,7 +8918,7 @@ export interface SqlBuilder {
|
|
|
8918
8918
|
* Sets the name of the table on which the built statement operates.
|
|
8919
8919
|
* @param table_name a table name
|
|
8920
8920
|
*/
|
|
8921
|
-
set_table(table_name: string
|
|
8921
|
+
set_table(table_name: string): void
|
|
8922
8922
|
/**
|
|
8923
8923
|
* Valid only for: UPDATE, DELETE, SELECT statements
|
|
8924
8924
|
*
|
|
@@ -9010,7 +9010,7 @@ export interface SqlParser extends Lockable {
|
|
|
9010
9010
|
* @param filename name of the file to parse
|
|
9011
9011
|
* @returns a new #GdaBatch object, or %NULL if an error occurred
|
|
9012
9012
|
*/
|
|
9013
|
-
parse_file_as_batch(filename: string
|
|
9013
|
+
parse_file_as_batch(filename: string): Batch | null
|
|
9014
9014
|
/**
|
|
9015
9015
|
* Parses `sql` and creates a #GdaStatement statement from the first SQL statement contained in `sql:` if `sql`
|
|
9016
9016
|
* contains more than one statement, then the remaining part of the string is not parsed at all, and `remain` (if
|
|
@@ -9021,7 +9021,7 @@ export interface SqlParser extends Lockable {
|
|
|
9021
9021
|
* @param sql the SQL string to parse
|
|
9022
9022
|
* @returns a new #GdaStatement object, or %NULL if an error occurred
|
|
9023
9023
|
*/
|
|
9024
|
-
parse_string(sql: string
|
|
9024
|
+
parse_string(sql: string): [ /* returnType */ Statement | null, /* remain */ string ]
|
|
9025
9025
|
/**
|
|
9026
9026
|
* Parse `sql` and creates a #GdaBatch object which contains all the #GdaStatement objects created while parsing (one object
|
|
9027
9027
|
* per SQL statement). Empty statements (composed of spaces only) do not appear in the resulting object.
|
|
@@ -9037,7 +9037,7 @@ export interface SqlParser extends Lockable {
|
|
|
9037
9037
|
* @param sql the SQL string to parse
|
|
9038
9038
|
* @returns a new #GdaBatch object, or %NULL if an error occurred
|
|
9039
9039
|
*/
|
|
9040
|
-
parse_string_as_batch(sql: string
|
|
9040
|
+
parse_string_as_batch(sql: string): [ /* returnType */ Batch | null, /* remain */ string ]
|
|
9041
9041
|
set_overflow_error(): void
|
|
9042
9042
|
set_syntax_error(): void
|
|
9043
9043
|
|
|
@@ -9311,7 +9311,7 @@ export interface ThreadWrapper {
|
|
|
9311
9311
|
* @param callback a #GdaThreadWrapperCallback function
|
|
9312
9312
|
* @returns the handler ID
|
|
9313
9313
|
*/
|
|
9314
|
-
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
|
|
9315
9315
|
/**
|
|
9316
9316
|
* Disconnects the emission of a signal, does the opposite of gda_thread_wrapper_connect_raw().
|
|
9317
9317
|
*
|
|
@@ -9475,7 +9475,7 @@ export interface TransactionStatus {
|
|
|
9475
9475
|
|
|
9476
9476
|
// Owm methods of Gda-5.0.Gda.TransactionStatus
|
|
9477
9477
|
|
|
9478
|
-
find(str: string
|
|
9478
|
+
find(str: string, destev: TransactionStatusEvent): TransactionStatus | null
|
|
9479
9479
|
/**
|
|
9480
9480
|
* Find a pointer to the "current" _unnamed_ transaction, which is the last
|
|
9481
9481
|
* transaction if there are several nested transactions
|
|
@@ -9510,7 +9510,7 @@ export class TransactionStatus extends GObject.Object {
|
|
|
9510
9510
|
* @param name name for the transaction
|
|
9511
9511
|
* @returns the newly created object.
|
|
9512
9512
|
*/
|
|
9513
|
-
constructor(name: string
|
|
9513
|
+
constructor(name: string)
|
|
9514
9514
|
/**
|
|
9515
9515
|
* Creates a new #GdaTransactionStatus object, which allows a fine-tune and
|
|
9516
9516
|
* full control of transactions to be used with providers.
|
|
@@ -9518,7 +9518,7 @@ export class TransactionStatus extends GObject.Object {
|
|
|
9518
9518
|
* @param name name for the transaction
|
|
9519
9519
|
* @returns the newly created object.
|
|
9520
9520
|
*/
|
|
9521
|
-
static new(name: string
|
|
9521
|
+
static new(name: string): TransactionStatus
|
|
9522
9522
|
_init(config?: TransactionStatus.ConstructorProperties): void
|
|
9523
9523
|
}
|
|
9524
9524
|
|
|
@@ -9603,7 +9603,7 @@ export interface Tree {
|
|
|
9603
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.
|
|
9604
9604
|
* @returns the requested #GdaTreeNode pointer, or %NULL if not found
|
|
9605
9605
|
*/
|
|
9606
|
-
get_node(tree_path: string
|
|
9606
|
+
get_node(tree_path: string, use_names: boolean): TreeNode | null
|
|
9607
9607
|
/**
|
|
9608
9608
|
* Get the #GdaTreeManager which created `node` in `tree`
|
|
9609
9609
|
* @param node a #GdaTreeNode present in `tree`
|
|
@@ -9632,7 +9632,7 @@ export interface Tree {
|
|
|
9632
9632
|
* @param value a #GValue, or %NULL
|
|
9633
9633
|
* @param destroy a function to be called when `attribute` is not needed anymore, or %NULL
|
|
9634
9634
|
*/
|
|
9635
|
-
set_attribute(attribute: string
|
|
9635
|
+
set_attribute(attribute: string, value: any, destroy: GLib.DestroyNotify): void
|
|
9636
9636
|
/**
|
|
9637
9637
|
* Requests that `tree` be populated with nodes. If an error occurs, then `tree'`s contents is left
|
|
9638
9638
|
* unchanged, and otherwise `tree'`s previous contents is completely replaced by the new one.
|
|
@@ -9656,7 +9656,7 @@ export interface Tree {
|
|
|
9656
9656
|
// Own virtual methods of Gda-5.0.Gda.Tree
|
|
9657
9657
|
|
|
9658
9658
|
vfunc_node_changed(node: TreeNode): void
|
|
9659
|
-
vfunc_node_deleted(node_path: string
|
|
9659
|
+
vfunc_node_deleted(node_path: string): void
|
|
9660
9660
|
vfunc_node_has_child_toggled(node: TreeNode): void
|
|
9661
9661
|
vfunc_node_inserted(node: TreeNode): void
|
|
9662
9662
|
|
|
@@ -9783,7 +9783,7 @@ export interface TreeManager {
|
|
|
9783
9783
|
* @param attribute an attribute name
|
|
9784
9784
|
* @param value the attribute's value, or %NULL
|
|
9785
9785
|
*/
|
|
9786
|
-
add_new_node_attribute(attribute: string
|
|
9786
|
+
add_new_node_attribute(attribute: string, value: any | null): void
|
|
9787
9787
|
/**
|
|
9788
9788
|
* Requests that `manager` creates a new #GdaTreeNode. The new node is not in any
|
|
9789
9789
|
* way linked to `manager` yet, consider this method as a #GdaTreeNode factory.
|
|
@@ -9954,7 +9954,7 @@ export class TreeMgrColumns extends TreeManager {
|
|
|
9954
9954
|
* @param table_name the name of the table
|
|
9955
9955
|
* @returns a new #GdaTreeManager object
|
|
9956
9956
|
*/
|
|
9957
|
-
constructor(cnc: Connection, schema: string
|
|
9957
|
+
constructor(cnc: Connection, schema: string, table_name: string)
|
|
9958
9958
|
/**
|
|
9959
9959
|
* Creates a new #GdaTreeManager object which will add one tree node for each
|
|
9960
9960
|
* column in the table named `table_name` in the `schema` schema.
|
|
@@ -9964,7 +9964,7 @@ export class TreeMgrColumns extends TreeManager {
|
|
|
9964
9964
|
* @param table_name the name of the table
|
|
9965
9965
|
* @returns a new #GdaTreeManager object
|
|
9966
9966
|
*/
|
|
9967
|
-
static new(cnc: Connection, schema: string
|
|
9967
|
+
static new(cnc: Connection, schema: string, table_name: string): TreeMgrColumns
|
|
9968
9968
|
_init(config?: TreeMgrColumns.ConstructorProperties): void
|
|
9969
9969
|
}
|
|
9970
9970
|
|
|
@@ -10025,14 +10025,14 @@ export class TreeMgrLabel extends TreeManager {
|
|
|
10025
10025
|
* @param label a label string
|
|
10026
10026
|
* @returns a new #GdaTreeManager object
|
|
10027
10027
|
*/
|
|
10028
|
-
constructor(label: string
|
|
10028
|
+
constructor(label: string)
|
|
10029
10029
|
/**
|
|
10030
10030
|
* Creates a new #GdaTreeManager object which will add one tree node labelled `label`
|
|
10031
10031
|
* @constructor
|
|
10032
10032
|
* @param label a label string
|
|
10033
10033
|
* @returns a new #GdaTreeManager object
|
|
10034
10034
|
*/
|
|
10035
|
-
static new(label: string
|
|
10035
|
+
static new(label: string): TreeMgrLabel
|
|
10036
10036
|
_init(config?: TreeMgrLabel.ConstructorProperties): void
|
|
10037
10037
|
}
|
|
10038
10038
|
|
|
@@ -10493,7 +10493,7 @@ export interface TreeNode {
|
|
|
10493
10493
|
* @param attribute attribute name as a string
|
|
10494
10494
|
* @returns a read-only #GValue, or %NULL if not attribute named @attribute has been set for @node
|
|
10495
10495
|
*/
|
|
10496
|
-
fetch_attribute(attribute: string
|
|
10496
|
+
fetch_attribute(attribute: string): any
|
|
10497
10497
|
/**
|
|
10498
10498
|
* Get the #GdaTreeNode child of `node` at position `index` (starting at 0).
|
|
10499
10499
|
* @param index a index
|
|
@@ -10505,7 +10505,7 @@ export interface TreeNode {
|
|
|
10505
10505
|
* @param name requested node's name
|
|
10506
10506
|
* @returns the #GdaTreeNode, or %NULL if not found
|
|
10507
10507
|
*/
|
|
10508
|
-
get_child_name(name: string
|
|
10508
|
+
get_child_name(name: string): TreeNode
|
|
10509
10509
|
/**
|
|
10510
10510
|
* Get a list of all `node'`s children, free it with g_slist_free() after usage
|
|
10511
10511
|
* @returns a new #GSList of #GdaTreeNode objects, or %NULL if @node does not have any child
|
|
@@ -10521,7 +10521,7 @@ export interface TreeNode {
|
|
|
10521
10521
|
* @param attribute attribute name as a string
|
|
10522
10522
|
* @returns a read-only #GValue, or %NULL if not attribute named @attribute has been set for @node
|
|
10523
10523
|
*/
|
|
10524
|
-
get_node_attribute(attribute: string
|
|
10524
|
+
get_node_attribute(attribute: string): any
|
|
10525
10525
|
/**
|
|
10526
10526
|
* Get the #GdaTreeNode parent of `node` in the #GdaTree node belongs to. If `node` is at the top level,
|
|
10527
10527
|
* then this method return %NULL.
|
|
@@ -10550,14 +10550,14 @@ export interface TreeNode {
|
|
|
10550
10550
|
* @param value a #GValue, or %NULL
|
|
10551
10551
|
* @param destroy a function to be called when `attribute` is not needed anymore, or %NULL
|
|
10552
10552
|
*/
|
|
10553
|
-
set_node_attribute(attribute: string
|
|
10553
|
+
set_node_attribute(attribute: string, value: any | null, destroy: GLib.DestroyNotify): void
|
|
10554
10554
|
|
|
10555
10555
|
// Own virtual methods of Gda-5.0.Gda.TreeNode
|
|
10556
10556
|
|
|
10557
|
-
vfunc_dump_children(prefix: string
|
|
10557
|
+
vfunc_dump_children(prefix: string, in_string: GLib.String): void
|
|
10558
10558
|
vfunc_dump_header(): string | null
|
|
10559
10559
|
vfunc_node_changed(node: TreeNode): void
|
|
10560
|
-
vfunc_node_deleted(relative_path: string
|
|
10560
|
+
vfunc_node_deleted(relative_path: string): void
|
|
10561
10561
|
vfunc_node_has_child_toggled(node: TreeNode): void
|
|
10562
10562
|
vfunc_node_inserted(node: TreeNode): void
|
|
10563
10563
|
|
|
@@ -10696,7 +10696,7 @@ export interface XaTransaction {
|
|
|
10696
10696
|
* @param branch the branch qualifier
|
|
10697
10697
|
* @returns %TRUE if no error occurred
|
|
10698
10698
|
*/
|
|
10699
|
-
register_connection(cnc: Connection, branch: string
|
|
10699
|
+
register_connection(cnc: Connection, branch: string): boolean
|
|
10700
10700
|
/**
|
|
10701
10701
|
* Cancels a distributed transaction (managed by `xa_trans)`.
|
|
10702
10702
|
* @returns %TRUE if no error occurred
|
|
@@ -10741,7 +10741,7 @@ export class XaTransaction extends GObject.Object {
|
|
|
10741
10741
|
* @param global_transaction_id the global transaction ID
|
|
10742
10742
|
* @returns the newly created object.
|
|
10743
10743
|
*/
|
|
10744
|
-
constructor(format: number, global_transaction_id: string
|
|
10744
|
+
constructor(format: number, global_transaction_id: string)
|
|
10745
10745
|
/**
|
|
10746
10746
|
* Creates a new #GdaXaTransaction object, which will control the process of
|
|
10747
10747
|
* performing a distributed transaction across several connections.
|
|
@@ -10750,7 +10750,7 @@ export class XaTransaction extends GObject.Object {
|
|
|
10750
10750
|
* @param global_transaction_id the global transaction ID
|
|
10751
10751
|
* @returns the newly created object.
|
|
10752
10752
|
*/
|
|
10753
|
-
static new(format: number, global_transaction_id: string
|
|
10753
|
+
static new(format: number, global_transaction_id: string): XaTransaction
|
|
10754
10754
|
_init(config?: XaTransaction.ConstructorProperties): void
|
|
10755
10755
|
static error_quark(): GLib.Quark
|
|
10756
10756
|
}
|
|
@@ -10762,9 +10762,9 @@ export interface AttributesManager {
|
|
|
10762
10762
|
clear(ptr: any | null): void
|
|
10763
10763
|
foreach(ptr: any | null, func: AttributesManagerFunc): void
|
|
10764
10764
|
free(): void
|
|
10765
|
-
get(ptr: any | null, att_name: string
|
|
10766
|
-
set(ptr: any | null, att_name: string
|
|
10767
|
-
set_full(ptr: any | null, att_name: string
|
|
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
|
|
10768
10768
|
}
|
|
10769
10769
|
|
|
10770
10770
|
export class AttributesManager {
|
|
@@ -10937,7 +10937,7 @@ export interface ColumnClass {
|
|
|
10937
10937
|
// Own fields of Gda-5.0.Gda.ColumnClass
|
|
10938
10938
|
|
|
10939
10939
|
parent_class: GObject.ObjectClass
|
|
10940
|
-
name_changed: (column: Column, old_name: string
|
|
10940
|
+
name_changed: (column: Column, old_name: string) => void
|
|
10941
10941
|
g_type_changed: (column: Column, old_type: GObject.GType, new_type: GObject.GType) => void
|
|
10942
10942
|
}
|
|
10943
10943
|
|
|
@@ -11100,7 +11100,7 @@ export interface DataHandlerIface {
|
|
|
11100
11100
|
get_value_from_str: (dh: DataHandler, str: string | null, type: GObject.GType) => any
|
|
11101
11101
|
get_sane_init_value: (dh: DataHandler, type: GObject.GType) => any | null
|
|
11102
11102
|
accepts_g_type: (dh: DataHandler, type: GObject.GType) => boolean
|
|
11103
|
-
get_descr: (dh: DataHandler) => string
|
|
11103
|
+
get_descr: (dh: DataHandler) => string
|
|
11104
11104
|
}
|
|
11105
11105
|
|
|
11106
11106
|
export abstract class DataHandlerIface {
|
|
@@ -11620,7 +11620,7 @@ export interface HolderClass {
|
|
|
11620
11620
|
changed: (holder: Holder) => void
|
|
11621
11621
|
source_changed: (holder: Holder) => void
|
|
11622
11622
|
validate_change: (holder: Holder, new_value: any) => GLib.Error
|
|
11623
|
-
att_changed: (holder: Holder, att_name: string
|
|
11623
|
+
att_changed: (holder: Holder, att_name: string, att_value: any) => void
|
|
11624
11624
|
}
|
|
11625
11625
|
|
|
11626
11626
|
export abstract class HolderClass {
|
|
@@ -11703,7 +11703,7 @@ export interface MetaContext {
|
|
|
11703
11703
|
* Get table's name to used in the context.
|
|
11704
11704
|
* @returns A string with the table's name used in the context.
|
|
11705
11705
|
*/
|
|
11706
|
-
get_table(): string
|
|
11706
|
+
get_table(): string
|
|
11707
11707
|
/**
|
|
11708
11708
|
* Sets a new column/value pair to the given context `ctx`. Column, must be a column in the given table's
|
|
11709
11709
|
* name setted by #gda_meta_context_set_table () (a table in the <link linkend="information_schema">database
|
|
@@ -11714,7 +11714,7 @@ export interface MetaContext {
|
|
|
11714
11714
|
* @param value the column's value
|
|
11715
11715
|
* @param cnc a #GdaConnection to be used when identifier are normalized, or NULL
|
|
11716
11716
|
*/
|
|
11717
|
-
set_column(column: string
|
|
11717
|
+
set_column(column: string, value: any, cnc: Connection | null): void
|
|
11718
11718
|
/**
|
|
11719
11719
|
* Set columns to use in the context. The #GHashTable use column's name as key and a #GValue as value,
|
|
11720
11720
|
* to represent its value.
|
|
@@ -11730,7 +11730,7 @@ export interface MetaContext {
|
|
|
11730
11730
|
* about database's tables.
|
|
11731
11731
|
* @param table a string with the table's name to use in context
|
|
11732
11732
|
*/
|
|
11733
|
-
set_table(table: string
|
|
11733
|
+
set_table(table: string): void
|
|
11734
11734
|
}
|
|
11735
11735
|
|
|
11736
11736
|
/**
|
|
@@ -12014,7 +12014,7 @@ export interface MetaTableColumn {
|
|
|
12014
12014
|
* @param attribute attribute name as a string
|
|
12015
12015
|
* @returns a read-only #GValue, or %NULL if not attribute named @attribute has been set for @column
|
|
12016
12016
|
*/
|
|
12017
|
-
get_attribute(attribute: string
|
|
12017
|
+
get_attribute(attribute: string): any
|
|
12018
12018
|
/**
|
|
12019
12019
|
* Set the value associated to a named attribute.
|
|
12020
12020
|
*
|
|
@@ -12028,7 +12028,7 @@ export interface MetaTableColumn {
|
|
|
12028
12028
|
* @param value a #GValue, or %NULL
|
|
12029
12029
|
* @param destroy function called when `attribute` has to be freed, or %NULL
|
|
12030
12030
|
*/
|
|
12031
|
-
set_attribute(attribute: string
|
|
12031
|
+
set_attribute(attribute: string, value: any | null, destroy: GLib.DestroyNotify | null): void
|
|
12032
12032
|
}
|
|
12033
12033
|
|
|
12034
12034
|
/**
|
|
@@ -12186,7 +12186,7 @@ export interface Numeric {
|
|
|
12186
12186
|
* Sets `numeric` with a number represented by `str,` in the C locale format (dot as a fraction separator).
|
|
12187
12187
|
* @param str a string representing a number, in the C locale format
|
|
12188
12188
|
*/
|
|
12189
|
-
set_from_string(str: string
|
|
12189
|
+
set_from_string(str: string): void
|
|
12190
12190
|
/**
|
|
12191
12191
|
* Sets the precision of a #GdaNumeric.
|
|
12192
12192
|
* @param precision a #glong
|
|
@@ -12313,7 +12313,7 @@ export interface QuarkList {
|
|
|
12313
12313
|
* @param string a string.
|
|
12314
12314
|
* @param cleanup whether to cleanup the previous content or not.
|
|
12315
12315
|
*/
|
|
12316
|
-
add_from_string(string: string
|
|
12316
|
+
add_from_string(string: string, cleanup: boolean): void
|
|
12317
12317
|
/**
|
|
12318
12318
|
* Removes all strings in the given #GdaQuarkList.
|
|
12319
12319
|
*/
|
|
@@ -12330,7 +12330,7 @@ export interface QuarkList {
|
|
|
12330
12330
|
* @param name the name of the value to search for.
|
|
12331
12331
|
* @returns the value associated with the given key if found, or %NULL if not found.
|
|
12332
12332
|
*/
|
|
12333
|
-
find(name: string
|
|
12333
|
+
find(name: string): string
|
|
12334
12334
|
/**
|
|
12335
12335
|
* Calls the given function for each of the key/value pairs in `qlist`. The function is passed the key and value
|
|
12336
12336
|
* of each pair, and the given user_data parameter. `qlist` may not be modified while iterating over it.
|
|
@@ -12350,7 +12350,7 @@ export interface QuarkList {
|
|
|
12350
12350
|
* Removes an entry from the #GdaQuarkList, given its name.
|
|
12351
12351
|
* @param name an entry name.
|
|
12352
12352
|
*/
|
|
12353
|
-
remove(name: string
|
|
12353
|
+
remove(name: string): void
|
|
12354
12354
|
}
|
|
12355
12355
|
|
|
12356
12356
|
export class QuarkList {
|
|
@@ -12393,7 +12393,7 @@ export class QuarkList {
|
|
|
12393
12393
|
* @param string a string.
|
|
12394
12394
|
* @returns the newly created #GdaQuarkList. Free-function: gda_quark_list_free
|
|
12395
12395
|
*/
|
|
12396
|
-
static new_from_string(string: string
|
|
12396
|
+
static new_from_string(string: string): QuarkList
|
|
12397
12397
|
}
|
|
12398
12398
|
|
|
12399
12399
|
export interface RepetitiveStatementClass {
|
|
@@ -12439,8 +12439,8 @@ export interface ServerOperationClass {
|
|
|
12439
12439
|
// Own fields of Gda-5.0.Gda.ServerOperationClass
|
|
12440
12440
|
|
|
12441
12441
|
parent_class: GObject.ObjectClass
|
|
12442
|
-
seq_item_added: (op: ServerOperation, seq_path: string
|
|
12443
|
-
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
|
|
12444
12444
|
}
|
|
12445
12445
|
|
|
12446
12446
|
export abstract class ServerOperationClass {
|
|
@@ -12486,31 +12486,31 @@ export interface ServerProviderClass {
|
|
|
12486
12486
|
|
|
12487
12487
|
parent_class: GObject.ObjectClass
|
|
12488
12488
|
limiting_thread: GLib.Thread
|
|
12489
|
-
get_name: (provider: ServerProvider) => string
|
|
12490
|
-
get_version: (provider: ServerProvider) => string
|
|
12491
|
-
get_server_version: (provider: ServerProvider, cnc: Connection) => string
|
|
12489
|
+
get_name: (provider: ServerProvider) => string
|
|
12490
|
+
get_version: (provider: ServerProvider) => string
|
|
12491
|
+
get_server_version: (provider: ServerProvider, cnc: Connection) => string
|
|
12492
12492
|
supports_feature: (provider: ServerProvider, cnc: Connection | null, feature: ConnectionFeature) => boolean
|
|
12493
|
-
get_def_dbms_type: (provider: ServerProvider, cnc: Connection, g_type: GObject.GType) => string
|
|
12494
|
-
escape_string: (provider: ServerProvider, cnc: Connection | null, str: string
|
|
12495
|
-
unescape_string: (provider: ServerProvider, cnc: Connection | null, str: string
|
|
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
|
|
12496
12496
|
close_connection: (provider: ServerProvider, cnc: Connection) => boolean
|
|
12497
|
-
get_database: (provider: ServerProvider, cnc: Connection) => string
|
|
12497
|
+
get_database: (provider: ServerProvider, cnc: Connection) => string
|
|
12498
12498
|
supports_operation: (provider: ServerProvider, cnc: Connection | null, type: ServerOperationType, options: Set | null) => boolean
|
|
12499
12499
|
create_operation: (provider: ServerProvider, cnc: Connection | null, type: ServerOperationType, options: Set | null) => ServerOperation | null
|
|
12500
12500
|
render_operation: (provider: ServerProvider, cnc: Connection | null, op: ServerOperation) => string | null
|
|
12501
|
-
begin_transaction: (provider: ServerProvider, cnc: Connection, name: string
|
|
12502
|
-
commit_transaction: (provider: ServerProvider, cnc: Connection, name: string
|
|
12503
|
-
rollback_transaction: (provider: ServerProvider, cnc: Connection, name: string
|
|
12504
|
-
add_savepoint: (provider: ServerProvider, cnc: Connection, name: string
|
|
12505
|
-
rollback_savepoint: (provider: ServerProvider, cnc: Connection, name: string
|
|
12506
|
-
delete_savepoint: (provider: ServerProvider, cnc: Connection, name: string
|
|
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
|
|
12507
12507
|
create_parser: (provider: ServerProvider, cnc: Connection | null) => SqlParser
|
|
12508
12508
|
statement_prepare: (provider: ServerProvider, cnc: Connection, stmt: Statement) => boolean
|
|
12509
12509
|
is_busy: (provider: ServerProvider, cnc: Connection) => boolean
|
|
12510
12510
|
cancel: (provider: ServerProvider, cnc: Connection, task_id: number) => boolean
|
|
12511
12511
|
meta_funcs: ServerProviderMeta
|
|
12512
12512
|
xa_funcs: ServerProviderXa
|
|
12513
|
-
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
|
|
12514
12514
|
handle_async: (provider: ServerProvider, cnc: Connection) => boolean
|
|
12515
12515
|
}
|
|
12516
12516
|
|
|
@@ -12629,7 +12629,7 @@ export interface SetClass {
|
|
|
12629
12629
|
validate_holder_change: (set: Set, holder: Holder, new_value: any) => GLib.Error
|
|
12630
12630
|
validate_set: (set: Set) => GLib.Error
|
|
12631
12631
|
holder_changed: (set: Set, holder: Holder) => void
|
|
12632
|
-
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
|
|
12633
12633
|
public_data_changed: (set: Set) => void
|
|
12634
12634
|
holder_type_set: (set: Set, holder: Holder) => void
|
|
12635
12635
|
source_model_changed: (set: Set, source: SetSource) => void
|
|
@@ -13163,8 +13163,8 @@ export class SqlOperation {
|
|
|
13163
13163
|
|
|
13164
13164
|
// Constructors of Gda-5.0.Gda.SqlOperation
|
|
13165
13165
|
|
|
13166
|
-
static operator_from_string(op: string
|
|
13167
|
-
static operator_to_string(op: SqlOperatorType): string
|
|
13166
|
+
static operator_from_string(op: string): SqlOperatorType
|
|
13167
|
+
static operator_to_string(op: SqlOperatorType): string
|
|
13168
13168
|
}
|
|
13169
13169
|
|
|
13170
13170
|
export interface SqlParserClass {
|
|
@@ -13402,7 +13402,7 @@ export class SqlSelectJoin {
|
|
|
13402
13402
|
|
|
13403
13403
|
// Constructors of Gda-5.0.Gda.SqlSelectJoin
|
|
13404
13404
|
|
|
13405
|
-
static type_to_string(type: SqlSelectJoinType): string
|
|
13405
|
+
static type_to_string(type: SqlSelectJoinType): string
|
|
13406
13406
|
}
|
|
13407
13407
|
|
|
13408
13408
|
export interface SqlSelectOrder {
|
|
@@ -13952,7 +13952,7 @@ export interface TreeClass {
|
|
|
13952
13952
|
node_changed: (tree: Tree, node: TreeNode) => void
|
|
13953
13953
|
node_inserted: (tree: Tree, node: TreeNode) => void
|
|
13954
13954
|
node_has_child_toggled: (tree: Tree, node: TreeNode) => void
|
|
13955
|
-
node_deleted: (tree: Tree, node_path: string
|
|
13955
|
+
node_deleted: (tree: Tree, node_path: string) => void
|
|
13956
13956
|
}
|
|
13957
13957
|
|
|
13958
13958
|
export abstract class TreeClass {
|
|
@@ -14138,9 +14138,9 @@ export interface TreeNodeClass {
|
|
|
14138
14138
|
node_changed: (reporting: TreeNode, node: TreeNode) => void
|
|
14139
14139
|
node_inserted: (reporting: TreeNode, node: TreeNode) => void
|
|
14140
14140
|
node_has_child_toggled: (reporting: TreeNode, node: TreeNode) => void
|
|
14141
|
-
node_deleted: (reporting: TreeNode, relative_path: string
|
|
14141
|
+
node_deleted: (reporting: TreeNode, relative_path: string) => void
|
|
14142
14142
|
dump_header: (node: TreeNode) => string | null
|
|
14143
|
-
dump_children: (node: TreeNode, prefix: string
|
|
14143
|
+
dump_children: (node: TreeNode, prefix: string, in_string: GLib.String) => void
|
|
14144
14144
|
}
|
|
14145
14145
|
|
|
14146
14146
|
export abstract class TreeNodeClass {
|