Repository navigation
Releases
Voyager OGM v0.5.0-alpha.2
Second alpha of the 0.5 line. It fixes the value differences the new value conformance pack (#299) found, so the same value comes back with the same Python type from the official client, the bridge, the native backend and Arrow/Polars on every engine. It also moves to DuckDB 2.x with Python 3.14 support for every engine client, and polishes the voyager CLI.
Highlights of 0.5.0-alpha.2:
- Bolt: native sessions negotiate Bolt 5.x with Memgraph, so zoned datetimes keep their exact instant, including DST
fold(#414). Spatial values come back asvoyager_ogm.Point(#419). Memgraph Arrow/Polars temporals are correct (#420). - PostgreSQL and Apache AGE: dicts and nested values bind as
jsonb, and a newvoyager_ogm.Json(...)wrapper forces JSON (#421). Floats round-trip exactly through JSON (#422). Multidimensional and mixed-depth array results decode natively (#432, #440). - Bridges: UUID, offset-aware times,
ZoneInfodatetimes,Durationand JSON parameters are adapted for the Bolt, FalkorDB and DuckDB bridges (#418, #423). - DuckDB 2.0.1: DuckDB 2.0.1 is now required, and duckdb, psycopg, falkordb and neomodel install on Python 3.14 (#417). The DuckDB bridge has typed Arrow/Polars exports (#424). TIMETZ and INTERVAL edge cases, including nested values, are fixed, and every statement runs once (#439, #442). DuckPGQ live tests now run in CI.
- CLI:
compileandvalidateaccept the spec vector envelope, andvalidate --check-expectedis new (#416). Memgraph and FalkorDB index introspection is fixed (#429, #430).-hand--helpagree (#431).
Breaking changes (details in the entries below):
- Native Bolt (Neo4j, Memgraph) returns spatial values as
voyager_ogm.Pointinstead ofdict, and Arrow/Polars point columns are a struct (srid,x,y,z) (#419). - DuckDB bridge Arrow/Polars column types:
- UUID is 16-byte binary tagged
arrow.uuid; - HUGEINT is
decimal128(38,0); - TIMETZ is ISO text;
- JSON is tagged JSON text (#424).
- UUID is 16-byte binary tagged
- DuckDB 2.0.1 is the minimum, and DuckPGQ installs with
INSTALL duckpgq FROM community;(#417).
Added
- CLI Spec Vector Envelope Support (#416):
voyager compileandvoyager validatenow unwrap Query Spec vector envelopes ({"spec": {"spec_version": 1, ...}, ...}) fromspec/vectors/files or stdin while keeping bare specs andcompiletext stdout unchanged, marking"envelope_unwrapped": trueincompile --format json, adding a hint mentioning"spec_version": 1and the envelope form when neitherspec_versionnor aspecobject is present, and adding--check-expectedtovoyager validateto verify vectorexpectedoutputs or errors.
Changed
- CI live DuckPGQ coverage (#442): the Python CI workflow now caches DuckDB extensions and runs
INSTALL duckpgq FROM communityon supported platforms so the embedded DuckPGQ and live DuckPGQ test suites execute on Linux (and supported macOS ARM64/Windows runners) instead of skipping, while skipping with a clear message on unsupported platforms. - DuckDB 2.0.1 minimum and Python 3.14 engine clients (#417): the minimum supported DuckDB version is now 2.0.1: the
duckdbextra requiresduckdb>=2.0.1, the dev dependency group pinsduckdb==2.0.1, and both install on Python 3.14 from the abi3 wheels. The< 3.14markers are gone from theduckdb,age/psycopg[binary],falkordbandneomodeldependencies because their current releases support 3.14. DuckDB 2.0 only parsesCREATE PROPERTY GRAPHandGRAPH_TABLEafter the per-connectionSET active_grammar_extensions = ['duckpgq'];opt-in, soDuckDbBridge.ensure_duckpgq()now runs it afterLOAD duckpgq;(including when the caller already loaded the extension), and the embedded DuckPGQ tests, PGQ conformance corpus and live harnesses do the same. - Consistent CLI
-hand--helpSummaries (#431): aligned the top-levelvoyagercommand and all subcommands (doctor,introspect,compile,validate) so-hand--helpstart with the same summary sentence and describe user-facing behaviour without naming internal crates or functions.
Fixed
- DuckDB TIMETZ/INTERVAL edge cases, nested temporal values and DuckPGQ grammar extension (#442):
DuckDbBridge.execute()now retainsTIMETZUTC offsets when a result also containsINTERVALvalues (and keepsHUGEINTas PythonintandUUIDasuuid.UUID) by projectingTIMETZto ISO text before reading Arrowmonth_day_nano_interval.DuckDbBridge.execute(),execute_to_arrow(), andexecute_to_polars()(including insideSession.transaction()) now run DMLRETURNINGand multi-statement SQL through the single-executioncon.sql()relation path, preserving bothTIMETZoffsets and calendarINTERVALmonths with one execution.- Nested
TIMETZandINTERVALvalues insideSTRUCT,MAP,LIST,ARRAY, andUNIONcolumns now preserveTIMETZoffsets and calendarINTERVALmonths acrossexecute(), Arrow, and Polars (even when no top-levelINTERVALcolumn is present), while preserving ArrowMap/Struct/Listschemas on empty, mixed-row, and 0-row results. _duckdb_timetz_text_iso()now parses and validates DuckDB/ISOTIMETZtext (±HH[:MM[:SS]],Z,±HHMM[SS]) viadatetime.time.fromisoformat()and raisesValueError/TypeErroron unrecognized or naive inputs instead of passing them through.DuckDbBridge.ensure_duckpgq()now readscurrent_setting('active_grammar_extensions')and appends'duckpgq'instead of overwriting other enabled grammar extensions.
- DuckDB TIMETZ columns with calendar INTERVAL exports (#439):
DuckDbBridge.execute_to_arrow()andexecute_to_polars()now keep DuckDB's Arrow export when a result contains aTIMETZcolumn, projecting only theTIMETZ/TIMETZ[]columns to ISO text taggedvoyager.type=time_tzinstead of rebuilding the whole result from DB-API rows, soINTERVALcolumns keepmonth_day_nano_intervalcalendar months (for example1 year 2 monthsstays 14 months instead of 420 days). A single query statement now runs exactly once as a lazy relation (columns and types come from the relation, then one materialization), so volatile expressions such asnextval()advance once; DML and multi-statement input keep the eager single-execution DB-API path. The same path applies insideSession.transaction(). - Native PostgreSQL mixed-depth array columns (#440): native
Session.execute()no longer raises when a PostgreSQL array column's non-empty rows have different depths; the column falls back to the JSON-encoded representation taggedvoyager.encoding=json(with raw per-row values forexecute()), so it returns per-row shapes like psycopg andPostgresBridge, includingNULLelements, empty arrays and typed elements.numericelements staydecimal.Decimalanduuidelements stayuuid.UUIDinexecute(), matching psycopg, whileexecute_to_arrow()/execute_to_polars()expose the documented JSON text column. Single-depth columns keep their typed nestedListcolumns (#432). - Native PostgreSQL multidimensional array results (#432):
Session(..., backend="native")now decodes 2-D and 3-D PostgreSQL array columns into nested Python lists, matching psycopg andPostgresBridge, includingNULLelements, empty arrays and non-default lower bounds (which are ignored like psycopg).execute_to_arrow()andexecute_to_polars()expose the same values as nestedListcolumns for every element type the 1-D decoder supports (integer, float, numeric, text, boolean, date, timestamp, timestamptz, uuid and jsonb). The value conformance pack covers nested arrays on PostgreSQL 19. - PostgreSQL JSON parameter encoding, native and bridge (#421): Python dicts and
voyager_ogm.Json(...)values bind asjsonbon the native driver andPostgresBridge. Lists keep the array behaviour psycopg has: lists of scalars stay typed SQL arrays, a list of dicts becomesjsonb[](one JSON element per dict), and nested lists become multidimensional arrays. A placeholder explicitly cast tojson/jsonb(for example$v::jsonb) binds any list as one JSON document, so an empty list becomes[]and never the JSON object{}; without such a cast an empty list remains an empty SQL array literal for array-typed slots.Json(...)is the escape hatch for forcing JSON in any context, including JSONnull, scalar lists and ragged nested lists, and is unwrapped for AGE, Bolt, FalkorDB and DuckDB. The value conformance pack no longer records the PostgreSQL JSON parameter differences. - Float precision through JSON text (#422):
serde_jsonnow parses withfloat_roundtrip, so native PostgreSQLjsonbresults and Apache AGEagtypeparameters, results and nested list/map values round-tripf64exactly (including subnormal values and1.7976931348623157e+308). Non-finite JSON numbers written inside containers are emitted asNaN/Infinity/-Infinity, and reading accepts those tokens plus out-of-range numeric literals (returning Pythoninf/-inf, like psycopg) instead of raisingnumber out of range. The value conformance pack no longer records the PostgreSQL and Apache AGE float differences. - Bolt 5.x version range negotiation and 4.4 UTC fallback (#414):
BOLT_PROPOSED_VERSIONSnow proposes Bolt5.4..=5.0and4.4..=4.2ranges so Memgraph negotiates Bolt5.2(sendingHELLOwithoutbolt_agentfor5.1..=5.2followed byLOGON) and uses UTC temporal tags (0x49/0x69), preservingfold=1DST instants and emitting typedTimestamp/pl.Datetimecolumns with timezones. Bolt4.4connections requestpatch_bolt: ["utc"]and keep the legacy0x46/0x66path when unpatched. Exposes negotiated protocol version onAsyncConnection,NativeClient, andPyNativeClient.protocol_version_sync(). Native Memgraph nodes and relationships now also carryelement_id(a Bolt 5 field), matching the bridge. - **Native Bo...
Voyager OGM v0.5.0-alpha.1
First alpha of the 0.5 line. The theme is a portable query interchange format and the same values everywhere: Query Spec v1 with a JSON Schema, reference vectors and a conformance corpus, a working voyager CLI, live schema introspection, and native backends that return the same Python types as the bridges and the official clients.
Highlights of 0.5.0-alpha.1:
- Query Spec v1: a Rust consumer (#289) with a JSON Schema, reference vectors (#188), strict validation with
INVALID_SPECand a JSON Pointer (#187), a revision and compatibility policy (#292), and serialisation from the fluent API (#189). - Conformance corpus: packs P0-P4 (#253-#258) run live on Neo4j, Memgraph, FalkorDB, Apache AGE and PostgreSQL 19 through three lanes, official clients, Voyager bridges and native (#297). A generated value conformance pack (#299) compares values and Python types across every path.
- CLI v1:
voyager doctor,compile,validateandintrospect(#119, #265), released as binaries for six targets, throughcargo binstalland as thevoyager-cliwheel, withvoyas a short alias (#133). - Same values on every backend: typed native parameters (#391) and stdlib result types with the new
voyager_ogm.Duration(#395);GraphNode,GraphRelationshipandGraphPathresults (#372); decoded Apache AGE results (#353). - Models and schema: field value constraints (#282), declarative relationship navigation (#121), model schema export (#125), table DDL for SQL/PGQ (#327).
- TLS for the native drivers (#219).
Breaking changes (details in the entries below):
- Result values: native backends return stdlib Python types and
Durationinstead of strings (#395); native PostgreSQL parameters are typed, so comparing a text column with aUUIDordatetimeparameter needs a cast (#391); RustQueryResultis#[non_exhaustive]. - Entities: whole nodes, relationships and paths come back as
GraphNode/GraphRelationship/GraphPathon every engine (#372); Apache AGE results are decoded (#353) and a single whole entity is keyed by its variable (#285); AGE and SQL/PGQ column aliases keep their case (#377). - Query Spec v1 is strict: one spelling per construct (#292), invalid, dropped or misattached clauses raise
INVALID_SPEC(#187), and references the emission order cannot honour are rejected (#271). - Fluent API: variable scope is checked before compiling (#287) and aggregations must sit in a projection (#272).
- Models:
Fieldnullability is inferred from the type annotation (#332). - SQL/PGQ property-graph DDL names tables and edge keys consistently (#325); SQL/PGQ on PostgreSQL is experimental (#373).
- The FalkorDB driver bridge honours the graph name from
graph_name=or the URI (#339).
Added
- Value Conformance Pack (#299): a live, Hypothesis-generated differential test pack (
packages/python/tests/values/) runs 19 value kinds through every engine (Neo4j, Memgraph, FalkorDB, Apache AGE, PostgreSQL 19, DuckDB) and compares value and Python type across the official client, the bridge, the native backend and nativeexecute_to_arrow()/execute_to_polars(), as a parameter, stored as a property or column, nested in lists and maps, as node and relationship properties, and inside a transaction.just values-live [engine] [--seed N] [--examples N] [--exploratory]runs it (fixed seed by default, an opt-in exploratory profile), a failure prints a per-stage trace (Python value, Voyager parameter, wire encoding, server type, Arrow type, Python result), every run writes an engine x backend x value-kind matrix totarget/values-conformance/, andknown_differences.jsonrecords each accepted difference with a reason (and issue number for bugs); an entry that stops occurring fails the run. Adds the diagnosticvoyager_ogm._voyager_rs.inspect_native_wire()and thehypothesisdev dependency. - Query Spec v1 Revisioning and Compatibility Policy (#292): Query Spec v1 now has a revision alongside its major version. Documents may carry an optional integer
spec_revision(minimum 1) at the root and in nested specs; a missing ornullvalue means revision 1, today's format. The Rust core is the source of truth throughvoyager_ogm::spec::SPEC_VERSIONandvoyager_ogm::spec::SPEC_REVISION, Python exposesvoyager_ogm.QUERY_SPEC_VERSION/voyager_ogm.QUERY_SPEC_REVISION, andvoyager doctorprints the supportedquery spec: v1 revision 1. A document that requires a newer revision is rejected withINVALID_SPECat/spec_revisionand a message naming the supported revision.Query.to_spec_dict()andExpression.to_spec_dict()now emitspec_revision, so exported documents are self-describing. The schema keeps its stable v1$idand records the revision in a newx-spec-revisionannotation;spec/README.mdgains a "Compatibility and versioning" section covering the major + revision rule, what counts as an addition versus a break, the 1.0.0 guarantee (0.x may still break, with each change bumping the revision and listed as breaking), the pre-optimisation export guarantee, and the revision-bump checklist. - Multi-Platform CLI Release Binaries,
cargo-binstallMetadata, andvoyager-cliPython Wheel (#133):.github/workflows/release.ymlnow builds, smoke-tests, and attests standalonevoyagerarchives (voyager-cli-v<version>-<target>.tar.gz/.zip) across six targets (x86_64-unknown-linux-gnu, staticx86_64-unknown-linux-muslwith rustls/ring,aarch64-unknown-linux-gnu,aarch64-apple-darwin,x86_64-apple-darwin, andx86_64-pc-windows-msvc), attaches them withSHA256SUMSandactions/attest-build-provenanceprovenance to the GitHub Release, adds[package.metadata.binstall]tocrates/voyager-cli/Cargo.tomlforcargo binstall voyager-cli, and builds/publishes the lockstepvoyager-cliPython wheel (packages/cli/pyproject.toml,bindings = "bin") wired intovoyager-ogm[cli]and verified byscripts/check_version_sync.py. The Linux-gnubinaries are linked against glibc 2.28, the same baseline as the manylinux_2_28 wheels. The CLI is a singlevoyagerbinary: the archives add the short aliasvoyas a symlink (avoy.cmdshim on Windows), whilecargo install,cargo binstalland the wheel installvoyageronly. - Live Corpus Voyager Lanes (#297): the live conformance corpus now runs each scenario through three lanes:
official(today's engine clients and the AGE/SQL-PGQSessionreference path),bridge(Sessionover the Python bridges) andnative(Session(..., backend="native")overvoyager-driversfor Neo4j, Memgraph, FalkorDB, Apache AGE and PostgreSQL 19 SQL/PGQ). Fixtures load through the same official loaders, so only statement execution differs.just corpus-live [engine] [lane]selects one engine/lane or all, defaults to the previousofficial-only behaviour, and prints a per-lane/per-engine pass/fail/skip summary. Differences are compared structurally (scenario, lane, engine, column, expected, actual) against canonicalrows.jsonvalues including node labels and relationship types. Reviewed differences live inspec/corpus/known-lane-differences.json; an unexplained difference fails, and an entry that no longer matches fails with "known lane difference is fixed, remove from ...".spec/corpus/README.mddocuments the lanes, the list and the commands. - Result Column Names on
ExecutionResult(#378):Session.execute()andAsyncSession.execute()results (ExecutionResult, andresult.mappings()) now expose a read-onlycolumnsproperty (tuple[str, ...]) and akeys()method (list[str]) in projection order, populated from driver metadata (Boltkeys, FalkorDBheader, PostgreSQL/Apache AGE and DuckDB/Relate cursordescription, and the native Arrow schema onArrowStream) even when zero rows are returned, and empty for write statements withoutRETURN/RETURNING.ExecutionResult.to_polars(),ExecutionResult.to_arrow(),Session.execute_to_polars(), andSession.execute_to_arrow()(sync and async, bridge and native) now preserve those column names on empty results. - Reference Cypher Override for Recording Known-Diff Corpus Rows (#307):
scenario.jsonnow supports an optionalreference_cypherobject (statement,reason, and optionalparams), validated againstscenario.schema.jsonand only allowed whentargets.cypher.statusis notsupported.just corpus-record-rowsrunsreference_cypher.statementon Neo4j to reproducerows.jsonand refuses to silently fall back to aknown-diffcompiled Cypher statement whenreference_cypheris absent. - Relational Table DDL Generation for SQL/PGQ (#327):
SchemaManager.generate_table_ddl(*models, dialect="postgres"|"duckdb")generatesCREATE TABLE IF NOT EXISTSstatements for vertex and edge tables using the #325 naming rule, endpoint foreign keys, dialect-specific type mapping, and surrogate primary keys on edge tables to allow parallel edges (or declared primary keys when defined).SchemaManager.generate_pgq_schema_ddl(graph_name, *models, dialect="postgres"|"duckdb")emits tables, sequences, constraints, indexes, and property-graph DDL in run order for PostgreSQL 19 and DuckPGQ. - Declarative Relationship Navigation on Node Models (#121):
RelationshipToandRelationshipFromdeclare outgoing and incoming relationship attributes onNodemodels. Targets and optional relationship models accept classes or strings, string forward references (including circular model references) resolve on first use, and an unknown name raises a clearLookupError. Class access returns the descriptor; instance access returns a manager and never queries. The sync manager's.all()/.filter(...)and theAsyncSessionmanager's awaitable equivalents match the source by primary key, traverse in the declared direction, filter fluently, project one column per declared target property with stable aliases, and hydrate targe...
Voyager OGM v0.4.3
Deprecated
- Unquoted SQL/PGQ labels: from 0.5.0, SQL/PGQ quotes labels in the generated
CREATE PROPERTY GRAPHDDL and in queries (IS "Person"), so labels are case-exact as in Cypher and reserved words such asUserandOrderwork as labels. A property graph created with unquoted mixed-case labels will need to be re-created withDROP PROPERTY GRAPHand the DDL fromSchemaManager.generate_pgq_ddl(...); tables and data are not affected. 0.4.x keeps unquoted labels.
Fixed
- SQL/PGQ and DuckPGQ
INwith a list or list parameter (#303): the emitter now writesx IN (a, b)for a literal list andx = ANY($p)for a list parameter (NOT IN (a, b)/x <> ALL($p)when negated); an empty literal list compiles toFALSE(TRUEforNOT IN). The DuckDB bridge rewrites the parameter forms to a scalarIN (...)tuple because DuckPGQ'sGRAPH_TABLEgrammar has noANY/ALL. - SQL/PGQ and DuckPGQ
XORlowering (#304):XORnow compiles to((a) OR (b)) AND NOT ((a) AND (b))instead of the unsupported keyword, preserving the three-valued result when either side is NULL. - SQL/PGQ string predicate placeholder escaping in PostgresBridge (#305):
PostgresBridge._format_pgq_statementnow escapes literal%characters as%%when query parameters are bound positionally as%s, preventingpsycopgfrom misinterpretingLIKEwildcard patterns (such as inSTARTS WITH,ENDS WITH, andCONTAINS) as invalid formatting placeholders. - SQL/PGQ string predicates match the search value literally (#318):
STARTS WITH,ENDS WITHandCONTAINScompile tostarts_with,right/lengthandstrposinstead ofLIKE, so%,_and\in the search value are no longer wildcards on PostgreSQL 19 and DuckPGQ. - SQL/PGQ ORDER BY on expressions outside GRAPH_TABLE (#319): ordering expressions that are not returned columns are now evaluated inside
GRAPH_TABLECOLUMNSunder an internal alias and selected only as returned columns in the outer query, so pattern variables are in scope on PostgreSQL 19 and DuckPGQ. - SQL/PGQ ORDER BY on non-returned properties (#320): ordering by a property that is not projected now exposes it in
GRAPH_TABLECOLUMNSunder an internal alias, avoiding missing-column errors in the outer query on PostgreSQL 19 and DuckPGQ.
Security
- Credentials no longer appear in
Debugoutput (#326):Auth,ParsedUriandConnectionConfigformat with a hand-writtenDebugthat shows a configured password or token as"***"(and an empty one asNone), redacting URI userinfo and credential-named query parameters, and a malformed-URI error no longer echoes the password. Serialised configurations still contain the secret so they round-trip, and the type docs say so.
Voyager OGM v0.4.2
Fixed
-
SQL/PGQ parameter binding in Python bridges (#226):
PostgresBridge._format_pgq_statementnow bindsGRAPH_TABLEparameters positionally as%splaceholders like standard SQL instead of interpolating parameter values directly into the SQL statement, supporting prepared statements, duplicate parameter names, and preventing injection from hostile values.DuckDbBridgesafely encodes values forGRAPH_TABLEqueries as typed SQL literals (strings with quote-doubling, ints, floats including'nan'::DOUBLE/'inf'::DOUBLE, booleans,NULL, dates, datetimes, times, lists, and maps) and raisesTypeErrorfor unsupported parameter types, working around DuckPGQ's lack of prepared parameter support inside table function ASTs. -
Native PostgreSQL list parameter encoding (#283):
prepare_postgres_statementandvalue_to_textin the native PostgreSQL driver now encode JSON array parameters as PostgreSQL array literal text ({elem,elem}) with double-quoting and backslash-escaping for strings,NULLfor null elements, nested arrays, unquoted numbers and booleans, and quoted JSON text for nested maps, instead of sending JSON text ([...]). This enables list parameters to be bound where PostgreSQL expects an array (such as= ANY($1)or array columns in plain SQL andGRAPH_TABLE), matching the behaviour of thepsycopgbridge while preserving JSON encoding for top-level maps and Apache AGE parameter maps. -
Apache AGE queries returning several nodes or relationships (#285): the AGE column definition list repeated
entityfor every whole node or relationship (AS (entity agtype, entity agtype, ...)), so PostgreSQL rejected the query withcolumn name "entity" specified more than once. When a query returns several whole nodes or relationships, their columns are now named after the returned variables (AS (a agtype, r agtype, b agtype)), and any repeated column name gets a numeric suffix (name,name_1, ...). A query returning a single whole node or relationship still keys itentity, so code readingrow["entity"]keeps working. -
Compile-time validation of unsupported pattern and column constructs (#286):
AgeEmitterandSqlPgqEmitter(shared by DuckPGQ) now reject unsupported graph patterns and projections at compile time withUnsupportedFeatureacross both the fluent builder andcompile_query_from_spec: Apache AGE rejects node patterns with multiple labels and relationship patterns with alternative types, while SQL/PGQ rejects node patterns with multiple labels (conjunction), node and relationship expressions using negation, conjunction, grouping, or wildcard, and whole node or relationship variables in theCOLUMNSclause. Valid single-label node patterns, node label disjunction (IS A | B), SQL/PGQ relationship type alternation (-[r IS KNOWS | HATES]->), and property column projections remain supported and unchanged. -
Query.set()no longer drops arguments silently (#295):set(),on_create_set()andon_match_set()skipped arguments they did not recognise, so the query was compiled without theSETand the write never happened. They now raiseVoyagerError(INVALID_CLAUSE) for:- keyword arguments without a variable prefix (
city="Berlin",p={"city": "Berlin"}) or with an empty part ("p.",".city"); - positional values that are not an assignment such as
p.city == valueor aNode. This includes comparisons such asp.city > 10, which were written asSET p.city = 10.
Code passing such arguments now gets an error instead of a query without the
SET. The supported forms compile as before, and aNodewith no changed fields is still a no-op.on_create_set()/on_match_set()also accept aNodewith changed fields, likeset(). - keyword arguments without a variable prefix (
-
Inequality compiles to
<>(#301):neq,ne,!=and<>inputs now emit<>instead of!=on Cypher, Apache AGE, ISO GQL and SQL/PGQ, so Neo4j, FalkorDB and Apache AGE accept the statement. -
not_incompiles toNOT (x IN list)(#302):.not_in(...)and Query Specnot_innow emitNOT (x IN list)on Cypher, Apache AGE and ISO GQL; SQL/PGQ keeps infixNOT INfor now (#303).
Security
urlupdated to 2.5.9 (RUSTSEC-2026-0592):url2.5.8 and earlier can overflow the stack inUrl::origin()on nestedblob:URLs. Voyager does not callUrl::origin(); the update clears the advisory for builds that use the lockfile.
Voyager OGM v0.4.1
Changed
- README installation guide: added an Installation section covering PyPI and uv installs, optional extras, supported Python versions and platforms, the crates.io crates and Cargo features, the
voyagerCLI, pre-release installs, and the Rust MSRV. Added PyPI, Python, crates.io, and docs.rs badges and converted relative links to absolute GitHub URLs so the README renders correctly on PyPI. - Crate README badges: added crates.io, docs.rs, CI, license, and MSRV badges to the
voyager-ogm,voyager-drivers, andvoyager-cliREADMEs, and split multi-command install snippets into one command per code block. - Pre-releases publish to crates.io: release tags with a pre-release suffix (
-alpha.N,-beta.N,-rc.N) now publish the Rust crates to crates.io as well as the Python package to TestPyPI; PyPI still receives stable releases only. - Maintenance-branch releases: releases can now be prepared and tagged from
release/X.Ybranches (cut from thevX.Y.0tag) so patch fixes still ship aftermainmoves to the next minor.just release-prepareandjust release-tagvalidate the base line and version (arelease/X.Ybase accepts onlyX.Y.N), CI runs onrelease/**, and the release workflow refuses tags not reachable frommainor the matching release branch and marks a tag Latest only when it is the highestv*version.
Fixed
- PyPI package page:
voyager-ogmnow uses a Python-focusedpackages/python/README.mdas its PyPI long description instead of the repository-wide root README. - ISO GQL quantified edges (#267): a path with a single quantified edge now emits the same per-edge form as multi-edge paths (
(a:Person)-[r:KNOWS]->{1,3}(b:Person)) instead of wrapping the whole path (((a:Person)-[r:KNOWS]->(b:Person)){1,3}), preserving endpoint labels, direction, edge properties, open bounds and path variables. Hop bounds withmax_hops < min_hopsare now rejected by the builder withINVALID_CLAUSEfor every dialect and both the Rust and Python APIs. - ISO GQL unsupported constructs (#269): ISO GQL now raises
UNSUPPORTED_FEATUREinstead of silently dropping or changing the meaning ofLOAD CSV,DETACH DELETE,MERGEwith distinctON CREATE SET/ON MATCH SETassignments, and the regular-expression operator=~. Behaviour change: queries that previously compiled to incomplete or semantically different GQL now fail with a clear error.MERGEwith empty or identicalON CREATE SET/ON MATCH SETassignments continues to emitUPSERT ... SET. This includesSessionsaves withdialect="iso_gql"of models that have create-only defaults: they previously compiled to a singleSETthat overwrote create-only fields (such as creation timestamps) on every update, and now raise instead. - SQL/PGQ emitter silent drops (#268):
OPTIONAL MATCH,LOAD CSV,EXISTS/COUNTsubqueries, list and pattern comprehensions, and the=~regex operator now raise a clearUnsupportedFeatureerror in the SQL/PGQ and DuckPGQ dialects instead of being silently dropped, emitting invalid syntax, or leaking a Rust AST debug dump.RETURN DISTINCTnow emitsSELECT DISTINCT, and a query with no projections raises a clear error instead of emittingCOLUMNS (). - SQL/PGQ graph name validation (security, #270): the graph name interpolated into
GRAPH_TABLE (...)is now validated as a plain identifier (ASCII letters, digits, and underscores, 1-63 characters) in the emitter, covering the fluent API andcompile_query_from_spec(graph_name=...), so names containing SQL metacharacters, quotes, semicolons, spaces, or an empty name are rejected instead of being written into the statement.
Security
- Identifier injection (#186): every identifier written into emitted query text (node and edge variables, labels, relationship types, property names, aliases, path, unwind, and let variables, delete targets, parameter names, function and procedure names, and procedure yield items) is now validated at a single pre-emission choke point shared by the Cypher, AGE, ISO GQL, and SQL/PGQ emitters, so both the fluent API and
compile_query_from_specreject values that are not plain identifiers (_or a Unicode letter first, then Unicode letters, digits, or_; function and procedure names may join identifiers with single dots). Behaviour change: names containing spaces, quotes, backticks, parentheses, braces,$,/,-,;, or empty names now raiseINVALID_CLAUSEinstead of being written into the query; delimited (backtick-quoted) identifiers are not supported in this patch. Valid Unicode labels and existing generated aliases such as_person_0,p0, andapoc.coll.sumare unchanged. Expression depth is also carried throughexists/count/nested-spec re-entry, so deeply nested subqueries raise the existing depth error instead of exhausting the stack.
Voyager OGM v0.4.0
First stable release of the 0.4 line: the first release on PyPI (voyager-ogm) and the first stable release on crates.io (voyager-ogm, voyager-drivers, voyager-cli, which carried 0.4.0-alpha.8 as their initial version). It consolidates the 0.4.0-alpha.5 to 0.4.0-alpha.8 pre-releases below; see those sections for the full list.
Highlights of the 0.4 line:
- One query, many engines: a fluent query builder (Python and Rust) with rich expressions, subqueries, a rule-based optimizer and query profiling, compiled to openCypher (Neo4j, Memgraph, FalkorDB), ISO GQL, SQL:2023 PGQ (PostgreSQL 19, DuckDB) and Apache AGE.
- Native drivers:
voyager-driversspeaks Bolt, the PostgreSQL wire protocol and Redis/RESP directly, with pooling, real transactions and bound parameters; protocols are opt-in Cargo features. - OGM workflow:
Node/Relationshipmodels with field defaults, description metadata and module-qualified identity;Query.create_relationship/merge_relationship; identity map, unit of work and real database transactions (session.transaction()); bulk ingestion that keeps properties a row does not supply. - Schema and search: multi-dialect constraint and index DDL, full-text and vector indexes, temporal and spatial types, and a schema registry with snapshots.
- Data tooling: Arrow / Polars results, NetworkX export, file and cloud-storage ingestion, an embedded Relate bridge and an interactive graph viewer.
- Packaging:
pip install voyager-ogmworks with onlypolarsandpyarrow; optional integrations install as extras. Linux wheels targetmanylinux_2_28; releases are published through trusted publishing.
Breaking changes in the 0.4 line are marked Breaking in the sections below (notably session.transaction() now opening a real database transaction, the voyager-net -> voyager-drivers rename, and removed legacy builder aliases).
Changed
- License texts in crate packages (#247):
voyager-ogm,voyager-driversandvoyager-clinow shipLICENSE-MITandLICENSE-APACHEin their crates.io packages (symlinked to the repository root files), and thevoyager-ogmREADME status line no longer names a specific version. - crates.io and docs.rs documentation (#245): rewrote the
voyager-ogm,voyager-drivers,voyager-cli, andvoyager-pyo3crate READMEs, shared thevoyager-ogmandvoyager-driversREADMEs as their crate docs, added ajust test-docdoctest gate (injust test/just ciand CI), refreshedCONTRIBUTING.md, and moved the benchmark charts intobenchmarks/README.mdafter removing the main README's Performance & Benchmarks section.
Voyager OGM v0.4.0-alpha.8
Fixed
- Base install import failure (#239):
import voyager_ogmno longer requires SQLAlchemy or any other optional extra. SQLAlchemy-backed names are resolved lazily and raise anImportErrornamingvoyager-ogm[sqlalchemy]when used without the extra; optional bridge, analytics, and hybrid helpers name their extra too. Added a base-only wheel smoke test to CI and the release workflow. - Portable Linux wheels (#240): Linux
x86_64andaarch64wheels are now built againstmanylinux_2_28in the matching container instead of the runner host, and the release workflow verifies every Linux wheel filename carries that tag before publishing.
Voyager OGM v0.4.0-alpha.7
Warning
Known issue: import voyager_ogm fails with ImportError: cannot import name 'GraphTableClause' unless SQLAlchemy is installed. Install with pip install "voyager-ogm[sqlalchemy]" (or pip install sqlalchemy) when using these wheels. The Linux x86_64 wheel also requires glibc 2.34 or newer. Both are fixed in the next pre-release.
Added
- Driver Cargo Features and Feature-Matrix CI (#218):
- Added
bolt,postgres,redis,arrowandtestkitCargo features tovoyager-drivers;bolt,postgres,redisandarroware on by default, so default builds and the Python package are unchanged, whiletestkitstays opt-in. - A URI or client that targets a protocol whose feature is disabled now returns a clear
NetErrornaming the missing feature instead of failing to compile or panicking. - Declared
required-featureson the driver tests, benches, examples and binaries, and madevoyager-pyo3/voyager-clienable the features they use explicitly. - Added a
Feature CombinationsCI job and a matchingjust check-featuresrecipe that clippy-check the core feature combinations and each driver protocol alone.
- Added
- Description Metadata for Fields, Nodes, and Relationships (#210):
- Added optional
description: str | None = Noneparameter toField()descriptor anddescriptionattribute toFieldinstances. - Added support for model-level description metadata via
__description__class attribute onNodeandRelationshipmodels. - Carried descriptions through schema registration into native
FieldDescriptor,NodeSchema, andRelationshipSchemastructs in Rust and exposed them via PyO3 dictionary bindings. - Updated schema snapshot serialization to include
"description"fields in JSON snapshots when present, omitting them whenNonevia serdeskip_serializing_ifso existing snapshot JSON remains byte-identical. - Ensured backward compatibility: older snapshots without description keys deserialize cleanly via serde default with
description: None.
- Added optional
- Fluent Relationship Creation Between Bound Nodes (#192):
- Added
Query.create_relationship(source, rel, target, *, variable=None)to emitCREATE (source)-[:TYPE {props}]->(target)between aliases already bound byMATCHor an earlierCREATE. - Added
Query.merge_relationship(source, rel, target, *, variable=None)with the existing MERGE key policy: key properties inline, shared properties on create and match, and default-filled properties on create only. When non-key properties needON CREATE SET/ON MATCH SET, the relationship alias is taken from the instance or generated automatically, sovariable=is not required. - Added native Rust builder methods
QueryBuilder::create_relationshipandQueryBuilder::merge_relationshipthat validate bound endpoint aliases, parameterize relationship properties, and emit for openCypher, ISO GQL (INSERT/UPSERT), and Apache AGE. - Relationship direction is honored; undirected relationships are created or merged as outgoing from source to target because Cypher requires a direction. An optional relationship variable alias allows the edge to be returned.
- Added
- Bridge Authentication Credentials Parameter (#193):
- Added keyword-only
auth: tuple[str, str] | Any | None = Noneparameter tocreate_bridge()across all overloads. - Bolt schemes accept
(username, password)tuples and custom auth tokens (e.g.bearer_auth) passed directly toGraphDatabase.driver/AsyncGraphDatabase.driver. - PostgreSQL and Apache AGE schemes accept
(username, password)tuples passed asuser=/password=connect keyword arguments; invalid types raiseTypeError. - FalkorDB and Redis schemes accept
(username, password)tuples passed asusername=/password=keyword arguments toFalkorDB.from_url. - Explicit
auth=takes precedence over credentials in URI strings.
- Added keyword-only
- Unified Examples Learning Path, OGM-First Modernization, and Rust Parity (#172):
- Streamlined Python examples into a single progressive beginner-to-advanced learning path (01 to 31) with OGM-first declarative modeling, mutation DSL, and consistent setup and offline skip handling.
- Added idiomatic Rust examples covering schema DDL and index emission (
08), mutation builder (09), bulk ingestion compilation (10), transactions and unit of work (11), vector/full-text search query building (12), and live engine execution (live_connect_and_query). - Added new Python examples covering real engine bridges via
create_bridge()and mock fallbacks, embedded Relate (relate://), bulk ingestion, transactions with savepoints and identity map, multi-engine live execution (Memgraph, FalkorDB, Apache AGE), vector and full-text search, mutation DSL, and standaloneAsyncSession/HybridSession. - Added
just examples-liverecipe and updatedexamples-pythonandexamples-rustto run all offline examples.
- Embedded Relate Database Bridge (#157):
- Added
RelateBridgeandAsyncRelateBridgeinvoyager_ogm.bridge, exported fromvoyager_ogm, for in-process, zero-network execution against embedded Relate databases (relatedb.ai). - Added auto-instantiation support in
create_bridge()forrelate://andrelatedb://URI schemes and connection instance auto-detection. - Added the
relateoptional dependency extra (pip install "voyager-ogm[relate]",relate-db>=1.0.0). - Added Relate-compatible parameter and result adaptation: spatial
Pointand duration conversion, nested dict/list parameter mapping, and node/relationship record normalization. - Added sync and async bulk batch ingestion plus
ping()liveness and explicit connection close on both bridges. - Added a Relate compatibility test suite covering schema creation, CRUD, traversal, aggregation, and parameter round-trips.
- Added
- NetworkX Graph Analytics Export Bridge (#117):
- Added direct, high-performance
.to_networkx()graph export onExecutionResult,QueryResult, and top-level modulevoyager_ogm.to_networkx. - Added fluent
session.query(...)andasync_session.query(...)builders supporting direct.where(...).to_networkx()chaining. - Supported directed (
DiGraph,MultiDiGraph) and undirected (Graph,MultiGraph) graph generation with node/edge attribute filtering and relationship type preservation. - Added explicit
node_only=Trueescape hatch andsource_col=""support to disable automatic tabular edge heuristic detection. - Added
analyticsoptional dependency extra (pip install "voyager-ogm[analytics]").
- Added direct, high-performance
- File, S3, and Azure Cloud Ingestion Loaders (#110):
- Added zero-copy, lazy-scanned cloud and local file loaders directly on
Session,AsyncSession, and top-level module APIs (ingest_parquet,ingest_csv,ingest_parquet_relationships,ingest_csv_relationships). - Added
create_parquet_ingest_plan,create_csv_ingest_plan,create_parquet_rel_ingest_plan, andcreate_csv_rel_ingest_planwith support for"create"/"upsert"modes, field remapping, and multi-cloud authentication via Polarsstorage_options.
- Added zero-copy, lazy-scanned cloud and local file loaders directly on
- Session Liveness Probes and Health Monitoring (#118):
- Added
Session.ping(),AsyncSession.ping(),Session.health(), andAsyncSession.health()for fast backend liveness verification and diagnostics. - Added
SessionHealthdiagnostic dataclass capturing roundtrip latency, backend mode, and circuit breaker status.
- Added
- Full-Text Index DDL Generation and Query Integration (#113):
- Added declarative
FullTextIndex(properties, name=None, analyzer="standard")configuration tovoyager_ogm.schemaand re-exported invoyager_ogm(withTextIndexandfulltext_indexdeveloper ergonomics aliases). - Added model metadata reflection on
NodeandRelationshipsubclasses via__fulltext_indexes__. - Implemented multi-dialect full-text index DDL generation and drop statements in
voyager-ogm:- Neo4j 5+ / openCypher:
CREATE FULLTEXT INDEX {index_name} IF NOT EXISTS FOR (n:{label}) ON EACH [n.{p1}, ...] OPTIONS {indexConfig: {fulltext.analyzer: '{analyzer}'}}(andFOR ()-[r:{type}]-() ON EACH [r.{p1}, ...]) withDROP INDEX {index_name} IF EXISTS. - Memgraph (MAGE Tantivy):
CREATE TEXT INDEX {index_name} ON :{label_or_type}({props});for nodes andCREATE TEXT EDGE INDEX ...for relationships, withDROP TEXT INDEX {index_name};. - DuckDB (fts):
PRAGMA create_fts_index('{table}', '{pk}', '{props}');andPRAGMA drop_fts_index('{table}');. - FalkorDB (RediSearch):
CREATE FULLTEXT INDEX FOR (n:{label}) ON (n.{p1}, ...)(andFOR ()-[r:{type}]-() ON (r.{p1}, ...)) with matchingDROP FULLTEXT INDEXstatements. - Apache AGE / PostgreSQL (GIN): GIN index creation on
to_tsvectorover concatenated properties andDROP INDEX IF EXISTS {index_name};(verified via compiled DDL snapshot tests).
- Neo4j 5+ / openCypher:
- Centralized canonical full-text index naming authority (
canonical_fulltext_index_name) invoyager-ogm, exposed via PyO3 to Python to prevent dual bookkeeping. - Added full-text search query builder
Query.fulltext_search(index_or_model, query_string, yield_node="node", yield_score="score", dialect="cypher")(withQuery.text_searchalias):- openCypher: routes to
db.index.fulltext.queryNodesanddb.index.fulltext.queryRelationships. - Memgraph: routes to
text_search.search_all(ortext_search.searchfor field queries with automatic Tantivydata.<field>property mapping) andtext_search.search_all_edges(ortext_search.search_edges). - FalkorDB: routes to
db.idx.fulltext.queryNodesanddb.idx.fulltext.queryRelationships.
- openCypher: routes to
- Added convenience session facades on
Session.fulltext_search()/Session.text_search()andAsyncSession.fulltext_search()/AsyncSession.text_search(). - Added model search entrypoints
Node.text_search()/fulltext_search()andRelationship.text_search()/...
- Added declarative