New Kiwi Fabric is now available - federated Data across your entire data estate, no ETL required. Explore Campaign
← All products

DATA & CONFIG · SOURCE-AVAILABLE

Kiwi ORM One ORM. Multiple data access modes. 11+ databases.

The performance of handwritten SQL with the structure of a framework - without choosing between them. Raw SQL Mode (KMQL), Entity Mode, and Repository - all in one.

Kiwi ORM - Cross-Database Data Access
The Design Philosophy

One ORM. Multiple Data Access Modes.

Most ORMs force a choice: use a full ORM and accept the performance overhead and abstraction leaks, or drop to raw SQL and lose structure, safety, and maintainability. Neither is ideal in a high-performance production system.

Kiwi ORM is built around the principle that the right data access model depends on the operation - not the framework. Use Raw SQL Mode (KMQL) for complex queries requiring full control and cross-database portability. Use Entity Mode where structure and change tracking matter. Use Repository mode where you want a clean abstraction. All three are first-class, all in one framework, against any database.

A strongly-typed pipeline architecture eliminates runtime reflection overhead and provides predictable performance at every scale. The result is the control of handwritten SQL with the maintainability of a framework - not a trade-off between the two.

Database Support

SQL Server
PostgreSQL
MySQL
MariaDB
SQLite
Oracle
Firebird
DB2
Informix
Sybase
ODBC

  • Sync and async execution throughout
  • Stored procedure support on all backends
  • Cross-database Markup DSL for portable queries
  • Transaction management built in

Three Access Modes. One Framework.

A high-performance .NET ORM with Raw SQL, Entity and Repository modes across 11+ databases.

Choose the right model per operation - not per project.

Model 1

Raw SQL Mode KMQL

Full control over SQL with typed result mapping, powered by KMQL (Kiwi Markup Query Language) for cross-database interoperability. Write the exact query you need - Kiwi ORM handles parameter binding, result mapping, and connection management across any supported database engine.

  • Cross-database interoperability via KMQL
  • Typed parameter binding
  • Automatic result mapping
  • Dapper-style performance
  • Async-first execution
Model 2

Entity Mode

Strongly-typed entity mapping with change tracking, relationship management, and schema reflection. Full CRUD operations without writing SQL, while remaining query-transparent and performant.

  • Change tracking
  • Relationship mapping
  • Schema reflection
  • Bulk operations
Model 3

Repository Mode Enterprise

Clean abstraction over data access with a repository pattern. Define your data contracts and let Kiwi ORM implement the standard operations - queryable, filterable, and paginatable without boilerplate.

  • Generic repository base
  • Query composition
  • Pagination built in
  • Unit-testable interface
Kiwi ORM Core Foundation

The Source-Available Foundation That Powers Kiwi ORM.

Kiwi ORM Core is the free, source-available foundation layer of Kiwi ORM - the strongly-typed pipeline, connection management, result mapping, and cross-database abstraction that everything else is built on. It also provides the framework and hooks for implementing auditing; you write the audit code, or upgrade to the Commercial Edition for ready-made adapters. It ships as part of Kiwi Foundation.

One pipeline architecture. Every mode - Raw SQL (KMQL), Entity, Repository - runs through the same typed execution layer. No dual code paths, no performance surprises, no hidden magic. If you can write it in SQL, ORM Core can execute it.

The ORM Core is the data access layer for teams that refuse to choose between control and productivity.

Security & Compliance Controls

Commercial Edition

Built-in controls for auditability, data access governance and security-conscious application development — available in the Kiwi ORM Commercial Edition. ORM Core includes the auditing hooks; the Commercial Edition adds fully tested, zero-code audit adapters for all 11 supported relational databases, plus a MongoDB adapter.

Query Audit Trail

Every query logged with user, timestamp, parameters, and result metadata.

Data Access Policies

Row-level and column-level access controls can be enforced at the ORM layer.

Compliance Frameworks

Technical controls to support applicable requirements.

SOC 2 GDPR HIPAA ISO 27001
Pluggable Audit Destinations

The IAuditAdapter extension point lets you send audit records to SIEM, Splunk, or compliance tooling by implementing a custom adapter.

Flexible Audit Storage

Record audit data in your relational database, or in MongoDB. MongoDB is supported as an audit store only; Kiwi ORM does not support it as a data source.

Managed CTE

Recursive SQL, without writing SQL.

Hierarchies, org charts, category trees and bills of materials — described once in typed C#, executed on any database. Kiwi ORM writes the right WITH clause for each engine: WITH RECURSIVE on PostgreSQL, MySQL and SQLite; plain WITH on SQL Server; the correct dialect everywhere else.

No SQL strings. No runtime surprises. Same query, ten databases.

Common use cases
  • Org charts & management reporting chains
  • Category trees & navigation menus
  • Bills of materials & part explosions
  • Threaded comments & nested replies
  • Subtree deactivation or re-parenting in one statement
C# Recursive org chart — all direct and indirect reports
// Who reports to this manager, at any depth?
var orgChart = context
    .WithRecursiveCte<Employee, Employee, Employee>("OrgChart")
    .BaseCase(e => e.ManagerId == null)
    .RecursiveCase(join => join
        .On(r => r.ManagerId, cte => cte.EmployeeId)
        .Where(r => r.IsActive))
    .MaxRecursion(10)
    .Build()
    .Execute();

C# Simple (non-recursive) CTE
var highEarners = context
    .WithCte<Employee, Employee>("HighEarners")
    .FromTable<Employee>()
    .Where(e => e.Salary > 50000
             && e.Department.ToUpper() == "ENGINEERING")
    .Build()
    .Execute();

Conditions are C# expressions — compiler-checked, refactor-safe. CTE-driven UPDATE, INSERT and DELETE are supported. Raw SQL fragments are validated before execution.

Performance Benchmark

Kiwi ORM vs EF Core & Dapper

ORM performance benchmark across three data access libraries — real measured timings, no manufactured values.

Warm-up: 3 iterations  ·  Measurement: 10 iterations  ·  Representative: IQR-filtered median
Select a benchmark category above to run

Frequently Asked Questions

What is Kiwi ORM?

Kiwi ORM is a high-performance data access framework with three access modes on one strongly-typed pipeline: Raw SQL (KMQL), Entity Mode and Repository Mode. You choose the right model per operation, with the control of handwritten SQL and the structure of a framework.

Which databases does Kiwi ORM support?

SQL Server, PostgreSQL, MySQL, MariaDB, SQLite, Oracle, Firebird, DB2, Informix, Sybase and ODBC, with sync and async execution, stored procedure support and built-in transaction management.

Is Kiwi ORM an alternative to Entity Framework Core or Dapper?

It covers both styles. Entity Mode provides change tracking, relationship mapping and schema reflection, and Raw SQL Mode (KMQL) offers Dapper-style performance with typed parameter binding and result mapping. The page includes a benchmark you can run yourself against EF Core and Dapper.

Can one codebase run on multiple databases?

Yes. Raw SQL Mode uses KMQL (Kiwi Markup Query Language), a cross-database markup DSL, so you write portable queries once and Kiwi ORM executes them on any of the 11+ supported databases, with typed parameter binding and result mapping. Managed CTE works the same way, generating the correct dialect for each engine.

Is Kiwi ORM fast?

Kiwi ORM is built on a strongly-typed pipeline that avoids runtime reflection overhead for predictable performance at scale, and Raw SQL Mode targets Dapper-level performance. The page includes a benchmark you can run yourself against EF Core and Dapper.

Can Kiwi ORM write recursive queries such as org charts and category trees?

Yes. Managed CTE lets you describe a recursive hierarchy once in typed C#. Kiwi ORM generates the right WITH or WITH RECURSIVE clause for each database engine.

Is Kiwi ORM open source?

No. Kiwi ORM Core is a free, source-available foundation layer: the source is visible, but it is not open source. The Commercial Edition adds features such as Repository Mode and ready-made compliance auditing.

Does Kiwi ORM support auditing?

Kiwi ORM Core provides the auditing hooks, and you write the audit code. The Commercial Edition adds fully tested, zero-code audit adapters for all 11 supported relational databases, plus a MongoDB adapter. MongoDB is supported as an audit store only, not as a data source.

Need to query across systems Kiwi ORM does not connect to directly? See Kiwi Fabric. Technical detail is in the Kiwi ORM documentation.

Source-Available

Get Access to Kiwi ORM

Kiwi ORM is available under a Source-Available licence. The Commercial Edition with zero-code compliance auditing and advanced features is available for qualifying organisations.

Request Access Enterprise Enquiry