durcno@1.0.0-alpha.10
Minor Changes
-
2f091d5 - Thanks to @almahdi404 !
impr(functions): improve aggregate return type inference
sum,avg,min, andmaxaggregate functions now infer their return type from the wrapped column's TypeScript type instead of returning a hardcodednumber | nullorstring | null.// Beforeconst result = await db.from(Orders).select({ total: sum(Orders.amount) });// total: number | null ← always number, even for bigint columns// Afterconst result = await db.from(Orders).select({ total: sum(Orders.amount) });// total: bigint | null ← matches the column's actual TypeScript typeThe
SqlFnbase class was also refactored: theTReturntype parameter was moved to the last position and renamedTTsType, and abigintpass-through was added tofromDriverto preserve precision.The
SqlFnForutility type has been removed in favour of directSqlFnusage.
Patch Changes
-
fb6ea93 - Thanks to @almahdi404 !
fix(cli): disable query logging via connector options
CLI commands (
migrate,down,status,shell) were silencing query logging by settingconnector.poolandconnector.loggerdirectly — redundant properties that were synced fromconnector.optionsin the constructor but not actually read back.These properties have been removed from the
Connectorbase class. The commands now correctly mutateconnector.options.poolandconnector.options.loggerso the logger suppression takes effect.