Skip to content

Commit a012dfe

Browse files
committed
Import namespaces fix
1 parent f22f799 commit a012dfe

File tree

14 files changed

+16
-486
lines changed

14 files changed

+16
-486
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Here are two quick examples:
7575
FlashQL lets you run SQL queries entirely in memory — with zero setup.
7676

7777
```js
78-
import { FlashClient } from '@linked-db/linked-ql/flash';
78+
import { FlashClient } from '@linked-db/linked-ql/flashql';
7979

8080
const client = new FlashClient();
8181

@@ -101,7 +101,7 @@ Connect to your database from the list of supported dialects below.
101101
Here’s an example using PostgreSQL:
102102

103103
```js
104-
import { PGClient } from '@linked-db/linked-ql/pg';
104+
import { PGClient } from '@linked-db/linked-ql/postgres';
105105

106106
const client = new PGClient({
107107
host: 'localhost',
@@ -123,10 +123,10 @@ await client.disconnect();
123123

124124
| **Dialect** | **Import Path** | **Guide** |
125125
| :------------------ | :----------------------------- | :--------------------------------- |
126-
| PostgreSQL | `@linked-db/linked-ql/pg` | [PostgreSQL ↗](https://linked-ql.netlify.app/docs/setup#postgresql) |
126+
| PostgreSQL | `@linked-db/linked-ql/postgres` | [PostgreSQL ↗](https://linked-ql.netlify.app/docs/setup#postgresql) |
127127
| MySQL | `@linked-db/linked-ql/mysql` | [MySQL ↗](https://linked-ql.netlify.app/docs/setup#mysql) |
128128
| MariaDB | `@linked-db/linked-ql/mariadb` | [MariaDB ↗](https://linked-ql.netlify.app/docs/setup#mariadb) |
129-
| FlashQL (In-Memory) | `@linked-db/linked-ql/flash` | [FlashQL ↗](https://linked-ql.netlify.app/docs/setup#flashql) |
129+
| FlashQL (In-Memory) | `@linked-db/linked-ql/flashql` | [FlashQL ↗](https://linked-ql.netlify.app/docs/setup#flashql) |
130130

131131
## Query Interface
132132

dist/flash.js

Lines changed: 0 additions & 58 deletions
This file was deleted.

dist/flash.js 2.map

Lines changed: 0 additions & 7 deletions
This file was deleted.

dist/flash.js.map

Lines changed: 0 additions & 7 deletions
This file was deleted.

dist/main.js

Lines changed: 0 additions & 58 deletions
This file was deleted.

dist/main.js.map

Lines changed: 0 additions & 7 deletions
This file was deleted.

dist/sql.js

Lines changed: 0 additions & 102 deletions
This file was deleted.

dist/sql.js.map

Lines changed: 0 additions & 7 deletions
This file was deleted.

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,17 @@
2727
"sideEffects": true,
2828
"main": "./src/index.js",
2929
"exports": {
30-
".": "./src/flash/FlashClient.js",
31-
"./flash": "./src/flash/FlashClient.js",
32-
"./realtime": "./src/proc/realtime/RealtimeClient.js",
33-
"./mariadb": "./src/entry/mariadb/MariaDBClient.js",
30+
".": "./src/flashql/FlashClient.js",
31+
"./flashql": "./src/flashql/FlashClient.js",
32+
"./postgres": "./src/entry/postgres/PGClient.js",
3433
"./mysql": "./src/entry/mysql/MySQLClient.js",
35-
"./pg": "./src/entry/pg/PGClient.js"
34+
"./mariadb": "./src/entry/mariadb/MariaDBClient.js",
35+
"./realtime": "./src/proc/realtime/RealtimeClient.js"
3636
},
3737
"scripts": {
3838
"test": "mocha --extension .test.js --recursive --timeout 5000 --exit",
3939
"lab": "mocha --extension .lab.js --recursive --timeout 5000 --exit",
40-
"build": "esbuild main=src/index.js flash=src/flash/FlashClient.js --bundle --minify --sourcemap --outdir=dist",
40+
"build": "esbuild main=src/index.js flashql=src/flashql/FlashClient.js --bundle --minify --sourcemap --outdir=dist",
4141
"preversion": "npm run test && npm run build && git add -A dist",
4242
"postversion": "git push && git push --tags",
4343
"version:next": "npm version prerelease --preid=next",

site/docs.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Here are two quick examples:
3030
FlashQL lets you run SQL queries entirely in memory — with zero setup.
3131

3232
```js
33-
import { FlashClient } from '@linked-db/linked-ql/flash';
33+
import { FlashClient } from '@linked-db/linked-ql/flashql';
3434

3535
const client = new FlashClient();
3636

@@ -56,7 +56,7 @@ Connect to your database from the list of supported dialects below.
5656
Here’s an example using PostgreSQL:
5757

5858
```js
59-
import { PGClient } from '@linked-db/linked-ql/pg';
59+
import { PGClient } from '@linked-db/linked-ql/postgres';
6060

6161
const client = new PGClient({
6262
host: 'localhost',
@@ -78,10 +78,10 @@ await client.disconnect();
7878

7979
| **Dialect** | **Import Path** | **Guide** |
8080
| :------------------ | :----------------------------- | :--------------------------------- |
81-
| PostgreSQL | `@linked-db/linked-ql/pg` | [PostgreSQL →](/docs/setup#postgresql) |
81+
| PostgreSQL | `@linked-db/linked-ql/postgres` | [PostgreSQL →](/docs/setup#postgresql) |
8282
| MySQL | `@linked-db/linked-ql/mysql` | [MySQL →](/docs/setup#mysql) |
8383
| MariaDB | `@linked-db/linked-ql/mariadb` | [MariaDB →](/docs/setup#mariadb) |
84-
| FlashQL (In-Memory) | `@linked-db/linked-ql/flash` | [FlashQL →](/docs/setup#flashql) |
84+
| FlashQL (In-Memory) | `@linked-db/linked-ql/flashql` | [FlashQL →](/docs/setup#flashql) |
8585

8686
## The Query Interface
8787

0 commit comments

Comments
 (0)