alsmanager_lib 1.0.25 → 1.0.26

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/lib/modules.js CHANGED
@@ -3485,6 +3485,21 @@ function queryFloorsByPlaceMySQL(id_place) {
3485
3485
  return query;
3486
3486
  }
3487
3487
 
3488
+ function queryFloorsByPlace(db_used, id_place) {
3489
+ var query = "";
3490
+ if (db_used) {
3491
+ switch (db_used) {
3492
+ case 'SQLITE':
3493
+ query = alsmgr.queryFloorsByPlaceSQLite(id_place);
3494
+ break;
3495
+ case 'MYSQL':
3496
+ query = alsmgr.queryFloorsByPlaceMySQL(id_place);
3497
+ break;
3498
+ }
3499
+ }
3500
+ return query;
3501
+ }
3502
+
3488
3503
  function queryFunzioneByPlaceAndFloorSQLite(id_place, piano) {
3489
3504
  var query = "";
3490
3505
  query = "SELECT DISTINCT sd.type as funzione from site_destinations sd";
@@ -4489,6 +4504,7 @@ module.exports = {
4489
4504
  removeConsegnaMySQL,
4490
4505
  queryLastConsegnaIdSQLite,
4491
4506
  queryLastConsegnaIdMySQL,
4507
+ //
4492
4508
  removeSiteBySetSQLite,
4493
4509
  removeSiteBySetMySQL,
4494
4510
  updateSiteBySetSQLite,
@@ -4516,8 +4532,7 @@ module.exports = {
4516
4532
  removeDeviceSiteSQLite,
4517
4533
  removeDeviceSiteMySQL,
4518
4534
  queryPlaces,
4519
- queryFloorsByPlaceSQLite,
4520
- queryFloorsByPlaceMySQL,
4535
+ queryFloorsByPlace,
4521
4536
  queryFunzioneByPlaceAndFloorSQLite,
4522
4537
  queryFunzioneByPlaceAndFloorMySQL,
4523
4538
  querySitesSQLite,
@@ -4530,6 +4545,7 @@ module.exports = {
4530
4545
  querySitesWithDefaultsMySQL,
4531
4546
  getPorteByIdSiteSQLite,
4532
4547
  getPorteByIdSiteMySQL,
4548
+ //
4533
4549
  queryStatisticSQLite,
4534
4550
  queryStatisticMySQL,
4535
4551
  queryStatisticInventarySQLite,
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "alsmanager_lib",
3
- "version": "1.0.25",
3
+ "version": "1.0.26",
4
4
  "description": "Funzioni per ALSManager",
5
5
  "license": "ISC",
6
6
  "author": "Luca Cattani",
7
7
  "type": "commonjs",
8
- "main": "./lib/*.js",
8
+ "main": "./lib/modules.js",
9
9
  "scripts": {
10
10
  "test": "echo \"Error: no test specified\" && exit 1"
11
11
  }
package/lib/doubledb.js DELETED
@@ -1,25 +0,0 @@
1
- // Metodi di gestione doppio motore DB
2
- import { queryFloorsByPlaceSQLite, queryFloorsByPlaceMySQL } from './modules';
3
-
4
- function queryFloorsByPlace(db_used, id_place) {
5
- var query = "";
6
- if (db_used) {
7
- switch (db_used) {
8
- case 'SQLITE':
9
- query = alsmgr.queryFloorsByPlaceSQLite(id_place);
10
- break;
11
- case 'MYSQL':
12
- query = alsmgr.queryFloorsByPlaceMySQL(id_place);
13
- break;
14
- }
15
- }
16
- return query;
17
- }
18
-
19
-
20
-
21
- // Exports
22
- module.exports =
23
- {
24
- queryFloorsByPlace
25
- }