minimonolith 0.23.0 → 0.23.1

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 CHANGED
@@ -63,7 +63,6 @@ await API.postDatabaseService({
63
63
  DB_DB: process.env.DB_DB,
64
64
  DB_USER: process.env.DB_USER,
65
65
  DB_PASS: process.env.DB_PASS,
66
- DB_STORAGE: process.env.DB_STORAGE,
67
66
  });
68
67
 
69
68
  export const lambdaHandler = await API.getSyncedHandler();
@@ -175,7 +174,7 @@ TEST_ENV=FALSE
175
174
  ## Database Authentication
176
175
 
177
176
  To set up authentication for the database you need to pass necessary variables to postDatabaseService as at index.js above.
178
- Assuming using same env variables as used at index.js above
177
+ Assuming using same env variable names as at index.js above
179
178
 
180
179
  For MySQL:
181
180
 
@@ -190,16 +189,14 @@ DB_USER=<your_database_username>
190
189
  DB_PASS=<your_database_password>
191
190
  ```
192
191
 
193
- For SQLite:
192
+ For SQLite in memory:
194
193
 
195
194
  ```makefile
196
195
  DEV_ENV=TRUE
197
196
  PROD_ENV=FALSE
198
197
  DB_DIALECT=sqlite
199
198
  DB_DB=<your_database_name>
200
- DB_STORAGE=:memory: # For in-memory SQLite database
201
- # Or
202
- DB_STORAGE=path/to/your/sqlite/file.db # For file-based SQLite database
199
+ DB_STORAGE=:memory: # Need to also pass to API.postDatabaseService()
203
200
  ```
204
201
 
205
202
  Make sure to replace the placeholders with your actual database credentials.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "minimonolith",
3
3
  "type": "module",
4
- "version": "0.23.0",
4
+ "version": "0.23.1",
5
5
  "main": "index.js",
6
6
  "license": "MIT",
7
7
  "scripts": {
package/.env.example DELETED
@@ -1,4 +0,0 @@
1
- MM_API_DB_DIALECT=sqlite
2
- MM_API_DB_STORAGE=:memory:
3
- MM_API_PROD_ENV=FALSE
4
- MM_API_DEV_ENV=TRUE