Skip to content

snazin/sql-builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SQL Builder

Simple Java SQL builder

Examples

String query = SQL.create()
    .select("u.name", "a.address", "u.phone")
    .from("user u", "address a")
    .where("u.id").is(1)
    .and("u.address_id = a.id")
    .toString();

will produce

select u.name, a.address, u.phone
from user u, address a
where u.id = 1
and u.address_id = a.id

To improve logs readability every line ends with \n symbol.

You can get full list of features by tests file.

About

Simple Java SQL builder

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages