@orieljs/database 0.1.0-alpha.15 → 0.1.0-alpha.16
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 +3 -1
- package/dist/index.d.ts +2027 -1770
- package/dist/index.js +238 -135
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# @orieljs/database
|
|
2
2
|
|
|
3
|
-
The Oriel database layer: connections to SQLite, MySQL and PostgreSQL
|
|
3
|
+
The Oriel database layer: connections to SQLite, MySQL and PostgreSQL, the query builder, Eloquent models with relations, migrations, seeders and factories. It follows Laravel's `Illuminate\Database`. Database is part of `@orieljs/framework`, which every Oriel app already installs, and is re-exported from it. In an app, import it from `@orieljs/framework`; `@orieljs/database` is also published on its own.
|
|
4
|
+
|
|
5
|
+
In an app, the database driver is yours to install. A new app has `better-sqlite3`, for SQLite on Node; on Bun, SQLite is Bun's own `bun:sqlite`. Add `pg` for PostgreSQL or `mysql2` for MySQL. A connection whose driver isn't installed says so when it first connects: "The pgsql connection needs the pg package. Install it with: npm install pg". Installed on its own, `@orieljs/database` brings `pg` and `mysql2` with it, and needs `better-sqlite3` for SQLite on Node.
|
|
4
6
|
|
|
5
7
|
```bash
|
|
6
8
|
npm install @orieljs/framework
|