Skip to content

Commit

Permalink
Rename: db->pg to be more specific. These are postgres utils.
Browse files Browse the repository at this point in the history
  • Loading branch information
aboodman committed Dec 3, 2021
1 parent 379f3a6 commit a8adc39
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/data.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
putObject,
setLastMutationID,
} from "./data";
import { createDatabase, withExecutor } from "./db";
import { createDatabase, withExecutor } from "./pg";

setup(async () => {
await withExecutor(async () => {
Expand Down
2 changes: 1 addition & 1 deletion backend/data.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { JSONValue } from "replicache";
import { Executor } from "./db";
import { Executor } from "./pg";

export async function getCookie(
executor: Executor,
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion pages/api/init.ts
Original file line number Diff line number Diff line change
@@ -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) => {
Expand Down

0 comments on commit a8adc39

Please sign in to comment.