PhoenixmlDb.XQuery
1.4.2
See the version list below for details.
dotnet add package PhoenixmlDb.XQuery --version 1.4.2
NuGet\Install-Package PhoenixmlDb.XQuery -Version 1.4.2
<PackageReference Include="PhoenixmlDb.XQuery" Version="1.4.2" />
<PackageVersion Include="PhoenixmlDb.XQuery" Version="1.4.2" />
<PackageReference Include="PhoenixmlDb.XQuery" />
paket add PhoenixmlDb.XQuery --version 1.4.2
#r "nuget: PhoenixmlDb.XQuery, 1.4.2"
#:package PhoenixmlDb.XQuery@1.4.2
#addin nuget:?package=PhoenixmlDb.XQuery&version=1.4.2
#tool nuget:?package=PhoenixmlDb.XQuery&version=1.4.2
PhoenixmlDb.XQuery
XQuery 4.0 query engine for PhoenixmlDb — query XML and JSON documents with the full power of XQuery.
Features
- Full XQuery 4.0 — FLWOR expressions, constructors, modules, user-defined functions
- XPath 4.0 — complete XPath implementation with 240+ built-in functions
- JSON support —
json-doc(),parse-json(), maps, arrays — query JSON natively - Full-text search —
ft:contains()with stemming, wildcards, proximity, scoring - Update Facility — insert, delete, replace, rename, transform expressions
- Type system — records, enums, union types (XQuery 4.0)
Quick example
using PhoenixmlDb.XQuery.Execution;
var engine = new QueryEngine();
// Simple query
var results = engine.ExecuteToListAsync(
"for $x in 1 to 10 where $x mod 2 = 0 return $x * $x");
// Query XML documents
var books = engine.ExecuteAsync(
"//book[price > 30]/title",
containerId);
Related packages
| Package | Description |
|---|---|
| PhoenixmlDb.Core | Core types and XDM data model (dependency) |
| PhoenixmlDb.Xslt | XSLT 4.0 transformation engine |
| PhoenixmlDb.XQuery.Cli | xquery command-line tool |
Documentation
Full documentation at phoenixml.dev
License
Apache 2.0
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Antlr4.Runtime.Standard (>= 4.13.1)
- Lucene.Net (>= 4.8.0-beta00016)
- Lucene.Net.Analysis.Common (>= 4.8.0-beta00016)
- PhoenixmlDb.Core (>= 1.1.5)
-
net8.0
- Antlr4.Runtime.Standard (>= 4.13.1)
- Lucene.Net (>= 4.8.0-beta00016)
- Lucene.Net.Analysis.Common (>= 4.8.0-beta00016)
- PhoenixmlDb.Core (>= 1.1.5)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on PhoenixmlDb.XQuery:
| Package | Downloads |
|---|---|
|
PhoenixmlDb.Xslt
XSLT 4.0 transformation engine for PhoenixmlDb |
|
|
Phoenixml.Platform.Editor.Xml
XML/XSD vocabulary binding for Phoenixml.Platform — concrete IDocument and ITreeNodeProvider implementations against PhoenixmlDb.Core's XDM, XSD schema validation pipeline. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.4.3 | 60 | 6/10/2026 |
| 1.4.2 | 94 | 6/6/2026 |
| 1.4.1 | 219 | 5/29/2026 |
| 1.4.0 | 99 | 5/24/2026 |
| 1.3.15 | 201 | 5/22/2026 |
| 1.3.14 | 119 | 5/20/2026 |
| 1.3.13 | 96 | 5/20/2026 |
| 1.3.12 | 98 | 5/19/2026 |
| 1.3.11 | 177 | 5/18/2026 |
| 1.3.10 | 107 | 5/17/2026 |
| 1.3.9 | 110 | 5/15/2026 |
| 1.3.8 | 104 | 5/14/2026 |
| 1.3.7 | 125 | 5/14/2026 |
| 1.3.6 | 130 | 5/13/2026 |
| 1.3.5 | 113 | 5/13/2026 |
| 1.3.4 | 139 | 5/12/2026 |
| 1.3.3.1 | 98 | 5/12/2026 |
| 1.3.3 | 178 | 5/11/2026 |
| 1.3.2 | 133 | 5/9/2026 |
| 1.3.1 | 105 | 5/8/2026 |
Cost-based query optimizer foundation lands, plus a runtime hook for the storage layer to dispatch index lookups.
Optimizer: new IContainerStatistics abstraction + CostModel (statistics-driven cost/cardinality for the physical operator surface).
Optimizer: new IIndexCatalog + IndexAwareQueryPlanOptimizer — recognizes /element[@attr=literal] shapes and emits IndexLookupOperator when an index covers the path.
Optimizer: FlworJoinReorderer topologically sorts multi-binding for clauses by cost, respecting data dependencies.
Execution: IndexLookupOperator now falls back to QueryExecutionContext.IndexLookupResolver when its inline LookupAsync delegate is unset. New IIndexLookupResolver interface lets a host attach per-query dispatch without rewriting compiled plans.
Fix: fn:serialize with output:indent and method=json now emits pretty-printed JSON (regression test added).
See RELEASES.md for full notes.