@adecore/database 0.45.0 → 0.46.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 +4 -6
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ Browse, query and edit SQLite and MySQL or MariaDB databases from a desktop app.
|
|
|
13
13
|
bun add @adecore/database
|
|
14
14
|
```
|
|
15
15
|
|
|
16
|
-
`@adecore/ui`, React 19, `react-dom`, `i18next` and `react-i18next` are peer dependencies
|
|
16
|
+
`@adecore/ui`, React 19, `react-dom`, `i18next` and `react-i18next` are peer dependencies of the page. The host (`@adecore/database/host`) and the protocol (`@adecore/database/protocol`) import none of them.
|
|
17
17
|
|
|
18
18
|
## Layers
|
|
19
19
|
|
|
@@ -91,7 +91,7 @@ A `Connection` is `{ id, name, config }`. The app keeps the list, with the passw
|
|
|
91
91
|
>
|
|
92
92
|
```
|
|
93
93
|
|
|
94
|
-
`onAction` receives a `DatabaseAction` when a view wants a table, a console or the designer opened,
|
|
94
|
+
`onAction` receives a `DatabaseAction` when a view wants a table, a console or the designer opened, and the app decides where it goes. `storage` keeps layouts, console history and open tabs across a remount. `files` holds the app's save and open dialogs for export and import. A nested provider takes what it leaves out from the one above, so `<DatabaseProvider onAction={...}>` around one tab tells which tab an action came from.
|
|
95
95
|
|
|
96
96
|
Tell Tailwind to scan the package for its classes, next to the `@source` line of `@adecore/ui`. The path is relative to the CSS file:
|
|
97
97
|
|
|
@@ -143,11 +143,9 @@ Or copy the binary into `extraResources` and pass that path to `spawnHelper`, wi
|
|
|
143
143
|
|
|
144
144
|
## Views and testing
|
|
145
145
|
|
|
146
|
-
`ConnectionManager`
|
|
146
|
+
The views are `ConnectionManager`, `ConnectionForm`, `DatabaseExplorer`, `TableView`, `StructureView`, `TableDesigner`, `QueryConsole` and `DatabaseWorkbench`, which puts the explorer beside tabs of the others. A connection reaches MySQL or MariaDB over TCP, a Unix socket, an SSH host or a Docker container. [The documentation](https://adecore.dev/database/) has a page per view and guides for connections, files, security and the protocol.
|
|
147
147
|
|
|
148
|
-
`@adecore/database/testing` has `fakeDatabaseTransport`, an in-memory server behind the same transport, for demos and
|
|
149
|
-
|
|
150
|
-
The documentation at https://adecore.dev/database/ has a page for each view, and guides for connections, files, security and the protocol.
|
|
148
|
+
`@adecore/database/testing` has `fakeDatabaseTransport`, an in-memory server behind the same transport, for demos and an app's tests.
|
|
151
149
|
|
|
152
150
|
## License
|
|
153
151
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adecore/database",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.46.0",
|
|
4
4
|
"description": "Browse, query and edit SQLite and MySQL databases: React views for the page, a host for the backend and a native helper that talks to the server.",
|
|
5
5
|
"license": "FSL-1.1-MIT",
|
|
6
6
|
"author": "Bas Milius",
|
|
@@ -61,20 +61,20 @@
|
|
|
61
61
|
"lucide-react": "^1.61.0"
|
|
62
62
|
},
|
|
63
63
|
"optionalDependencies": {
|
|
64
|
-
"@adecore/database-darwin-arm64": "0.
|
|
65
|
-
"@adecore/database-linux-arm64": "0.
|
|
66
|
-
"@adecore/database-linux-x64": "0.
|
|
67
|
-
"@adecore/database-win32-x64": "0.
|
|
64
|
+
"@adecore/database-darwin-arm64": "0.46.0",
|
|
65
|
+
"@adecore/database-linux-arm64": "0.46.0",
|
|
66
|
+
"@adecore/database-linux-x64": "0.46.0",
|
|
67
|
+
"@adecore/database-win32-x64": "0.46.0"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
|
-
"@adecore/ui": "^0.
|
|
70
|
+
"@adecore/ui": "^0.46.0",
|
|
71
71
|
"i18next": "^26.4.2",
|
|
72
72
|
"react": "^19.3.0",
|
|
73
73
|
"react-dom": "^19.3.0",
|
|
74
74
|
"react-i18next": "^17.0.15"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
|
-
"@adecore/ui": "0.
|
|
77
|
+
"@adecore/ui": "0.46.0",
|
|
78
78
|
"@happy-dom/global-registrator": "^21.0.4",
|
|
79
79
|
"@types/bun": "^1.4.4",
|
|
80
80
|
"@types/node": "^24.19.2",
|