@mlagie/sql-connector 3.1.0 → 3.3.0

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/index.d.ts CHANGED
@@ -362,6 +362,19 @@ export type SelectAggregation = {
362
362
  */
363
363
  count?: string | string[] | Record<string, any>;
364
364
 
365
+ /**
366
+ * Calculates MAX(column).
367
+ *
368
+ * A string, list of strings or object may be supplied
369
+ * depending on the query builder expression.
370
+ *
371
+ * @example
372
+ * ```ts
373
+ * { max: "created_at", as: "latest" }
374
+ * ```
375
+ */
376
+ max?: string | string[] | Record<string, any>;
377
+
365
378
  /**
366
379
  * Alias assigned to the resulting expression.
367
380
  */
package/index.js CHANGED
@@ -10,9 +10,7 @@ const {
10
10
  MigrationRunner,
11
11
  SchemaDiffer,
12
12
  SchemaInspector,
13
- MySQLDialect,
14
- PostgreSQLDialect
15
- } = require("./src/migration");
13
+ } = require("./src/migration");
16
14
  const { MigrationError, DestructiveMigrationError, MigrationChecksumError } = require("./src/migration/errors");
17
15
 
18
16
  let client = {};
@@ -31,8 +29,6 @@ module.exports = {
31
29
  MigrationRunner,
32
30
  SchemaDiffer,
33
31
  SchemaInspector,
34
- MySQLDialect,
35
- PostgreSQLDialect,
36
32
  MigrationError,
37
33
  DestructiveMigrationError,
38
34
  MigrationChecksumError
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mlagie/sql-connector",
3
- "version": "3.1.0",
3
+ "version": "3.3.0",
4
4
  "description": "The sql-connector module allows you to manage connections to a MySQL database, define table schemas, and interact with data in a simple and efficient way.",
5
5
  "main": "index.js",
6
6
  "exports": {
@@ -79,7 +79,8 @@
79
79
  "test-exclude": "^8.0.0",
80
80
  "glob": "^13.0.6",
81
81
  "minimatch": "^10.2.2",
82
- "brace-expansion": "^5.0.9"
82
+ "brace-expansion": "^5.0.9",
83
+ "js-yaml": "^4.1.0"
83
84
  },
84
85
  "allowScripts": {
85
86
  "unrs-resolver@1.12.2": true,