I tried checking with console.log to see if there was any difference, here, I show you:
const instalments = [{ id: "123", verified: true }, { id: "321", verified: false }]
const queries = instalments.map((item) =>
db.update(Instalments)
.set({ verified: item.verified })
.where(eq(Instalments.id, item.id))
);
[
SQLiteUpdateBase {
config: {
set: [Object],
table: [SQLiteTable],
withList: undefined,
where: [SQL]
},
run: [Function: run],
all: [Function: all],
get: [Function: get],
values: [Function: values],
session: LibSQLSession {
dialect: SQLiteAsyncDialect {},
logger: NoopLogger {},
client: [Sqlite3Client],
schema: undefined,
options: [Object],
tx: undefined
},
dialect: SQLiteAsyncDialect {},
[Symbol(Symbol.toStringTag)]: 'QueryPromise'
},
SQLiteUpdateBase {
config: {
set: [Object],
table: [SQLiteTable],
withList: undefined,
where: [SQL]
},
run: [Function: run],
all: [Function: all],
get: [Function: get],
values: [Function: values],
session: LibSQLSession {
dialect: SQLiteAsyncDialect {},
logger: NoopLogger {},
client: [Sqlite3Client],
schema: undefined,
options: [Object],
tx: undefined
},
dialect: SQLiteAsyncDialect {},
[Symbol(Symbol.toStringTag)]: 'QueryPromise'
}
]