@zukhruf/sqlite-snapshot 0.8.16 → 0.8.18

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
@@ -98,12 +98,12 @@ try {
98
98
 
99
99
  ## Errors
100
100
 
101
- | Error | When |
102
- | ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
103
- | `UnavailableError` | SQLite cannot open the file: `SQLITE_CANTOPEN` (14), for a missing file or a file that the system denies, a privacy denial too. `path` is the path. `cause` is the error of SQLite. `ofExclusiveOwner` throws it when it cannot copy the file (`ENOENT`, `EACCES`, `EPERM`); then `cause` is the error of the file system. |
104
- | `MissingColumnsError` | `requireColumns` finds a missing column. `path` is the path, and `missing` gives each missing column as `table.column`. The snapshot is closed. |
105
- | `DatabaseChangingError` | `ofExclusiveOwner` found a write of the owner during each of 5 copies. `path` is the path, and `attempts` is the number of copies. No copy stays. |
106
- | The error of SQLite | All other failures, for example a file that is not a database. The constructor closes the connection before it throws. |
101
+ | Error | When |
102
+ | ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
103
+ | `UnavailableError` | SQLite cannot open the file: `SQLITE_CANTOPEN` (14), for a missing file or a file that the system denies, a privacy denial too. `path` is the path. `cause` is the error of SQLite. `ofExclusiveOwner` throws it when it cannot copy the file (`ENOENT`, `EACCES`, `EPERM`); then `cause` is the error of the file system. It is a `MissingError` when the file or a folder on its path is not there, and a `DeniedError` when the system denies access. The package exports both, and both are an `UnavailableError`. |
104
+ | `MissingColumnsError` | `requireColumns` finds a missing column. `path` is the path, and `missing` gives each missing column as `table.column`. The snapshot is closed. |
105
+ | `DatabaseChangingError` | `ofExclusiveOwner` found a write of the owner during each of 5 copies. `path` is the path, and `attempts` is the number of copies. No copy stays. |
106
+ | The error of SQLite | All other failures, for example a file that is not a database. The constructor closes the connection before it throws. |
107
107
 
108
108
  ## The same concepts in other systems
109
109
 
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { DatabaseChangingError } from './database-changing-error.ts';
2
2
  export { MissingColumnsError } from './missing-columns-error.ts';
3
3
  export { Snapshot, type SnapshotColumns } from './snapshot.ts';
4
- export { UnavailableError } from '@zukhruf/sqlite-open';
4
+ export { DeniedError, MissingError, UnavailableError, } from '@zukhruf/sqlite-open';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAC/D,OAAO,EACL,WAAW,EACX,YAAY,EACZ,gBAAgB,GACjB,MAAM,sBAAsB,CAAC"}
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export { DatabaseChangingError } from "./database-changing-error.js";
2
2
  export { MissingColumnsError } from "./missing-columns-error.js";
3
3
  export { Snapshot } from "./snapshot.js";
4
- export { UnavailableError } from '@zukhruf/sqlite-open';
4
+ export { DeniedError, MissingError, UnavailableError, } from '@zukhruf/sqlite-open';
5
5
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAwB,MAAM,eAAe,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAwB,MAAM,eAAe,CAAC;AAC/D,OAAO,EACL,WAAW,EACX,YAAY,EACZ,gBAAgB,GACjB,MAAM,sBAAsB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zukhruf/sqlite-snapshot",
3
- "version": "0.8.16",
3
+ "version": "0.8.18",
4
4
  "description": "A read-only snapshot of a SQLite database that another process owns and writes, held by one read transaction so the tables agree, or by a checked copy when the owner holds the exclusive lock. Checks the columns a reader needs.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -40,10 +40,10 @@
40
40
  "access": "public"
41
41
  },
42
42
  "dependencies": {
43
- "@zukhruf/fs": "^0.8.16",
44
- "@zukhruf/sqlite-open": "^0.8.16"
43
+ "@zukhruf/fs": "^0.8.18",
44
+ "@zukhruf/sqlite-open": "^0.8.18"
45
45
  },
46
46
  "devDependencies": {
47
- "@zukhruf/testing": "^0.8.16"
47
+ "@zukhruf/testing": "^0.8.18"
48
48
  }
49
49
  }