Skip to content

Commit 8850d7a

Browse files
committed
ignore sqlite3 dir from deno lsp
1 parent 67b66ec commit 8850d7a

2 files changed

Lines changed: 23 additions & 12 deletions

File tree

deno.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
"exclude": [
99
"sqlite",
10-
"sqlite3",
1110
"scripts"
1211
],
1312

@@ -28,12 +27,6 @@
2827
"bench-bun:northwind": "bun run bench/northwind/bun.js"
2928
},
3029

31-
"fmt": {
32-
"exclude": [
33-
"sqlite"
34-
]
35-
},
36-
3730
"lint": {
3831
"exclude": ["bench"],
3932
"rules": {

src/statement.ts

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,13 @@ export class Statement<TStatement extends object = Record<string, any>> {
468468
)(getColumn);
469469
let status = sqlite3_step(handle);
470470
while (status === SQLITE3_ROW) {
471-
result.push(getRowArray(handle, this.int64 ?? this.db.int64, this.parseJson ?? this.db.parseJson));
471+
result.push(
472+
getRowArray(
473+
handle,
474+
this.int64 ?? this.db.int64,
475+
this.parseJson ?? this.db.parseJson,
476+
),
477+
);
472478
status = sqlite3_step(handle);
473479
}
474480
if (status !== SQLITE3_DONE) {
@@ -501,7 +507,13 @@ export class Statement<TStatement extends object = Record<string, any>> {
501507
)(getColumn);
502508
let status = sqlite3_step(handle);
503509
while (status === SQLITE3_ROW) {
504-
result.push(getRowArray(handle, this.int64 ?? this.db.int64, this.parseJson ?? this.db.parseJson));
510+
result.push(
511+
getRowArray(
512+
handle,
513+
this.int64 ?? this.db.int64,
514+
this.parseJson ?? this.db.parseJson,
515+
),
516+
);
505517
status = sqlite3_step(handle);
506518
}
507519
if (!this.#hasNoArgs && !this.#bound && params.length) {
@@ -514,9 +526,15 @@ export class Statement<TStatement extends object = Record<string, any>> {
514526
return result as T[];
515527
}
516528

517-
#rowObjectFn: ((h: Deno.PointerValue, int64: boolean, parseJson: boolean) => any) | undefined;
529+
#rowObjectFn:
530+
| ((h: Deno.PointerValue, int64: boolean, parseJson: boolean) => any)
531+
| undefined;
518532

519-
getRowObject(): (h: Deno.PointerValue, int64: boolean, parseJson: boolean) => any {
533+
getRowObject(): (
534+
h: Deno.PointerValue,
535+
int64: boolean,
536+
parseJson: boolean,
537+
) => any {
520538
if (!this.#rowObjectFn || !this.#unsafeConcurrency) {
521539
const columnNames = this.columnNames();
522540
const getRowObject = new Function(
@@ -733,7 +751,7 @@ export class Statement<TStatement extends object = Record<string, any>> {
733751

734752
/** Iterate over resultant rows from query. */
735753
*iter(...params: RestBindParameters): IterableIterator<any> {
736-
this.#begin();
754+
this.#begin();
737755
this.#bindAll(params);
738756
const getRowObject = this.getRowObject();
739757
const int64 = this.int64 ?? this.db.int64;

0 commit comments

Comments
 (0)