Skip to content

Commit 59440cf

Browse files
committed
Pull from master
2 parents 031d820 + d7295a9 commit 59440cf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+7556
-2331
lines changed

.github/workflows/publish 2.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Publish to npm
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: 20
20+
registry-url: 'https://registry.npmjs.org/'
21+
22+
- name: Install dependencies
23+
run: npm ci
24+
25+
- name: Build
26+
run: npm run build
27+
28+
- name: Determine npm tag
29+
id: tag
30+
run: |
31+
# Extract tag name without "refs/tags/"
32+
TAG_REF=${GITHUB_REF#refs/tags/}
33+
echo "Detected Git tag: $TAG_REF"
34+
35+
# Determine npm tag
36+
if [[ "$TAG_REF" == *-* ]]; then
37+
# prerelease (contains a hyphen)
38+
NPM_TAG=$(echo "$TAG_REF" | sed -E 's/^v[0-9]+\.[0-9]+\.[0-9]+-([a-zA-Z0-9]+).*/\1/')
39+
else
40+
NPM_TAG="latest"
41+
fi
42+
echo "npm publish will use tag: $NPM_TAG"
43+
echo "tag=$NPM_TAG" >> $GITHUB_OUTPUT
44+
45+
- name: Publish to npm
46+
env:
47+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
48+
run: npm publish --tag ${{ steps.tag.outputs.tag }}

README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ _A modern take on SQL and SQL databases_
2323

2424
Try an advanced form of SQL right on your database.<br>
2525
**LinkedQL** is a database client (`client.query()`) that solves the modern database capability problem in a single interface — and in under `80 KiB min | zip`.<br>
26-
Relationships • JSON • Reactivity • Versioning • Offline → **SOLVED**
26+
Relationships • JSON • Schema • Reactivity • Versioning • Offline → **SOLVED**
2727

2828
</div>
2929

@@ -78,10 +78,10 @@ For PostgreSQL, MySQL, and MariaDB, it adapts seamlessly to each database throug
7878

7979
| **Dialect** | **Package** | **Docs** |
8080
| :------------------ | :----------------------------- | :----------------------------------------------------------------------------------------- |
81-
| PostgreSQL | `@linked-db/linked-ql/pg` | [Read → PG Docs](https://linked-db.github.io/linked-ql/entry/clients#11--postgresql) |
82-
| MySQL | `@linked-db/linked-ql/mysql` | [Read → MySQL Docs](https://linked-db.github.io/linked-ql/entry/clients#12--mysql) |
83-
| MariaDB | `@linked-db/linked-ql/mariadb` | [Read → MariaDB Docs](https://linked-db.github.io/linked-ql/entry/clients#13--mariadb) |
84-
| FlashQL (In-Memory) | `@linked-db/linked-ql/flash` | [Read → FlashQL Docs](https://linked-db.github.io/linked-ql/entry/clients#14--flashql) |
81+
| PostgreSQL | `@linked-db/linked-ql/pg` | [Read → PG Docs](https://linked-ql.netlify.app/docs/setup#postgresql) |
82+
| MySQL | `@linked-db/linked-ql/mysql` | [Read → MySQL Docs](https://linked-ql.netlify.app/docs/setup#mysql) |
83+
| MariaDB | `@linked-db/linked-ql/mariadb` | [Read → MariaDB Docs](https://linked-ql.netlify.app/docs/setup#mariadb) |
84+
| FlashQL (In-Memory) | `@linked-db/linked-ql/flash` | [Read → FlashQL Docs](https://linked-ql.netlify.app/docs/setup#flashql) |
8585

8686
---
8787

@@ -121,9 +121,9 @@ LinkedQL automatically compiles your query down to the SQL your database underst
121121

122122
| **Feature** | **Summary** | **Docs** |
123123
| :---------------- | :------------------------------------------------------------------------------ | :-------------------------------------------------------------------------------- |
124-
| **DeepRefs** | Follow relationships using simple arrow notation (`a ~> b ~> c`). | [Read → DeepRefs Docs](https://linked-db.github.io/linked-ql/lang/deeprefs) |
125-
| **JSON Literals** | Model JSON shapes directly in SQL using JSON literals (`{}`, `[]`). | [Read → JSON Docs](https://linked-db.github.io/linked-ql/lang/json-literals) |
126-
| **UPSERTS** | Perform insert-or-update operations with a literal `UPSERT` statement. | [Read → UPSERTS Docs](https://linked-db.github.io/linked-ql/lang/upsert) |
124+
| **DeepRefs** | Follow relationships using simple arrow notation (`a ~> b ~> c`). | [Read → DeepRefs Docs](https://linked-ql.netlify.app/docs/capabilities/deeprefs) |
125+
| **JSON Literals** | Model JSON shapes directly in SQL using JSON literals (`{}`, `[]`). | [Read → JSON Docs](https://linked-ql.netlify.app/docs/capabilities/json-literals) |
126+
| **UPSERTS** | Perform insert-or-update operations with a literal `UPSERT` statement. | [Read → UPSERTS Docs](https://linked-ql.netlify.app/docs/capabilities/upsert) |
127127

128128
### Examples
129129

@@ -194,7 +194,7 @@ Modern apps and modern workflows — solved.
194194

195195
| **Feature** | **Summary** | **Docs** |
196196
| :------------------ | :-------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------- |
197-
| **Realtime SQL** | Run live, self-updating queries right on your database. | [Read → RealtimeSQL Docs](https://linked-db.github.io/linked-ql/proc/realtime-sql) |
197+
| **Realtime SQL** | Run live, self-updating queries right on your database. | [Read → RealtimeSQL Docs](https://linked-ql.netlify.app/docs/capabilities/realtime-sql) |
198198
| **Timeline Engine** | Get automatic database versioning on every DDL operation; bind queries to specific schema versions. | *(Coming soon)* |
199199

200200
### Examples
@@ -271,9 +271,9 @@ It extends that with built-in support for **federation**, **materialization**, a
271271

272272
| **Capability** | **Summary** | **Docs** |
273273
| :------------------ | :----------------------------------------------------------- | :------------------------------------------------------------------------- |
274-
| **Federation** | Query across remote and local databases as a single surface. | [Read → FlashQL Docs](https://linked-db.github.io/linked-ql/flash#221-query-federation) |
275-
| **Materialization** | Materialize remote datasets locally for offline queries. | [Read → FlashQL Docs](https://linked-db.github.io/linked-ql/flash#222-data-materialization) |
276-
| **Sync** | Two-way synchronization between local and remote databases. | [Read → FlashQL Docs](https://linked-db.github.io/linked-ql/flash#223-data-sync) |
274+
| **Federation** | Query across remote and local databases as a single surface. | [Read → FlashQL Docs](https://linked-ql.netlify.app/docs/flashql) |
275+
| **Materialization** | Materialize remote datasets locally for offline queries. | [Read → FlashQL Docs](https://linked-ql.netlify.app/docs/flashql) |
276+
| **Sync** | Two-way synchronization between local and remote databases. | [Read → FlashQL Docs](https://linked-ql.netlify.app/docs/flashql) |
277277

278278
### Examples
279279

@@ -354,11 +354,11 @@ client.on('sync:change', e => console.log('Δ', e.table, e.type));
354354

355355
| Feature | Description | Wiki Page |
356356
| :---------------- | :----------------------------------------------------------- | :--------------------------------------------------------------------------- |
357-
| **DeepRefs** | Declarative relationship traversal across foreign keys. | [DeepRefs →](https://linked-db.github.io/linked-ql/lang/deeprefs) |
358-
| **JSON Literals** | Inline JSON modeling syntax — objects, arrays, aggregations. | [JSON Literals →](https://linked-db.github.io/linked-ql/lang/json-literals) |
359-
| **UPSERTS** | Simplified `INSERT + UPDATE` hybrid statement. | [UPSERTS →](https://linked-db.github.io/linked-ql/lang/upsert) |
360-
| **RealtimeSQL** | Live queries powered by the Realtime Engine. | [RealtimeSQL →](https://linked-db.github.io/linked-ql/proc/realtime-sql) |
361-
| **FlashQL** | In-memory SQL runtime for offline, edge, and hybrid apps. | [FlashQL →](https://linked-db.github.io/linked-ql/flash) |
357+
| **DeepRefs** | Declarative relationship traversal across foreign keys. | [DeepRefs →](https://linked-ql.netlify.app/docs/capabilities/deeprefs) |
358+
| **JSON Literals** | Inline JSON modeling syntax — objects, arrays, aggregations. | [JSON Literals →](https://linked-ql.netlify.app/docs/capabilities/json-literals) |
359+
| **UPSERTS** | Simplified `INSERT + UPDATE` hybrid statement. | [UPSERTS →](https://linked-ql.netlify.app/docs/capabilities/upsert) |
360+
| **RealtimeSQL** | Live queries powered by the Realtime Engine. | [RealtimeSQL →](https://linked-ql.netlify.app/docs/capabilities/realtime-sql) |
361+
| **FlashQL** | In-memory SQL runtime for offline, edge, and hybrid apps. | [FlashQL →](https://linked-ql.netlify.app/docs/flashql) |
362362

363363
---
364364

0 commit comments

Comments
 (0)