@vertx/sql-client
Advanced tools
Comparing version 4.4.3 to 4.5.1
@@ -19,2 +19,60 @@ /* | ||
import { Vertx } from '@vertx/core'; | ||
import { SqlConnectOptions } from './options'; | ||
import { PoolOptions } from './options'; | ||
/** | ||
* Builder for {@link SqlClient} instances. | ||
*/ | ||
export abstract class ClientBuilder<C> { | ||
/** | ||
* Configure the client with the given pool <code>options</code> | ||
*/ | ||
with(options: PoolOptions) : ClientBuilder<C>; | ||
/** | ||
* Configure the <code>database</code> the client should connect to. The target <code>database</code> is specified as | ||
* a <a href="../../dataobjects.html#SqlConnectOptions">SqlConnectOptions</a> coordinates. | ||
*/ | ||
connectingTo(database: SqlConnectOptions) : ClientBuilder<C>; | ||
/** | ||
* Configure the <code>database</code> the client should connect to. The target <code>database</code> is specified as | ||
* a <a href="../../dataobjects.html#SqlConnectOptions">SqlConnectOptions</a> coordinates. | ||
*/ | ||
connectingTo(database: string) : ClientBuilder<C>; | ||
/** | ||
* Configure the <code>database</code> the client should connect to. When the client needs to connect to the database, | ||
* it gets a database configuration from the list of <code>databases</code> using a round-robin policy. | ||
*/ | ||
connectingTo(databases: SqlConnectOptions) : ClientBuilder<C>; | ||
/** | ||
* Sets the vertx instance to use. | ||
*/ | ||
using(vertx: Vertx) : ClientBuilder<C>; | ||
/** | ||
* Set a handler called when the pool has established a connection to the database. | ||
* | ||
* <p> This handler allows interactions with the database before the connection is added to the pool. | ||
* | ||
* <p> When the handler has finished, it must call {@link SqlClient#close} to release the connection | ||
* to the pool. | ||
*/ | ||
withConnectHandler(handler: ((res: SqlConnection) => void) | Handler<SqlConnection>) : ClientBuilder<C>; | ||
/** | ||
* Build and return the client. | ||
*/ | ||
build() : C; | ||
/** | ||
* Configure the <code>database</code> the client should connect to. When the client needs to connect to the database, | ||
* it gets fresh database configuration from the database <code>supplier</code>. | ||
*/ | ||
connectingTo(supplier: any /* java.util.function.Supplier<io.vertx.core.Future<io.vertx.sqlclient.SqlConnectOptions>> */) : ClientBuilder<C>; | ||
} | ||
export abstract class ColumnDescriptor { | ||
@@ -94,6 +152,3 @@ /** | ||
import { Vertx } from '@vertx/core'; | ||
import { Context } from '@vertx/core'; | ||
import { SqlConnectOptions } from './options'; | ||
import { PoolOptions } from './options'; | ||
import { TransactionPropagation } from './enums'; | ||
@@ -467,2 +522,8 @@ | ||
/** | ||
* Signal the row can be recycled, this is only effective when dealing with a row in a collector | ||
* query and the row has already been processed and transformed. | ||
*/ | ||
release() : void; | ||
/** | ||
* Get value for the given <code>column</code>. | ||
@@ -469,0 +530,0 @@ */ |
@@ -23,2 +23,3 @@ /* | ||
module.exports = { | ||
ClientBuilder: Java.type('io.vertx.sqlclient.ClientBuilder'), | ||
ColumnDescriptor: Java.type('io.vertx.sqlclient.desc.ColumnDescriptor'), | ||
@@ -25,0 +26,0 @@ Cursor: Java.type('io.vertx.sqlclient.Cursor'), |
{ | ||
"name" : "@vertx/sql-client", | ||
"description" : "Generated Eclipse Vert.x bindings for 'vertx-sql-client'", | ||
"version" : "4.4.3", | ||
"version" : "4.5.1", | ||
"license" : "Apache-2.0", | ||
@@ -10,6 +10,6 @@ "public" : true, | ||
"artifactId" : "vertx-sql-client", | ||
"version" : "4.4.3" | ||
"version" : "4.5.1" | ||
}, | ||
"dependencies" : { | ||
"@vertx/core" : "4.4.3" | ||
"@vertx/core" : "4.5.1" | ||
}, | ||
@@ -16,0 +16,0 @@ "main" : "index.js", |
Sorry, the diff of this file is not supported yet
63653
1695
+ Added@vertx/core@4.5.1(transitive)
- Removed@vertx/core@4.4.3(transitive)
Updated@vertx/core@4.5.1