import type { SQL } from "bun"; export async function checkUser( db: SQL, name: String, passwd: String ) { interface userDTO { name: String, } const rows: userDTO[] = await db`select name from user where name = ${name} and passwd = ${passwd}` return rows.length == 0 ? false : true }