retold-data-service 1.0.2 → 1.0.3

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.
Files changed (77) hide show
  1. package/.config/configstore/update-notifier-npm-check-updates.json +1 -1
  2. package/.config/configstore/update-notifier-npm.json +1 -1
  3. package/.config/vscode-sqltools/runningInfo.json +13 -0
  4. package/.vscode/launch.json +24 -0
  5. package/.vscode/settings.json +17 -0
  6. package/Dockerfile_LUXURYCode +94 -0
  7. package/debug/Harness.js +34 -2
  8. package/debug/bookstore-configuration.json +29 -0
  9. package/debug/bookstore-serve-meadow-endpoint-apis.js +41 -0
  10. package/debug/data/books.csv +10001 -0
  11. package/debug/model/bookstore-api-endpoint-exercises.paw +0 -0
  12. package/debug/model/manual_scripts/MySQL-Laden-Entry.sh +17 -0
  13. package/debug/model/manual_scripts/MySQL-Security.sql +5 -0
  14. package/debug/model/manual_scripts/my.cnf +4 -0
  15. package/debug/model/sql_create/BookStore-CreateAndPopulateTables.sql +194 -0
  16. package/debug/package-lock.json +3999 -0
  17. package/debug/package.json +13 -0
  18. package/package.json +47 -17
  19. package/source/Retold-Data-Service.js +94 -299
  20. package/test/RetoldDataService_tests.js +16 -36
  21. package/test/model/fable-configuration.json +16 -0
  22. package/test/model/meadow/README.md +1 -0
  23. package/debug/Build-Database.sh +0 -12
  24. package/debug/Harness-Configuration.json +0 -51
  25. package/debug/model/doc/Dictionary.md +0 -18
  26. package/debug/model/doc/Model-Author.md +0 -20
  27. package/debug/model/doc/Model-Book.md +0 -26
  28. package/debug/model/doc/Model-BookAuthorJoin.md +0 -14
  29. package/debug/model/doc/Model-BookPrice.md +0 -25
  30. package/debug/model/doc/Model-Review.md +0 -22
  31. package/debug/model/doc/ModelChangeTracking.md +0 -17
  32. package/debug/model/doc/diagrams/Relationships.dot +0 -13
  33. package/debug/model/doc/diagrams/Relationships.png +0 -0
  34. package/debug/model/doc/diagrams/RelationshipsFull.dot +0 -13
  35. package/debug/model/doc/diagrams/RelationshipsFull.png +0 -0
  36. package/debug/model/mysql_create/MeadowModel-CreateMySQLDatabase.mysql.sql +0 -116
  37. package/source/Cumulation-Settings-Default.js +0 -19
  38. package/source/Cumulation.js +0 -90
  39. package/source/GraphGet.js +0 -607
  40. package/source/ProviderHelpers/Meadow-Provider-Helper-ALASQL.js +0 -48
  41. package/source/ProviderHelpers/Meadow-Provider-Helper-Base.js +0 -46
  42. package/source/ProviderHelpers/Meadow-Provider-Helper-MySQL.js +0 -62
  43. package/test/basic_test_configurations/fable-config-load_model.json +0 -45
  44. package/test/model/meadow_model/BookStore-PICT.json +0 -1
  45. package/test/model/meadow_model/README.md +0 -1
  46. /package/debug/model/{MeadowModel-Extended.json → Model-Extended.json} +0 -0
  47. /package/debug/model/{MeadowModel-PICT.json → Model-PICT.json} +0 -0
  48. /package/debug/model/{MeadowModel.json → Model.json} +0 -0
  49. /package/debug/{Model.ddl → model/ddl/BookStore.ddl} +0 -0
  50. /package/{test → debug}/model/generated_diagram/README.md +0 -0
  51. /package/{test → debug}/model/generated_diagram/Stricture_Output.dot +0 -0
  52. /package/{test → debug}/model/generated_diagram/Stricture_Output.png +0 -0
  53. /package/{test → debug}/model/generated_documentation/Dictionary.md +0 -0
  54. /package/{test → debug}/model/generated_documentation/Model-Author.md +0 -0
  55. /package/{test → debug}/model/generated_documentation/Model-Book.md +0 -0
  56. /package/{test → debug}/model/generated_documentation/Model-BookAuthorJoin.md +0 -0
  57. /package/{test → debug}/model/generated_documentation/Model-BookPrice.md +0 -0
  58. /package/{test → debug}/model/generated_documentation/Model-Review.md +0 -0
  59. /package/{test → debug}/model/generated_documentation/ModelChangeTracking.md +0 -0
  60. /package/{test → debug}/model/generated_documentation/README.md +0 -0
  61. /package/{test → debug}/model/manual_scripts/DropTables.sql +0 -0
  62. /package/{test → debug}/model/manual_scripts/README.md +0 -0
  63. /package/debug/model/meadow/{MeadowSchemaAuthor.json → Model-MeadowSchema-Author.json} +0 -0
  64. /package/debug/model/meadow/{MeadowSchemaBook.json → Model-MeadowSchema-Book.json} +0 -0
  65. /package/debug/model/meadow/{MeadowSchemaBookAuthorJoin.json → Model-MeadowSchema-BookAuthorJoin.json} +0 -0
  66. /package/debug/model/meadow/{MeadowSchemaBookPrice.json → Model-MeadowSchema-BookPrice.json} +0 -0
  67. /package/debug/model/meadow/{MeadowSchemaReview.json → Model-MeadowSchema-Review.json} +0 -0
  68. /package/{test/model/meadow_schema → debug/model/meadow}/README.md +0 -0
  69. /package/{test → debug}/model/sql_create/BookStore-CreateDatabase.mysql.sql +0 -0
  70. /package/{test → debug}/model/sql_create/README.md +0 -0
  71. /package/test/model/{meadow_model/BookStore-Extended.json → Model-Extended.json} +0 -0
  72. /package/test/model/{meadow_model/BookStore.json → Model.json} +0 -0
  73. /package/test/model/{meadow_schema/BookStore-MeadowSchema-Author.json → meadow/Model-MeadowSchema-Author.json} +0 -0
  74. /package/test/model/{meadow_schema/BookStore-MeadowSchema-Book.json → meadow/Model-MeadowSchema-Book.json} +0 -0
  75. /package/test/model/{meadow_schema/BookStore-MeadowSchema-BookAuthorJoin.json → meadow/Model-MeadowSchema-BookAuthorJoin.json} +0 -0
  76. /package/test/model/{meadow_schema/BookStore-MeadowSchema-BookPrice.json → meadow/Model-MeadowSchema-BookPrice.json} +0 -0
  77. /package/test/model/{meadow_schema/BookStore-MeadowSchema-Review.json → meadow/Model-MeadowSchema-Review.json} +0 -0
@@ -1,62 +0,0 @@
1
- // ##### Part of the **[retold](https://stevenvelozo.github.io/retold/)** system
2
- /**
3
- * @license MIT
4
- * @author <steven@velozo.com>
5
- */
6
- const libMySQL = require('mysql2');
7
- const libRetoldProviderHelperBase = require('./Meadow-Provider-Helper-Base');
8
- /**
9
- * Retold MySQL Helper
10
- *
11
- * @class RetoldProviderHelperMySQL
12
- */
13
- class RetoldProviderHelperMySQL extends libRetoldProviderHelperBase
14
- {
15
- constructor(pFable)
16
- {
17
- super(pFable);
18
- }
19
-
20
- // Connect to the server
21
- connect()
22
- {
23
- this._Fable.log.info(`...Creating SQL Connection pools at [${this._Fable.settings.MySQL.Server}]...`,this._Fable.settings.MySQL);
24
- // Setup SQL Connection Pool
25
- // TODO: try/catch/finally
26
- this._Fable.MeadowMySQLConnectionPool = libMySQL.createPool
27
- (
28
- {
29
- connectionLimit: this._Fable.settings.MySQL.ConnectionPoolLimit,
30
- host: this._Fable.settings.MySQL.Server,
31
- port: this._Fable.settings.MySQL.Port,
32
- user: this._Fable.settings.MySQL.User,
33
- password: this._Fable.settings.MySQL.Password,
34
- database: this._Fable.settings.MySQL.Database,
35
- namedPlaceholders: true
36
- }
37
- );
38
-
39
- return true;
40
- }
41
-
42
- // Create database (this deals with its own connections and closes them)
43
- createDatabase()
44
- {
45
-
46
- }
47
-
48
- // Create tables if they don't exist (this deals with its own connections and closes them)
49
- createTables()
50
- {
51
-
52
- }
53
-
54
- // Update tables to match schemas (this deals with its own connections and closes them)
55
- // TODO: This requires some additional features in stricture.
56
- updateTables()
57
- {
58
-
59
- }
60
- }
61
-
62
- module.exports = RetoldProviderHelperMySQL;
@@ -1,45 +0,0 @@
1
- {
2
- "Product": "SimpleModel",
3
- "ProductVersion": "1.0.0",
4
-
5
- "UUID":
6
- {
7
- "DataCenter": 0,
8
- "Worker": 0
9
- },
10
- "LogStreams":
11
- [
12
- {
13
- "level": "trace",
14
- "streamtype": "prettystream"
15
- }
16
- ],
17
-
18
- "APIServerPort": 8086,
19
-
20
- "Retold":
21
- {
22
- "AutoMapEntities": true,
23
- "AutoStartAPIServer": true,
24
-
25
- "DefaultMeadowDataProvider": "MySQL",
26
-
27
- "AllowDatabaseCreate": false,
28
- "AllowTableCreate": false,
29
- "AllowTableUpdate": false,
30
-
31
- "MeadowModel": false,
32
- "MeadowEntitySchema": false,
33
- "StrictureDDL": false
34
- },
35
-
36
- "MySQL":
37
- {
38
- "Server": "127.0.0.1",
39
- "Port": 3306,
40
- "User": "root",
41
- "Password": "123456789",
42
- "Database": "bookstore",
43
- "ConnectionPoolLimit": 20
44
- }
45
- }
@@ -1 +0,0 @@
1
- This is where the meadow high-level JSON schema of the data model will generate.
File without changes
File without changes
File without changes
File without changes