https://github.com/dynapi/org.dynapi.squirtle
Java SQL Query Builder
https://github.com/dynapi/org.dynapi.squirtle
dynapi java sql sql-builder
Last synced: 7 months ago
JSON representation
Java SQL Query Builder
- Host: GitHub
- URL: https://github.com/dynapi/org.dynapi.squirtle
- Owner: DynAPI
- License: gpl-3.0
- Created: 2024-07-29T18:08:15.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-20T13:42:28.000Z (over 1 year ago)
- Last Synced: 2025-01-11T22:27:42.330Z (about 1 year ago)
- Topics: dynapi, java, sql, sql-builder
- Language: Java
- Homepage:
- Size: 315 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/DynAPI/org.dynapi.squirtle/actions/workflows/publish-release.yaml)
[](https://github.com/DynAPI/org.dynapi.squirtle/actions/workflows/publish-package.yaml)
# Squirtle - Java SQL Query Builder
```java
import org.dynapi.squirtle.core.queries.Query;
import org.dynapi.squirtle.core.queries.Schema;
import org.dynapi.squirtle.core.queries.Table;
public class Example {
public static void main(String[] args) {
Table table = new Schema("dynapi").table("test").as("t");
String sql = new Query()
.from(table)
.select(table.asStar())
.getSql();
System.out.println(sql); // SELECT "t".* FROM "dynapi"."test" "t"
}
}
```