From a8adc3928c890b3f1bd4e1d5bcf361f84c8eee2d Mon Sep 17 00:00:00 2001 From: Aaron Boodman Date: Fri, 3 Dec 2021 01:42:52 -1000 Subject: [PATCH] Rename: db->pg to be more specific. These are postgres utils. --- backend/data.test.ts | 2 +- backend/data.ts | 2 +- backend/{db.ts => pg.ts} | 0 pages/api/init.ts | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename backend/{db.ts => pg.ts} (100%) diff --git a/backend/data.test.ts b/backend/data.test.ts index 8eb7f51..6d93e32 100644 --- a/backend/data.test.ts +++ b/backend/data.test.ts @@ -8,7 +8,7 @@ import { putObject, setLastMutationID, } from "./data"; -import { createDatabase, withExecutor } from "./db"; +import { createDatabase, withExecutor } from "./pg"; setup(async () => { await withExecutor(async () => { diff --git a/backend/data.ts b/backend/data.ts index 731320f..c50f116 100644 --- a/backend/data.ts +++ b/backend/data.ts @@ -1,5 +1,5 @@ import { JSONValue } from "replicache"; -import { Executor } from "./db"; +import { Executor } from "./pg"; export async function getCookie( executor: Executor, diff --git a/backend/db.ts b/backend/pg.ts similarity index 100% rename from backend/db.ts rename to backend/pg.ts diff --git a/pages/api/init.ts b/pages/api/init.ts index edc63a0..af3b49b 100644 --- a/pages/api/init.ts +++ b/pages/api/init.ts @@ -1,4 +1,4 @@ -import { createDatabase } from "../../backend/db"; +import { createDatabase } from "../../backend/pg"; import type { NextApiRequest, NextApiResponse } from "next"; export default async (req: NextApiRequest, res: NextApiResponse) => {