This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use client'; | |
import { Controller, useFieldArray, useForm } from 'react-hook-form'; | |
export default function Job() { | |
const { control } = useForm({ | |
defaultValues: { | |
emails: [ | |
{ | |
value: '', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Client } from "pg"; | |
import { drizzle } from "drizzle-orm/node-postgres"; | |
import * as schema from "../drizzle/schema"; | |
import { Logger } from "drizzle-orm/logger"; | |
export async function createContext() { | |
const client = new Client({ | |
connectionString: "your database connection string", | |
}); | |
await client.connect(); |