Last active
June 9, 2020 08:11
-
-
Save fhsinchy/f52027f51636ecd76d6dfa576821ccde to your computer and use it in GitHub Desktop.
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 "https://deno.land/x/mysql/mod.ts"; | |
const client = await new Client().connect({ | |
hostname: Deno.env.get("DB_HOST"), | |
username: Deno.env.get("DB_USER"), | |
password: Deno.env.get("DB_PASSWORD"), | |
db: Deno.env.get("DB_DATABASE"), | |
}); | |
export default client; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment