public interface SqlConnection extends SqlClient
Modifier and Type | Method and Description |
---|---|
Transaction |
begin()
Begin a transaction and returns a
Transaction for controlling and tracking
this transaction. |
void |
close()
Close the current connection after all the pending commands have been processed.
|
SqlConnection |
closeHandler(Handler<Void> handler)
Set an handler called when the connection is closed.
|
DatabaseMetadata |
databaseMetadata() |
SqlConnection |
exceptionHandler(Handler<Throwable> handler)
Set an handler called with connection errors.
|
boolean |
isSSL() |
SqlConnection |
prepare(String sql,
Handler<AsyncResult<PreparedStatement>> handler)
Create a prepared query.
|
preparedQuery, query
SqlConnection prepare(String sql, Handler<AsyncResult<PreparedStatement>> handler)
sql
- the sqlhandler
- the handler notified with the prepared query asynchronouslySqlConnection exceptionHandler(Handler<Throwable> handler)
handler
- the handlerSqlConnection closeHandler(Handler<Void> handler)
handler
- the handlerTransaction begin()
Transaction
for controlling and tracking
this transaction.
When the connection is explicitely closed, any inflight transaction is rollbacked.boolean isSSL()
void close()
DatabaseMetadata databaseMetadata()
Copyright © 2023 Eclipse. All rights reserved.