@easy-cms/db-sqlite 0.9.1 → 0.10.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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @easy-cms/db-sqlite
2
2
 
3
- SQLite / libSQL (Turso) adapter for [Easy CMS](https://github.com/maritonx/easy-crm).
3
+ SQLite / libSQL (Turso) adapter for [Easy CMS](https://github.com/maritonx/easy-cms).
4
4
 
5
5
  ```ts
6
6
  import { sqlite } from '@easy-cms/db-sqlite'
package/dist/index.js CHANGED
@@ -57,6 +57,7 @@ var sqliteDialect = {
57
57
  );
58
58
  return sql`(select ${value} from ${sql.join(from, sql`, `)} where ${value} is not null order by ${order} limit 1)`;
59
59
  },
60
+ backupSQL: (file) => `VACUUM INTO '${file.replaceAll("'", "''")}'`,
60
61
  param: () => "?",
61
62
  migrationsTableSQL: (name) => `CREATE TABLE IF NOT EXISTS \`${name}\` (
62
63
  \`id\` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easy-cms/db-sqlite",
3
- "version": "0.9.1",
3
+ "version": "0.10.0",
4
4
  "description": "SQLite / libSQL database adapter for Easy CMS",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -22,21 +22,21 @@
22
22
  "@libsql/client": "^0.18.0",
23
23
  "drizzle-kit": "0.31.11",
24
24
  "drizzle-orm": "0.45.3",
25
- "@easy-cms/drizzle": "^0.9.1"
25
+ "@easy-cms/drizzle": "^0.10.0"
26
26
  },
27
27
  "peerDependencies": {
28
- "@easy-cms/core": "^0.9.1"
28
+ "@easy-cms/core": "^0.10.0"
29
29
  },
30
30
  "devDependencies": {
31
31
  "sharp": "^0.35.4",
32
- "@easy-cms/core": "^0.9.1"
32
+ "@easy-cms/core": "^0.10.0"
33
33
  },
34
34
  "publishConfig": {
35
35
  "access": "public"
36
36
  },
37
37
  "repository": {
38
38
  "type": "git",
39
- "url": "git+https://github.com/maritonx/easy-crm.git",
39
+ "url": "git+https://github.com/maritonx/easy-cms.git",
40
40
  "directory": "packages/db-sqlite"
41
41
  },
42
42
  "keywords": [