Skip to content

Tdrz/age extension#910

Merged
tdrz merged 13 commits intomainfrom
tdrz/age-extension
Mar 10, 2026
Merged

Tdrz/age extension#910
tdrz merged 13 commits intomainfrom
tdrz/age-extension

Conversation

@tdrz
Copy link
Collaborator

@tdrz tdrz commented Mar 10, 2026

No description provided.

abbuehlj and others added 13 commits December 23, 2025 09:55
Add support for Apache AGE (A Graph Extension) which brings graph
database capabilities and the Cypher query language to PGlite.

Features:
- Full Cypher query language support
- Create/query/update/delete graph nodes and relationships
- Variable-length path queries
- Integration with standard SQL

New files:
- packages/pglite/src/age/index.ts - Extension wrapper
- packages/pglite/tests/age.test.ts - Test suite (43 tests)
- docs/extensions/age.md - User documentation

Modified files:
- package.json - Add ./age export
- tsup.config.ts - Add entry point
- bundle-wasm.ts - Add path replacement

Usage:
  import { PGlite } from '@electric-sql/pglite'
  import { age } from '@electric-sql/pglite/age'

  const pg = new PGlite({ extensions: { age } })
  await pg.exec("SELECT ag_catalog.create_graph('my_graph');")

Requires: electric-sql/postgres-pglite PR for build system changes
Depends on: apache/age 32-bit compatibility (jpabbuehl/age fork)
- Update submodule to include SIZEOF_DATUM=4 build flag for AGE
- Minor code style fixes (quote consistency)
- Points to official upstream Apache AGE PG17/v1.7.0-rc0 release
- No longer depends on custom fork branch for 32-bit support
- 32-bit WASM compatibility included in official release
@github-actions
Copy link
Contributor

@github-actions
Copy link
Contributor

@tdrz tdrz marked this pull request as ready for review March 10, 2026 08:43
@tdrz tdrz merged commit 124d033 into main Mar 10, 2026
14 checks passed
@tdrz tdrz deleted the tdrz/age-extension branch March 10, 2026 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants