@asla/yoursql 0.12.0 → 0.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,7 +3,7 @@ export interface DbCursorOption {
|
|
|
3
3
|
defaultSize?: number;
|
|
4
4
|
}
|
|
5
5
|
/** @public */
|
|
6
|
-
export declare abstract class DbCursor<T> {
|
|
6
|
+
export declare abstract class DbCursor<T> implements AsyncDisposable, AsyncIterable<T> {
|
|
7
7
|
/** 读取游标,如果读取结束,返回空数组 */
|
|
8
8
|
abstract read(maxSize?: number): Promise<T[]>;
|
|
9
9
|
/** 提前关闭游标,如果多次调用,会被忽略 */
|