class PgConnection extends SqlConnection
A connection to Postgres.
- Alphabetic
- By Inheritance
- PgConnection
- SqlConnection
- SqlClient
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new PgConnection(_asJava: AnyRef)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
asJava: AnyRef
- Definition Classes
- SqlClient
-
def
begin(): Transaction
- Definition Classes
- SqlConnection
-
def
cancelRequest(handler: Handler[AsyncResult[Unit]]): PgConnection
Send a request cancellation message to tell the server to cancel processing request in this connection.
Send a request cancellation message to tell the server to cancel processing request in this connection.
Note: Use this with caution because the cancellation signal may or may not have any effect. * @param handler the handler notified if cancelling request is sent- returns
a reference to this, so the API can be used fluently
-
def
cancelRequestFuture(): Future[Unit]
Like cancelRequest but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
close(): Unit
- Definition Classes
- SqlConnection → SqlClient
-
def
closeHandler(handler: Handler[Unit]): PgConnection
- Definition Classes
- PgConnection → SqlConnection
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
exceptionHandler(handler: Handler[Throwable]): PgConnection
- Definition Classes
- PgConnection → SqlConnection
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isSSL(): Boolean
- Definition Classes
- SqlConnection
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
notificationHandler(handler: Handler[PgNotification]): PgConnection
Set an handler called when the connection receives notification on a channel.
Set an handler called when the connection receives notification on a channel.
The handler is called with the PgNotification and has access to the channel name and the notification payload. * @param handler the handler
- returns
the transaction instance
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
prepare(sql: String, handler: Handler[AsyncResult[PreparedQuery]]): PgConnection
- Definition Classes
- PgConnection → SqlConnection
-
def
prepareFuture(sql: String): Future[PreparedQuery]
- Definition Classes
- PgConnection → SqlConnection
-
def
preparedBatch(sql: String, batch: Buffer[Tuple], handler: Handler[AsyncResult[RowSet[Row]]]): PgConnection
- Definition Classes
- PgConnection → SqlConnection → SqlClient
-
def
preparedBatchFuture(sql: String, batch: Buffer[Tuple]): Future[RowSet[Row]]
- Definition Classes
- PgConnection → SqlConnection → SqlClient
-
def
preparedQuery(sql: String, arguments: Tuple, handler: Handler[AsyncResult[RowSet[Row]]]): PgConnection
- Definition Classes
- PgConnection → SqlConnection → SqlClient
-
def
preparedQuery(sql: String, handler: Handler[AsyncResult[RowSet[Row]]]): PgConnection
- Definition Classes
- PgConnection → SqlConnection → SqlClient
-
def
preparedQueryFuture(sql: String, arguments: Tuple): Future[RowSet[Row]]
- Definition Classes
- PgConnection → SqlConnection → SqlClient
-
def
preparedQueryFuture(sql: String): Future[RowSet[Row]]
- Definition Classes
- PgConnection → SqlConnection → SqlClient
-
def
processId(): Int
- returns
The process ID of the target backend
-
def
query(sql: String, handler: Handler[AsyncResult[RowSet[Row]]]): PgConnection
- Definition Classes
- PgConnection → SqlConnection → SqlClient
-
def
queryFuture(sql: String): Future[RowSet[Row]]
- Definition Classes
- PgConnection → SqlConnection → SqlClient
-
def
secretKey(): Int
- returns
The secret key for the target backend
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )