minimonolith 0.14.0 → 0.14.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.
Files changed (2) hide show
  1. package/README.md +14 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -134,7 +134,9 @@ export default (MODELS, ROUTE_CODE) => ({
134
134
 
135
135
  ## Database Authentication
136
136
 
137
- To set up authentication for the database, you need to provide the necessary environment variables in a `.env` file. Here's an example of a `.env` file for connecting to a MySQL database at 0.0.0.0:
137
+ To set up authentication for the database, you need to provide the necessary environment variables in a `.env` file. Depending on the database dialect the required variables will differ.
138
+
139
+ For MySQL:
138
140
 
139
141
  ```makefile
140
142
  MM_API_DB_USERNAME=<your_database_username>
@@ -147,4 +149,15 @@ MM_API_LOCAL_ENV=true
147
149
  MM_API_PROD_ENV=false
148
150
  ```
149
151
 
152
+ For SQLite:
153
+
154
+ ```makefile
155
+ MM_API_DB_DATABASE=<your_database_name>
156
+ MM_API_DB_DIALECT=sqlite
157
+ DB_STORAGE=:memory: # For in-memory SQLite database
158
+ # Or
159
+ DB_STORAGE=path/to/your/sqlite/file.db # For file-based SQLite database
160
+ ```
161
+
150
162
  Make sure to replace the placeholders with your actual database credentials. The `MM_API_LOCAL_ENV` variable is used to allow Sequelize to alter table structure automatically when working locally, while the `MM_API_PROD_ENV` variable controls logging of secret credentials for debugging purposes in non-production environments.
163
+
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "minimonolith",
3
3
  "type": "module",
4
- "version": "0.14.0",
4
+ "version": "0.14.1",
5
5
  "main": "index.js",
6
6
  "license": "MIT",
7
7
  "scripts": {