Package | Description |
---|---|
com.github.davidmoten.rx.jdbc |
Database querying utilities for use with JDBC and RxJava.
|
Modifier and Type | Method and Description |
---|---|
Database |
Database.asynchronous()
Returns a Database based on the current Database except all
non-transactional queries run
Schedulers.io() . |
Database |
Database.asynchronous(rx.functions.Func0<rx.Scheduler> nonTransactionalSchedulerFactory)
Returns a Database based on the current Database except all
non-transactional queries run on the scheduler provided by the given
factory.
|
Database |
Database.asynchronous(rx.Scheduler nonTransactionalScheduler)
Returns a Database based on the current Database except all
non-transactional queries run on the given scheduler.
|
Database |
Database.Builder.build()
Returns a
Database . |
Database |
Database.close()
Close the database in particular closes the
ConnectionProvider
for the database. |
static Database |
Database.from(Connection con)
Factory method.
|
static Database |
Database.from(ConnectionProvider cp)
|
static Database |
Database.from(String url)
Returns a
Database based on a jdbc connection string. |
static Database |
Database.from(String url,
String username,
String password)
Returns a
Database based on a jdbc connection string. |
static Database |
Database.fromContext(String jndiResource)
Returns a
Database based on connections obtained from a
DataSource based on looking up the current Context |
static Database |
Database.fromDataSource(DataSource dataSource)
Returns a
Database based on connections obtained from a
DataSource |
Constructor and Description |
---|
QuerySelect.Builder(String sql,
Database db)
Constructor.
|
QueryUpdate.Builder(String sql,
Database db)
Constructor.
|
Copyright © 2014–2015. All rights reserved.