diff options
author | James Moger <james.moger@gitblit.com> | 2014-11-06 15:34:50 -0500 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-11-09 11:15:14 -0500 |
commit | 96d0aca9ff3b29be62bc6558af80fe115b646b88 (patch) | |
tree | 250e525f8975d44c95c5111bfb66d6d2cdd84919 /src/site/usage.mkd | |
parent | db0d58c22a0bd4fa2baf023428599757aa4db381 (diff) | |
download | iciql-96d0aca9ff3b29be62bc6558af80fe115b646b88.tar.gz iciql-96d0aca9ff3b29be62bc6558af80fe115b646b88.zip |
Implement Dao proxy generation with annotated sql statement execution
This functionality is inspired by JDBI but is not based on it's implementation.
Diffstat (limited to 'src/site/usage.mkd')
-rw-r--r-- | src/site/usage.mkd | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/site/usage.mkd b/src/site/usage.mkd index 21c262e..b714512 100644 --- a/src/site/usage.mkd +++ b/src/site/usage.mkd @@ -1,15 +1,17 @@ -## Usage
+## SQL DSL Usage
-Aside from this brief usage guide, please consult the [examples](examples.html), the [javadoc](javadoc.html) and the [source code](${project.scmUrl}).
+Aside from this brief usage guide, please consult the [DSL examples](examples.html), the [javadoc](javadoc.html) and the [source code](${project.scmUrl}).
### Instantiating a Db
Use one of the static utility methods to instantiate a Db instance:
- Db.open(String url, String user, String password);
- Db.open(String url, String user, char[] password);
- Db.open(Connection conn);
- Db.open(DataSource dataSource);
+---JAVA---
+Db.open(String url, String user, String password);
+Db.open(String url, String user, char[] password);
+Db.open(Connection conn);
+Db.open(DataSource dataSource);
+---JAVA---
### Compile-Time Statements
@@ -144,11 +146,12 @@ products = db.from(view).select(); ### Natural Syntax
-<span class="warning">work-in-progress</span>
+<span class="alert alert-warning">Not Actively Developed</span>
The original JaQu source offers partial support for Java expressions in *where* clauses.
This works by decompiling a Java expression, at runtime, to an SQL condition. The expression is written as an anonymous inner class implementation of the `com.iciql.Filter` interface.
+
A proof-of-concept decompiler is included, but is incomplete.
The proposed syntax is:
|