create-mantiq 0.5.20 → 0.5.21

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-mantiq",
3
- "version": "0.5.20",
3
+ "version": "0.5.21",
4
4
  "description": "Scaffold a new MantiqJS application",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -21,7 +21,7 @@ export default {
21
21
  |
22
22
  | Here are each of the database connections set up for your application.
23
23
  | SQLite is pre-configured and requires no external services. Add
24
- | additional connections for PostgreSQL, MySQL, or MongoDB as needed.
24
+ | additional connections for PostgreSQL, MySQL, MSSQL, or MongoDB.
25
25
  |
26
26
  | Supported drivers: 'sqlite', 'postgres', 'mysql', 'mssql', 'mongodb'
27
27
  |
@@ -29,6 +29,7 @@ export default {
29
29
  connections: {
30
30
  sqlite: {
31
31
  driver: 'sqlite' as const,
32
+ // ':memory:' for in-memory, or a file path
32
33
  database: env('DB_DATABASE', import.meta.dir + '/../database/database.sqlite'),
33
34
  },
34
35
 
@@ -37,8 +38,20 @@ export default {
37
38
  // host: env('DB_HOST', '127.0.0.1'),
38
39
  // port: Number(env('DB_PORT', '5432')),
39
40
  // database: env('DB_DATABASE', 'mantiq'),
40
- // username: env('DB_USERNAME', 'postgres'),
41
+ // user: env('DB_USERNAME', 'postgres'),
41
42
  // password: env('DB_PASSWORD', ''),
43
+ // ssl: env('DB_SSL', 'false') === 'true',
44
+ // pool: {
45
+ // min: Number(env('DB_POOL_MIN', '2')),
46
+ // max: Number(env('DB_POOL_MAX', '10')),
47
+ // },
48
+ // // Read/write splitting — route reads to replicas
49
+ // // read: {
50
+ // // host: [env('DB_READ_HOST_1', '127.0.0.1'), env('DB_READ_HOST_2', '127.0.0.1')],
51
+ // // },
52
+ // // write: {
53
+ // // host: env('DB_WRITE_HOST', '127.0.0.1'),
54
+ // // },
42
55
  // },
43
56
 
44
57
  // mysql: {
@@ -46,8 +59,34 @@ export default {
46
59
  // host: env('DB_HOST', '127.0.0.1'),
47
60
  // port: Number(env('DB_PORT', '3306')),
48
61
  // database: env('DB_DATABASE', 'mantiq'),
49
- // username: env('DB_USERNAME', 'root'),
62
+ // user: env('DB_USERNAME', 'root'),
50
63
  // password: env('DB_PASSWORD', ''),
64
+ // pool: {
65
+ // min: Number(env('DB_POOL_MIN', '2')),
66
+ // max: Number(env('DB_POOL_MAX', '10')),
67
+ // },
68
+ // // Read/write splitting — route reads to replicas
69
+ // // read: {
70
+ // // host: [env('DB_READ_HOST_1', '127.0.0.1'), env('DB_READ_HOST_2', '127.0.0.1')],
71
+ // // },
72
+ // // write: {
73
+ // // host: env('DB_WRITE_HOST', '127.0.0.1'),
74
+ // // },
75
+ // },
76
+
77
+ // mariadb: {
78
+ // driver: 'mysql' as const, // MariaDB uses the MySQL driver
79
+ // host: env('DB_HOST', '127.0.0.1'),
80
+ // port: Number(env('DB_PORT', '3306')),
81
+ // database: env('DB_DATABASE', 'mantiq'),
82
+ // user: env('DB_USERNAME', 'root'),
83
+ // password: env('DB_PASSWORD', ''),
84
+ // pool: {
85
+ // min: Number(env('DB_POOL_MIN', '2')),
86
+ // max: Number(env('DB_POOL_MAX', '10')),
87
+ // },
88
+ // // read: { host: [env('DB_READ_HOST_1', '127.0.0.1')] },
89
+ // // write: { host: env('DB_WRITE_HOST', '127.0.0.1') },
51
90
  // },
52
91
 
53
92
  // mssql: {
@@ -55,14 +94,27 @@ export default {
55
94
  // host: env('DB_HOST', '127.0.0.1'),
56
95
  // port: Number(env('DB_PORT', '1433')),
57
96
  // database: env('DB_DATABASE', 'mantiq'),
58
- // username: env('DB_USERNAME', 'sa'),
97
+ // user: env('DB_USERNAME', 'sa'),
59
98
  // password: env('DB_PASSWORD', ''),
99
+ // encrypt: env('DB_ENCRYPT', 'true') === 'true',
100
+ // trustServerCertificate: env('DB_TRUST_CERT', 'false') === 'true',
101
+ // pool: {
102
+ // min: Number(env('DB_POOL_MIN', '2')),
103
+ // max: Number(env('DB_POOL_MAX', '10')),
104
+ // },
105
+ // // read: { host: [env('DB_READ_HOST_1', '127.0.0.1')] },
106
+ // // write: { host: env('DB_WRITE_HOST', '127.0.0.1') },
60
107
  // },
61
108
 
62
109
  // mongodb: {
63
110
  // driver: 'mongodb' as const,
64
- // url: env('MONGODB_URL', 'mongodb://127.0.0.1:27017'),
111
+ // uri: env('MONGODB_URL', 'mongodb://127.0.0.1:27017'),
65
112
  // database: env('DB_DATABASE', 'mantiq'),
113
+ // options: {
114
+ // // Any MongoClient options: retryWrites, w, etc.
115
+ // },
116
+ // // Read preference for replicas
117
+ // // readPreference: 'secondaryPreferred',
66
118
  // },
67
119
  },
68
120
  }