Artifacts using Ceylon Transaction Platform Module (1)
This module offers some components for JDBC-based
database connectivity. The main component is the class
[[Sql]], an instance of which may be obtained for any
given [[javax.sql::DataSource]].
value sql = Sql(newConnectionFromDataSource(dataSource));
You can easily get a query result as a `Sequence` where
each row is a [[Map]]:
value rows = sql.Select("select * from mytable").execute();
for (row in rows) {
assert (is String name = rows["name"]);
assert (is Integer count = ...
Last Release on Feb 13, 2021
- Prev
- 1
- Next