# x-ream/sqli

orm sql query builder,  API: QB, QB.X, QrB

Repository: https://github.com/x-ream/sqli
Canonical: https://ross.abutalabs.com/products/sqli
Homepage: http://sqli.xream.io
Language: Java
License: Apache-2.0
License Family: permissive
Topics: xream, orm, jdbc, mysql, impala, clickhouse, presto, tdengine, query-builder
Last push: 2026-07-24T03:14:00+00:00

## Health v2 (maintenance only)
Score: 65/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 94, release rhythm 8, longevity 100
- inputs: {"age_days": 2205, "days_push": 40, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1712, forks 802 (observed 2026-08-28T04:05:25.895922+00:00)

## What it is
sqli is a Java SQL query builder and lightweight ORM programming interface with fluent APIs (QB, QB.X, QrB) for building typed and Map-based queries. It integrates with existing frameworks such as Spring Boot via the x7 starter, supporting repositories, pagination, batch operations, and multiple SQL dialects.

## Use cases
- build SQL queries programmatically in Java without writing raw SQL
- query MySQL, ClickHouse, Presto, Impala, or TDengine from a Spring Boot app
- create paginated list and find queries with a fluent query builder
- perform batch inserts and upsert-style createOrReplace operations
- run join queries returning Map records with QB.X
- stream large query results with a row handler

## When to choose
- you want a lightweight SQL builder/ORM layer on the JVM instead of a full heavyweight ORM
- your project targets multiple SQL dialects like MySQL, ClickHouse, Presto, Impala, or TDengine
- you prefer fluent query construction (QB/QB.X) with repository-style data access in Spring Boot

## When to avoid
- you need a full-featured ORM with JPA/Hibernate features like lazy loading and caching
- you are not on the JVM or not using Java
- you want auto-generated schema migrations or self-incrementing key returns, which are not supported

## Facets
- artifact type: library
- maturity: active
- function: orm, database, database-driver
- domain: databases, backend, developer-tools
- platform: jvm
- tags: query-builder, sql-builder, jdbc, mysql, clickhouse, presto, impala, tdengine, fluent-api, spring

## Member repositories
- x-ream/sqli (main) score 65

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:25.895922+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:34:53.559306+00:00, confidence not recorded.
  - readme: https://github.com/x-ream/sqli (fetched 2026-08-28T04:05:25.895922+00:00, sha 5ff714b0c94b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
