Skip to content

Instantly share code, notes, and snippets.

@fhsinchy
Last active June 9, 2020 08:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fhsinchy/f52027f51636ecd76d6dfa576821ccde to your computer and use it in GitHub Desktop.
Save fhsinchy/f52027f51636ecd76d6dfa576821ccde to your computer and use it in GitHub Desktop.
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