13 lines
235 B
TypeScript
13 lines
235 B
TypeScript
import { PostFetcher, Post } from "@/db"
|
|
import { sql } from "bun";
|
|
|
|
let x: Post[] = [];
|
|
const fetcher = new PostFetcher();
|
|
await fetcher.init()
|
|
|
|
for (let i = 0; i < 10; i++) {
|
|
x = await fetcher.postgres_fetch()
|
|
|
|
console.log(x)
|
|
|
|
}
|