Package | Description |
---|---|
com.github.davidmoten.rx.jdbc |
Database querying utilities for use with JDBC and RxJava.
|
Modifier and Type | Method and Description |
---|---|
static Database.Builder |
Database.builder()
Returns a new
Database.Builder . |
Database.Builder |
Database.Builder.connectionProvider(ConnectionProvider cp)
Sets the connection provider.
|
Database.Builder |
Database.Builder.nonTransactionalScheduler(rx.functions.Func0<rx.Scheduler> factory)
Sets the non transactional scheduler.
|
Database.Builder |
Database.Builder.nonTransactionalSchedulerOnCurrentThread()
Requests that the non transactional queries are run using
Schedulers.trampoline() . |
Database.Builder |
Database.Builder.password(String password) |
Database.Builder |
Database.Builder.pool(int minPoolSize,
int maxPoolSize)
Sets the
ConnectionProvider to use a connection pool with the
given jdbc url and pool size. |
Database.Builder |
Database.Builder.pooled(String url)
Sets the
ConnectionProvider to use a connection pool with the
given jdbc url and min pool size of 0, max pool size of 10. |
Database.Builder |
Database.Builder.url(String url)
Sets the jdbc url.
|
Database.Builder |
Database.Builder.username(String username) |
Copyright © 2014–2015. All rights reserved.