@vertx/sql-client
Advanced tools
Comparing version 4.1.0 to 4.2.0
@@ -30,2 +30,6 @@ /* | ||
*/ | ||
typeName() : string; | ||
/** | ||
*/ | ||
jdbcType() : any; | ||
@@ -91,2 +95,3 @@ } | ||
import { Vertx } from '@vertx/core'; | ||
import { Context } from '@vertx/core'; | ||
import { SqlConnectOptions } from './options'; | ||
@@ -115,3 +120,3 @@ import { PoolOptions } from './options'; | ||
*/ | ||
query(sql: string) : Query<RowSet<Row>>; | ||
override query(sql: string) : Query<RowSet<Row>>; | ||
@@ -124,3 +129,3 @@ /** | ||
*/ | ||
preparedQuery(sql: string) : PreparedQuery<RowSet<Row>>; | ||
override preparedQuery(sql: string) : PreparedQuery<RowSet<Row>>; | ||
@@ -186,2 +191,24 @@ /** | ||
close(handler: ((res: AsyncResult<void>) => void) | Handler<AsyncResult<void>>) : void; | ||
/** | ||
* Set an 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. | ||
*/ | ||
connectHandler(handler: ((res: SqlConnection) => void) | Handler<SqlConnection>) : Pool; | ||
/** | ||
* Replace the default pool connection provider, the new <code>provider</code> returns a future connection for a | ||
* given . | ||
* | ||
* <p> A {@link ConnectionFactory} can be used as connection provider. | ||
*/ | ||
connectionProvider(provider: (arg: Context) => PromiseLike<SqlConnection>) : Pool; | ||
/** | ||
*/ | ||
size() : number; | ||
} | ||
@@ -581,5 +608,5 @@ | ||
export abstract class RowIterator<R> { | ||
hasNext() : boolean; | ||
override hasNext() : boolean; | ||
next() : R; | ||
override next() : R; | ||
} | ||
@@ -597,5 +624,5 @@ | ||
iterator() : RowIterator<R>; | ||
override iterator() : RowIterator<R>; | ||
next() : RowSet<R>; | ||
override next() : RowSet<R>; | ||
} | ||
@@ -617,13 +644,13 @@ | ||
exceptionHandler(handler: ((res: Throwable) => void) | Handler<Throwable> | null | undefined) : RowStream<T>; | ||
override exceptionHandler(handler: ((res: Throwable) => void) | Handler<Throwable> | null | undefined) : RowStream<T>; | ||
handler(handler: ((res: T) => void) | Handler<T> | null | undefined) : RowStream<T>; | ||
override handler(handler: ((res: T) => void) | Handler<T> | null | undefined) : RowStream<T>; | ||
pause() : RowStream<T>; | ||
override pause() : RowStream<T>; | ||
resume() : RowStream<T>; | ||
override resume() : RowStream<T>; | ||
endHandler(endHandler: ((res: void) => void) | Handler<void> | null | undefined) : RowStream<T>; | ||
override endHandler(endHandler: ((res: void) => void) | Handler<void> | null | undefined) : RowStream<T>; | ||
fetch(l: number) : RowStream<T>; | ||
override fetch(l: number) : RowStream<T>; | ||
@@ -641,2 +668,4 @@ /** | ||
import { PrepareOptions } from './options'; | ||
/** | ||
@@ -658,2 +687,8 @@ * Defines common SQL client operations with a database server. | ||
/** | ||
* Create a prepared query, one of the {@link Query#execute} or {@link PreparedQuery#executeBatch} | ||
* methods must be called to execute the query. | ||
*/ | ||
preparedQuery(sql: string, options: PrepareOptions) : PreparedQuery<RowSet<Row>>; | ||
/** | ||
* Close the client and release the associated resources. | ||
@@ -669,2 +704,3 @@ */ | ||
/** | ||
@@ -685,2 +721,12 @@ * A connection to the database server. | ||
/** | ||
* Create a prepared statement using the given <code>sql</code> string. | ||
*/ | ||
prepare(sql: string, options: PrepareOptions) : PromiseLike<PreparedStatement>; | ||
/** | ||
* Create a prepared statement using the given <code>sql</code> string. | ||
*/ | ||
prepare(sql: string, options: PrepareOptions, handler: ((res: AsyncResult<PreparedStatement>) => void) | Handler<AsyncResult<PreparedStatement>>) : SqlConnection; | ||
/** | ||
* Set an handler called with connection errors. | ||
@@ -834,2 +880,4 @@ */ | ||
* The list is not copied and is used as store for tuple elements. | ||
* <br/> | ||
* Note: The list might be modified and users should use {@link Tuple#tuple} if the list is unmodifiable | ||
*/ | ||
@@ -836,0 +884,0 @@ static wrap<T>(list: T) : Tuple; |
@@ -106,2 +106,15 @@ /* | ||
/** | ||
* Options for preparing a statement. | ||
* | ||
* Currently empty, custom options might be used by implementations to customize specific behavior. | ||
*/ | ||
export class PrepareOptions { | ||
constructor(); | ||
constructor(obj: PrepareOptions | { [key: string]: any }); | ||
} | ||
import { ProxyOptions } from '@vertx/core/options'; | ||
@@ -120,3 +133,3 @@ import { JksOptions } from '@vertx/core/options'; | ||
*/ | ||
export class SqlConnectOptions { | ||
export class SqlConnectOptions extends SqlConnectOptions { | ||
@@ -294,2 +307,6 @@ constructor(); | ||
getReadIdleTimeout(): number; | ||
setReadIdleTimeout(readIdleTimeout: number): SqlConnectOptions; | ||
getReceiveBufferSize(): number; | ||
@@ -399,4 +416,8 @@ | ||
getWriteIdleTimeout(): number; | ||
setWriteIdleTimeout(writeIdleTimeout: number): SqlConnectOptions; | ||
toJson(): { [key: string]: any }; | ||
} |
@@ -24,3 +24,4 @@ /* | ||
PoolOptions: Java.type('io.vertx.sqlclient.PoolOptions'), | ||
PrepareOptions: Java.type('io.vertx.sqlclient.PrepareOptions'), | ||
SqlConnectOptions: Java.type('io.vertx.sqlclient.SqlConnectOptions') | ||
}; |
{ | ||
"name" : "@vertx/sql-client", | ||
"description" : "Generated Eclipse Vert.x bindings for 'vertx-sql-client'", | ||
"version" : "4.1.0", | ||
"version" : "4.2.0", | ||
"license" : "Apache-2.0", | ||
@@ -10,9 +10,8 @@ "public" : true, | ||
"artifactId" : "vertx-sql-client", | ||
"version" : "4.1.0" | ||
"version" : "4.2.0" | ||
}, | ||
"dependencies" : { | ||
"@vertx/core" : "4.1.0" | ||
"@vertx/core" : "4.2.0" | ||
}, | ||
"main" : "index.js", | ||
"module" : "index.mjs", | ||
"types" : "index.d.ts", | ||
@@ -24,2 +23,3 @@ "exports" : { | ||
}, | ||
"type" : "module", | ||
"sideEffects" : false, | ||
@@ -26,0 +26,0 @@ "repository" : { |
Sorry, the diff of this file is not supported yet
57641
1557
Yes
+ Added@vertx/core@4.2.0(transitive)
- Removed@vertx/core@4.1.0(transitive)
Updated@vertx/core@4.2.0