import postgres from "postgres"
import config from "../config"
export const sql = postgres(config.uri, { types: { bigint: postgres.BigInt } })
;(async () => {
console.log(await sql<Array<{ code: string; time: number }>>`select * from code`)
})()
import postgres from "postgres"
import config from "../config"
export const sql = postgres(config.uri, { types: { bigint: postgres.BigInt } })
;(async () => {
console.log(await sql<Array<{ code: string; time: number }>>`select * from code`)
})()