@zukhruf/sqlite-federation 0.8.15 → 0.8.17
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 +11 -11
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -108,17 +108,17 @@ const result = database.query(
|
|
|
108
108
|
|
|
109
109
|
## Errors
|
|
110
110
|
|
|
111
|
-
| Error | When
|
|
112
|
-
| -------------------------------------- |
|
|
113
|
-
| `TooManyDatabasesError` | A statement names more databases than the limit. `names` has at least one name more than the limit. The message tells you to split the statement.
|
|
114
|
-
| `Unknown main database <name>` | The constructor cannot locate the named primary database.
|
|
115
|
-
| `no such table: <name>.<table>` | The error of SQLite, when `locate` returns `undefined` for the name, or when the database does not have the table.
|
|
116
|
-
| `UnavailableError` | The constructor cannot open the primary database: the file is missing, or the system denies access. `path` is the path. `cause` is the error of SQLite. It is the class of `@zukhruf/sqlite-open`. |
|
|
117
|
-
| `unable to open database file` | The error of SQLite, when `locate` returns a path with no file for a database that a statement attaches.
|
|
118
|
-
| `attempt to write a readonly database` | The error of SQLite, when a statement writes.
|
|
119
|
-
| The error of `locate` | The constructor or statement fails with that error. The databases that the statement attached before are detached.
|
|
120
|
-
| `unknown database <name>` | The error of SQLite, when a PRAGMA names a database that `locate` cannot find. Quoting follows the statement or the table-valued PRAGMA argument.
|
|
121
|
-
| `Run one SQL statement at a time` | A raw query contains a second statement.
|
|
111
|
+
| Error | When |
|
|
112
|
+
| -------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
113
|
+
| `TooManyDatabasesError` | A statement names more databases than the limit. `names` has at least one name more than the limit. The message tells you to split the statement. |
|
|
114
|
+
| `Unknown main database <name>` | The constructor cannot locate the named primary database. |
|
|
115
|
+
| `no such table: <name>.<table>` | The error of SQLite, when `locate` returns `undefined` for the name, or when the database does not have the table. |
|
|
116
|
+
| `UnavailableError` | The constructor cannot open the primary database: the file is missing, or the system denies access. `path` is the path. `cause` is the error of SQLite. It is the class of `@zukhruf/sqlite-open`. 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`. |
|
|
117
|
+
| `unable to open database file` | The error of SQLite, when `locate` returns a path with no file for a database that a statement attaches. |
|
|
118
|
+
| `attempt to write a readonly database` | The error of SQLite, when a statement writes. |
|
|
119
|
+
| The error of `locate` | The constructor or statement fails with that error. The databases that the statement attached before are detached. |
|
|
120
|
+
| `unknown database <name>` | The error of SQLite, when a PRAGMA names a database that `locate` cannot find. Quoting follows the statement or the table-valued PRAGMA argument. |
|
|
121
|
+
| `Run one SQL statement at a time` | A raw query contains a second statement. |
|
|
122
122
|
|
|
123
123
|
## The same concepts in other systems
|
|
124
124
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { Federation, type FederationOptions, type Locate, type Query, type QueryResult, } from './federation.ts';
|
|
2
2
|
export { TooManyDatabasesError } from './too-many-databases-error.ts';
|
|
3
|
-
export { UnavailableError } from '@zukhruf/sqlite-open';
|
|
3
|
+
export { DeniedError, MissingError, UnavailableError, } from '@zukhruf/sqlite-open';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,KAAK,iBAAiB,EACtB,KAAK,MAAM,EACX,KAAK,KAAK,EACV,KAAK,WAAW,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,KAAK,iBAAiB,EACtB,KAAK,MAAM,EACX,KAAK,KAAK,EACV,KAAK,WAAW,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EACL,WAAW,EACX,YAAY,EACZ,gBAAgB,GACjB,MAAM,sBAAsB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { Federation, } from "./federation.js";
|
|
2
2
|
export { TooManyDatabasesError } from "./too-many-databases-error.js";
|
|
3
|
-
export { UnavailableError } from '@zukhruf/sqlite-open';
|
|
3
|
+
export { DeniedError, MissingError, UnavailableError, } from '@zukhruf/sqlite-open';
|
|
4
4
|
//# 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,EACL,UAAU,GAKX,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,GAKX,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,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-federation",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.17",
|
|
4
4
|
"description": "One read-only handle over many SQLite databases. Each statement attaches the databases it names and detaches them when it ends. So a host can keep more databases than the SQLite attach limit, and one statement can read 10 plus the primary database.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
"access": "public"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@zukhruf/sqlite-open": "^0.8.
|
|
44
|
+
"@zukhruf/sqlite-open": "^0.8.17"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@zukhruf/testing": "^0.8.
|
|
47
|
+
"@zukhruf/testing": "^0.8.17"
|
|
48
48
|
}
|
|
49
49
|
}
|