@lambdaorm/lib 3.13.0 → 3.14.0
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/CHANGELOG.md +8 -0
- package/connection/infrastructure/adapters/MongoDB.js +2 -2
- package/connection/infrastructure/adapters/MongoDB.js.map +1 -1
- package/connection/infrastructure/adapters/MySQL.d.ts +2 -0
- package/connection/infrastructure/adapters/MySQL.d.ts.map +1 -1
- package/connection/infrastructure/adapters/MySQL.js +9 -0
- package/connection/infrastructure/adapters/MySQL.js.map +1 -1
- package/connection/infrastructure/adapters/PostgreSQL.d.ts.map +1 -1
- package/connection/infrastructure/adapters/PostgreSQL.js +7 -0
- package/connection/infrastructure/adapters/PostgreSQL.js.map +1 -1
- package/connection/infrastructure/adapters/base/connection.d.ts +5 -0
- package/connection/infrastructure/adapters/base/connection.d.ts.map +1 -1
- package/connection/infrastructure/adapters/base/connection.js +13 -0
- package/connection/infrastructure/adapters/base/connection.js.map +1 -1
- package/language/application/services/dialectService.d.ts +1 -0
- package/language/application/services/dialectService.d.ts.map +1 -1
- package/language/application/services/dialectService.js +3 -1
- package/language/application/services/dialectService.js.map +1 -1
- package/orm/infrastructure/geoFunctions.d.ts +11 -0
- package/orm/infrastructure/geoFunctions.d.ts.map +1 -0
- package/orm/infrastructure/geoFunctions.js +37 -0
- package/orm/infrastructure/geoFunctions.js.map +1 -0
- package/orm/infrastructure/ormLibrary.d.ts.map +1 -1
- package/orm/infrastructure/ormLibrary.js +2 -0
- package/orm/infrastructure/ormLibrary.js.map +1 -1
- package/package.json +1 -1
- package/sentence/application/services/sentenceHelper.d.ts.map +1 -1
- package/sentence/application/services/sentenceHelper.js +6 -3
- package/sentence/application/services/sentenceHelper.js.map +1 -1
- package/sentence/infrastructure/adapters/NoSql/NoSqlDmlBuilder.js +1 -1
- package/sentence/infrastructure/adapters/NoSql/NoSqlDmlBuilder.js.map +1 -1
- package/sentence/infrastructure/adapters/NoSql/config.json +16 -10
- package/sentence/infrastructure/adapters/Sql/SqlDmlBuilder.d.ts +6 -0
- package/sentence/infrastructure/adapters/Sql/SqlDmlBuilder.d.ts.map +1 -1
- package/sentence/infrastructure/adapters/Sql/SqlDmlBuilder.js +18 -3
- package/sentence/infrastructure/adapters/Sql/SqlDmlBuilder.js.map +1 -1
- package/sentence/infrastructure/adapters/Sql/config.json +63 -13
- package/shared/domain/ormFunctions.d.ts +5 -0
- package/shared/domain/ormFunctions.d.ts.map +1 -1
- package/shared/domain/ormFunctions.js +6 -1
- package/shared/domain/ormFunctions.js.map +1 -1
|
@@ -362,6 +362,7 @@
|
|
|
362
362
|
"MariaDB": {
|
|
363
363
|
"dbTypes": {
|
|
364
364
|
"vector": "VECTOR({0})",
|
|
365
|
+
"point": "POINT",
|
|
365
366
|
"json": "JSON",
|
|
366
367
|
"buffer": "LONGBLOB",
|
|
367
368
|
"decimal": "DECIMAL(10,4)",
|
|
@@ -379,6 +380,7 @@
|
|
|
379
380
|
"mediumtext": "text",
|
|
380
381
|
"longtext": "text",
|
|
381
382
|
"longblob": "buffer",
|
|
383
|
+
"point": "point",
|
|
382
384
|
"json": "json",
|
|
383
385
|
"tinyint": "integer",
|
|
384
386
|
"int": "integer",
|
|
@@ -421,6 +423,7 @@
|
|
|
421
423
|
"uniqueKeys": "SELECT DISTINCT\n tc.table_name AS tableName,\n kcu.column_name AS columnName,\n tc.constraint_name AS constraintName\nFROM information_schema.table_constraints tc\nJOIN information_schema.key_column_usage kcu ON tc.constraint_name = kcu.constraint_name\nWHERE tc.constraint_type = 'UNIQUE'\n AND tc.table_schema = DATABASE()\n AND tc.table_name IN ({tableNames})\n",
|
|
422
424
|
"foreignKeys": "SELECT DISTINCT \n TABLE_NAME AS tableName,\n COLUMN_NAME AS columnName,\n CONSTRAINT_NAME AS constraintName,\n REFERENCED_TABLE_NAME AS refTableName,\n REFERENCED_COLUMN_NAME AS refColumnName\nFROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE\nWHERE \n CONSTRAINT_SCHEMA = DATABASE() \n AND REFERENCED_TABLE_NAME IS NOT NULL\n AND TABLE_NAME IN ({tableNames})\n",
|
|
423
425
|
"indexes": "SELECT DISTINCT\n t.table_name AS tableName,\n i.index_name AS indexName,\n a.column_name AS columnName,\n NOT i.non_unique AS isUnique,\n CASE\n WHEN i.index_name = 'PRIMARY' THEN TRUE\n ELSE FALSE\n END AS isPrimary\nFROM information_schema.tables t\nJOIN information_schema.statistics i ON t.table_schema = i.table_schema AND t.table_name = i.table_name\nJOIN information_schema.columns a ON t.table_schema = a.table_schema AND t.table_name = a.table_name\nWHERE t.table_type = 'BASE TABLE'\n AND t.table_name IN ({tableNames})\n AND FIND_IN_SET(a.ordinal_position, i.column_name) > 0\n AND i.non_unique = 1\n AND i.index_name != 'PRIMARY'\n",
|
|
426
|
+
"createIndex/spatial": "CREATE SPATIAL INDEX {name} ON {table} ({columns})",
|
|
424
427
|
"renameProperty": "ALTER TABLE {table} RENAME COLUMN {old} TO {new}",
|
|
425
428
|
"createSequence": "CREATE SEQUENCE {name} START WITH 1 INCREMENT BY 1 MAXVALUE 999999999999 MINVALUE 1",
|
|
426
429
|
"incrementalColumDefine": "{name} {type} {required} AUTO_INCREMENT",
|
|
@@ -448,6 +451,13 @@
|
|
|
448
451
|
"cosineDistance": "VEC_DISTANCE_COSINE({0}, VEC_FromText({1}))",
|
|
449
452
|
"l2Distance": "VEC_DISTANCE_EUCLIDEAN({0}, VEC_FromText({1}))"
|
|
450
453
|
},
|
|
454
|
+
"point": {
|
|
455
|
+
"writePoint": "ST_GeomFromGeoJSON({0})",
|
|
456
|
+
"readPoint": "ST_AsGeoJSON({0})",
|
|
457
|
+
"point": "JSON_OBJECT('type', 'Point', 'coordinates', JSON_ARRAY({0}, {1}))",
|
|
458
|
+
"distance": "ST_Distance_Sphere({0}, ST_GeomFromGeoJSON({1}), 6371008.7714)",
|
|
459
|
+
"within": "(ST_X({0}) BETWEEN {1} AND {3} AND ST_Y({0}) BETWEEN {2} AND {4})"
|
|
460
|
+
},
|
|
451
461
|
"numeric": {
|
|
452
462
|
"atan2": "ATAN({0},{1})",
|
|
453
463
|
"cosh": "((EXP({0}) + EXP(-{0})) / 2)",
|
|
@@ -826,6 +836,7 @@
|
|
|
826
836
|
"json": "JSON",
|
|
827
837
|
"buffer": "LONGBLOB",
|
|
828
838
|
"decimal": "DECIMAL(10,4)",
|
|
839
|
+
"point": "POINT SRID 4326",
|
|
829
840
|
"boolean": "BOOLEAN",
|
|
830
841
|
"integer": "INTEGER",
|
|
831
842
|
"string": "VARCHAR({0})",
|
|
@@ -839,6 +850,7 @@
|
|
|
839
850
|
"mediumtext": "text",
|
|
840
851
|
"longtext": "text",
|
|
841
852
|
"longblob": "buffer",
|
|
853
|
+
"point": "point",
|
|
842
854
|
"json": "json",
|
|
843
855
|
"tinyint": "integer",
|
|
844
856
|
"int": "integer",
|
|
@@ -888,6 +900,7 @@
|
|
|
888
900
|
"foreignKeys": "SELECT DISTINCT \n TABLE_NAME AS tableName,\n COLUMN_NAME AS columnName,\n CONSTRAINT_NAME AS constraintName,\n REFERENCED_TABLE_NAME AS refTableName,\n REFERENCED_COLUMN_NAME AS refColumnName\nFROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE\nWHERE \n CONSTRAINT_SCHEMA = DATABASE() \n AND REFERENCED_TABLE_NAME IS NOT NULL\n AND TABLE_NAME IN ({tableNames})\n",
|
|
889
901
|
"indexes": "SELECT DISTINCT\n t.table_name AS tableName,\n i.index_name AS indexName,\n a.column_name AS columnName,\n NOT i.non_unique AS isUnique,\n CASE\n WHEN i.index_name = 'PRIMARY' THEN TRUE\n ELSE FALSE\n END AS isPrimary\nFROM information_schema.tables t\nJOIN information_schema.statistics i ON t.table_schema = i.table_schema AND t.table_name = i.table_name\nJOIN information_schema.columns a ON t.table_schema = a.table_schema AND t.table_name = a.table_name\nWHERE t.table_type = 'BASE TABLE'\n AND t.table_name IN ({tableNames})\n AND FIND_IN_SET(a.ordinal_position, i.column_name) > 0\n AND i.non_unique = 1\n AND i.index_name != 'PRIMARY'\n",
|
|
890
902
|
"sequences": null,
|
|
903
|
+
"createIndex/spatial": "CREATE SPATIAL INDEX {name} ON {table} ({columns})",
|
|
891
904
|
"renameProperty": "ALTER TABLE {table} RENAME COLUMN {old} TO {new}",
|
|
892
905
|
"createSequence": "CREATE SEQUENCE {name} START WITH 1 INCREMENT BY 1 MAXVALUE 999999999999 MINVALUE 1",
|
|
893
906
|
"incrementalColumDefine": "{name} {type} {required} AUTO_INCREMENT",
|
|
@@ -1066,6 +1079,13 @@
|
|
|
1066
1079
|
"jsonIncludes": "JSON_CONTAINS(JSON_EXTRACT({0}, '$.{1:raw}'), JSON_ARRAY({2}))",
|
|
1067
1080
|
"jsonHas": "JSON_CONTAINS_PATH({0}, 'one', '$.{1:raw}')"
|
|
1068
1081
|
},
|
|
1082
|
+
"point": {
|
|
1083
|
+
"writePoint": "ST_GeomFromGeoJSON({0})",
|
|
1084
|
+
"readPoint": "ST_AsGeoJSON({0})",
|
|
1085
|
+
"point": "JSON_OBJECT('type', 'Point', 'coordinates', JSON_ARRAY({0}, {1}))",
|
|
1086
|
+
"distance": "ST_Distance_Sphere({0}, ST_GeomFromGeoJSON({1}), 6371008.7714)",
|
|
1087
|
+
"within": "(ST_Longitude({0}) BETWEEN {1} AND {3} AND ST_Latitude({0}) BETWEEN {2} AND {4})"
|
|
1088
|
+
},
|
|
1069
1089
|
"general": {
|
|
1070
1090
|
"as": "{value} AS {alias}",
|
|
1071
1091
|
"desc": "{0} desc",
|
|
@@ -1540,6 +1560,7 @@
|
|
|
1540
1560
|
"dateTime": "TIMESTAMP",
|
|
1541
1561
|
"buffer": "BYTEA",
|
|
1542
1562
|
"vector": "vector({0})",
|
|
1563
|
+
"point": "geography(Point, 4326)",
|
|
1543
1564
|
"boolean": "BOOLEAN",
|
|
1544
1565
|
"integer": "INTEGER",
|
|
1545
1566
|
"decimal": "DECIMAL(10,4)",
|
|
@@ -1562,6 +1583,7 @@
|
|
|
1562
1583
|
"macaddr": "string",
|
|
1563
1584
|
"bytea": "buffer",
|
|
1564
1585
|
"vector": "vector",
|
|
1586
|
+
"geography": "point",
|
|
1565
1587
|
"json": "json",
|
|
1566
1588
|
"tinyint": "integer",
|
|
1567
1589
|
"int": "integer",
|
|
@@ -1630,6 +1652,7 @@
|
|
|
1630
1652
|
"createIndex/ivfflat/cosine": "CREATE INDEX {name} ON {table} USING ivfflat ({columns} vector_cosine_ops)",
|
|
1631
1653
|
"createIndex/ivfflat/l2": "CREATE INDEX {name} ON {table} USING ivfflat ({columns} vector_l2_ops)",
|
|
1632
1654
|
"createIndex/ivfflat/ip": "CREATE INDEX {name} ON {table} USING ivfflat ({columns} vector_ip_ops)",
|
|
1655
|
+
"createIndex/spatial": "CREATE INDEX {name} ON {table} USING GIST ({columns})",
|
|
1633
1656
|
"renameProperty": "ALTER TABLE {table} RENAME COLUMN {old} TO {new}",
|
|
1634
1657
|
"createSequence": "CREATE SEQUENCE {name} START WITH 1 INCREMENT BY 1 MAXVALUE 999999999999 MINVALUE 1",
|
|
1635
1658
|
"columnDefine": "{name} {type} {required} ",
|
|
@@ -1838,6 +1861,13 @@
|
|
|
1838
1861
|
"l2Distance": "(CAST({0} AS vector) <-> CAST({1} AS vector))",
|
|
1839
1862
|
"innerProduct": "((CAST({0} AS vector) <#> CAST({1} AS vector)) * -1)"
|
|
1840
1863
|
},
|
|
1864
|
+
"point": {
|
|
1865
|
+
"writePoint": "ST_GeomFromGeoJSON({0})::geography",
|
|
1866
|
+
"readPoint": "ST_AsGeoJSON({0})",
|
|
1867
|
+
"point": "json_build_object('type', 'Point', 'coordinates', json_build_array({0}, {1}))::text",
|
|
1868
|
+
"distance": "ST_Distance({0}, ST_GeomFromGeoJSON({1})::geography, false)",
|
|
1869
|
+
"within": "(ST_X({0}::geometry) BETWEEN {1} AND {3} AND ST_Y({0}::geometry) BETWEEN {2} AND {4})"
|
|
1870
|
+
},
|
|
1841
1871
|
"general": {
|
|
1842
1872
|
"as": "{value} AS {alias}",
|
|
1843
1873
|
"desc": "{0} desc",
|
|
@@ -1956,6 +1986,7 @@
|
|
|
1956
1986
|
"dropEntity": "DROP TABLE IF EXISTS {name}",
|
|
1957
1987
|
"dropSequence": "DROP SEQUENCE IF EXISTS {name}",
|
|
1958
1988
|
"dropIndex": "DROP INDEX IF EXISTS {name} ON {table}",
|
|
1989
|
+
"createIndex/spatial": "CREATE SPATIAL INDEX {name} ON {table} ({columns})",
|
|
1959
1990
|
"renameProperty": "ALTER TABLE {table} RENAME COLUMN {old} TO {new}",
|
|
1960
1991
|
"createSequence": "CREATE SEQUENCE {name} START WITH 1 INCREMENT BY 1 MAXVALUE 999999999999 MINVALUE 1",
|
|
1961
1992
|
"incrementalColumDefine": "{name} {type} {required} AUTO_INCREMENT",
|
|
@@ -2039,6 +2070,13 @@
|
|
|
2039
2070
|
"sin": "SIN({0})",
|
|
2040
2071
|
"tan": "TAN({0})"
|
|
2041
2072
|
},
|
|
2073
|
+
"point": {
|
|
2074
|
+
"writePoint": null,
|
|
2075
|
+
"readPoint": null,
|
|
2076
|
+
"point": null,
|
|
2077
|
+
"distance": null,
|
|
2078
|
+
"within": null
|
|
2079
|
+
},
|
|
2042
2080
|
"dateTime": {
|
|
2043
2081
|
"curTime": "CURTIME()",
|
|
2044
2082
|
"today": "CURDATE()",
|
|
@@ -2112,6 +2150,20 @@
|
|
|
2112
2150
|
"sum": "SUM({0})"
|
|
2113
2151
|
}
|
|
2114
2152
|
},
|
|
2153
|
+
"dbTypes": {
|
|
2154
|
+
"point": "TEXT",
|
|
2155
|
+
"json": "JSON",
|
|
2156
|
+
"buffer": "LONGBLOB",
|
|
2157
|
+
"decimal": "DECIMAL(10,4)",
|
|
2158
|
+
"boolean": "BOOLEAN",
|
|
2159
|
+
"integer": "INTEGER",
|
|
2160
|
+
"string": "VARCHAR({0})",
|
|
2161
|
+
"dateTime": "DATETIME",
|
|
2162
|
+
"timestamp": "TIMESTAMP",
|
|
2163
|
+
"date": "DATE",
|
|
2164
|
+
"time": "TIME",
|
|
2165
|
+
"text": "TEXT"
|
|
2166
|
+
},
|
|
2115
2167
|
"reservedWords": [
|
|
2116
2168
|
"long",
|
|
2117
2169
|
"add",
|
|
@@ -2181,23 +2233,11 @@
|
|
|
2181
2233
|
"where",
|
|
2182
2234
|
"with"
|
|
2183
2235
|
],
|
|
2184
|
-
"dbTypes": {
|
|
2185
|
-
"json": "JSON",
|
|
2186
|
-
"buffer": "LONGBLOB",
|
|
2187
|
-
"decimal": "DECIMAL(10,4)",
|
|
2188
|
-
"boolean": "BOOLEAN",
|
|
2189
|
-
"integer": "INTEGER",
|
|
2190
|
-
"string": "VARCHAR({0})",
|
|
2191
|
-
"dateTime": "DATETIME",
|
|
2192
|
-
"timestamp": "TIMESTAMP",
|
|
2193
|
-
"date": "DATE",
|
|
2194
|
-
"time": "TIME",
|
|
2195
|
-
"text": "TEXT"
|
|
2196
|
-
},
|
|
2197
2236
|
"types": {
|
|
2198
2237
|
"mediumtext": "text",
|
|
2199
2238
|
"longtext": "text",
|
|
2200
2239
|
"longblob": "buffer",
|
|
2240
|
+
"point": "point",
|
|
2201
2241
|
"json": "json",
|
|
2202
2242
|
"tinyint": "integer",
|
|
2203
2243
|
"int": "integer",
|
|
@@ -2323,6 +2363,7 @@
|
|
|
2323
2363
|
"boolean": "BIT",
|
|
2324
2364
|
"date": "SMALLDATETIME",
|
|
2325
2365
|
"vector": "VECTOR({0})",
|
|
2366
|
+
"point": "geography",
|
|
2326
2367
|
"integer": "INTEGER",
|
|
2327
2368
|
"decimal": "DECIMAL(10,4)",
|
|
2328
2369
|
"string": "VARCHAR({0})",
|
|
@@ -2350,6 +2391,7 @@
|
|
|
2350
2391
|
"cursor": "any",
|
|
2351
2392
|
"table": "any",
|
|
2352
2393
|
"vector": "vector",
|
|
2394
|
+
"geography": "point",
|
|
2353
2395
|
"json": "json",
|
|
2354
2396
|
"integer": "integer",
|
|
2355
2397
|
"bigint": "integer",
|
|
@@ -2407,6 +2449,7 @@
|
|
|
2407
2449
|
"foreignKeys": "SELECT\n tc.TABLE_NAME AS tableName,\n kcu.COLUMN_NAME AS columnName,\n ccu.TABLE_NAME AS refTableName,\n ccu.COLUMN_NAME AS refColumnName,\n tc.CONSTRAINT_NAME AS constraintName\nFROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS tc\nJOIN INFORMATION_SCHEMA.KEY_COLUMN_USAGE kcu ON tc.CONSTRAINT_NAME = kcu.CONSTRAINT_NAME\nJOIN INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE ccu ON tc.CONSTRAINT_NAME = ccu.CONSTRAINT_NAME\nWHERE \n tc.CONSTRAINT_TYPE = 'FOREIGN KEY'\n AND tc.TABLE_CATALOG = DB_NAME()\n AND tc.TABLE_SCHEMA = SCHEMA_NAME()\n AND tc.TABLE_NAME IN ({tableNames})\n",
|
|
2408
2450
|
"indexes": "SELECT\n t.name AS tableName,\n i.name AS indexName,\n c.name AS columnName,\n CASE WHEN i.is_unique = 1 THEN 'true' ELSE 'false' END AS isUnique,\n CASE WHEN i.is_primary_key = 1 THEN 'true' ELSE 'false' END AS isPrimary\n FROM sys.tables t\n JOIN sys.indexes i ON t.object_id = i.object_id\n JOIN sys.index_columns ic ON i.object_id = ic.object_id AND i.index_id = ic.index_id\n JOIN sys.columns c ON ic.object_id = c.object_id AND ic.column_id = c.column_id\n WHERE t.type = 'U'\n AND t.name IN ({tableNames})\n AND i.is_unique = 0\n AND i.is_primary_key = 0\n",
|
|
2409
2451
|
"sequences": "SELECT name AS sequenceName,\n start_value AS startValue,\n increment AS increment\nFROM sys.sequences\nWHERE object_id = OBJECT_ID('sequence_schema.sequence_name')\n",
|
|
2452
|
+
"createIndex/spatial": "CREATE SPATIAL INDEX {name} ON {table} ({columns})",
|
|
2410
2453
|
"createDatabase": "CREATE DATABASE IF NOT EXISTS {name}",
|
|
2411
2454
|
"createEntity": "CREATE TABLE {name} ({define})",
|
|
2412
2455
|
"createSequence": "CREATE SEQUENCE {name} START WITH 1 INCREMENT BY 1 MAXVALUE 999999999999 MINVALUE 1",
|
|
@@ -2577,6 +2620,13 @@
|
|
|
2577
2620
|
"l2Distance": "VECTOR_DISTANCE('euclidean', {0}, {1})",
|
|
2578
2621
|
"innerProduct": "(VECTOR_DISTANCE('dot', {0}, {1}) * -1)"
|
|
2579
2622
|
},
|
|
2623
|
+
"point": {
|
|
2624
|
+
"writePoint": "geography::Point(JSON_VALUE({0}, '$.coordinates[1]'), JSON_VALUE({0}, '$.coordinates[0]'), 4326)",
|
|
2625
|
+
"readPoint": "CONCAT('{\"type\":\"Point\",\"coordinates\":[', {0}.Long, ',', {0}.Lat, ']}')",
|
|
2626
|
+
"point": "CONCAT('{\"type\":\"Point\",\"coordinates\":[', {0}, ',', {1}, ']}')",
|
|
2627
|
+
"distance": "{0}.STDistance(geography::Point(JSON_VALUE({1}, '$.coordinates[1]'), JSON_VALUE({1}, '$.coordinates[0]'), 4326))",
|
|
2628
|
+
"within": "({0}.Long BETWEEN {1} AND {3} AND {0}.Lat BETWEEN {2} AND {4})"
|
|
2629
|
+
},
|
|
2580
2630
|
"general": {
|
|
2581
2631
|
"as": "{value} AS {alias}",
|
|
2582
2632
|
"desc": "{0} desc",
|
|
@@ -3,4 +3,9 @@
|
|
|
3
3
|
* their variables travel as the text of the vector ([0.1,0.2]), not as the list of an IN
|
|
4
4
|
*/
|
|
5
5
|
export declare const VECTOR_FUNCTIONS: string[];
|
|
6
|
+
/**
|
|
7
|
+
* The functions of points that λORM adds to 3xpr (orm/infrastructure/geoFunctions.ts, docs/GEO.md): their variables
|
|
8
|
+
* travel as GeoJSON text, that the template of the dialect converts
|
|
9
|
+
*/
|
|
10
|
+
export declare const GEO_FUNCTIONS: string[];
|
|
6
11
|
//# sourceMappingURL=ormFunctions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ormFunctions.d.ts","sourceRoot":"","sources":["../../../../src/lib/shared/domain/ormFunctions.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,gBAAgB,UAAmD,CAAA"}
|
|
1
|
+
{"version":3,"file":"ormFunctions.d.ts","sourceRoot":"","sources":["../../../../src/lib/shared/domain/ormFunctions.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,gBAAgB,UAAmD,CAAA;AAEhF;;;GAGG;AACH,eAAO,MAAM,aAAa,UAAyB,CAAA"}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VECTOR_FUNCTIONS = void 0;
|
|
3
|
+
exports.GEO_FUNCTIONS = exports.VECTOR_FUNCTIONS = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* The functions of vectors that λORM adds to 3xpr (orm/infrastructure/vectorFunctions.ts, docs/JSON_VECTOR.md §3):
|
|
6
6
|
* their variables travel as the text of the vector ([0.1,0.2]), not as the list of an IN
|
|
7
7
|
*/
|
|
8
8
|
exports.VECTOR_FUNCTIONS = ['cosineDistance', 'l2Distance', 'innerProduct'];
|
|
9
|
+
/**
|
|
10
|
+
* The functions of points that λORM adds to 3xpr (orm/infrastructure/geoFunctions.ts, docs/GEO.md): their variables
|
|
11
|
+
* travel as GeoJSON text, that the template of the dialect converts
|
|
12
|
+
*/
|
|
13
|
+
exports.GEO_FUNCTIONS = ['distance', 'within'];
|
|
9
14
|
//# sourceMappingURL=ormFunctions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ormFunctions.js","sourceRoot":"","sources":["../../../../src/lib/shared/domain/ormFunctions.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACU,QAAA,gBAAgB,GAAG,CAAC,gBAAgB,EAAE,YAAY,EAAE,cAAc,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"ormFunctions.js","sourceRoot":"","sources":["../../../../src/lib/shared/domain/ormFunctions.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACU,QAAA,gBAAgB,GAAG,CAAC,gBAAgB,EAAE,YAAY,EAAE,cAAc,CAAC,CAAA;AAEhF;;;GAGG;AACU,QAAA,aAAa,GAAG,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAA"}
|