alexfu / SQLiteQueryBuilder

A library that provides a simple API for building SQLite query statements in Java.
MIT License
70 stars 21 forks source link

Support for insert statements #36

Closed alexfu closed 8 years ago

alexfu commented 8 years ago

Adds basic support for insert statements. Usage:

String sql = SQLiteQueryBuilder.insert()
  .into("people")
  .columns("id", "name", "timestamp")
  .values(1, "John", Calendar.getInstance())
  .build();

which will result in...

INSERT INTO people (id,name,timestamp) values (1,'John','2016-01-15T07:22-0500')