You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 028c847
Browse filesBrowse the repository at this point in the historyBrowse files
A lightweight, fluent Java library for building parameterized SQL queries and filtering in-memory data, no runtime dependencies required.
4
8
9
+
5
10
## Features
6
11
7
12
- Fluent, readable builder API for SELECT, INSERT, UPDATE, DELETE, and CREATE TABLE
@@ -10,6 +15,7 @@ A lightweight, fluent Java library for building parameterized SQL queries and fi
10
15
- Subquery support: `WHERE col IN (SELECT ...)`, `WHERE EXISTS (SELECT ...)`, `WHERE NOT EXISTS`, derived-table `FROM (SELECT ...) AS alias`, JOIN subqueries, and scalar `(SELECT ...) AS alias` in SELECT
-**Global and per-query configuration of defaults (e.g., dialect, columns, limit, LIKE wrapping) via `QueryBuilderDefaults`**
13
19
- In-memory filtering via `QueryableStorage`
14
20
- Zero runtime dependencies, pure Java 21+
15
21
@@ -21,7 +27,7 @@ Add the dependency to your `pom.xml`:
21
27
<dependency>
22
28
<groupId>com.github.EzFramework</groupId>
23
29
<artifactId>JavaQueryBuilder</artifactId>
24
-
<version>1.0.4</version>
30
+
<version>1.0.5</version>
25
31
</dependency>
26
32
```
27
33
@@ -387,6 +393,48 @@ new SelectBuilder()
387
393
.build(); // → SqlResult
388
394
```
389
395
396
+
397
+
## Global and Per-Query Configuration
398
+
399
+
You can preset the default SQL dialect, default columns, limit, offset, and LIKE wrapping for all queries using `QueryBuilderDefaults`. This is useful for enforcing a project-wide dialect (e.g., always use SQLite) or customizing builder defaults.
400
+
401
+
### Set SQLite as the default dialect for all queries
See the Javadoc for [`QueryBuilderDefaults`](src/main/java/com/github/ezframework/javaquerybuilder/query/QueryBuilderDefaults.java) for all configurable options.
437
+
390
438
## SQL Dialects
391
439
392
440
By default, `buildSql(table)` uses `SqlDialect.STANDARD` (no identifier quoting). Pass a second argument to use a different dialect:
0 commit comments