db.server.ts — ui Source File
Architecture documentation for db.server.ts, a typescript file in the ui codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 3c6e6fdb_9408_976e_ecfd_d942617df11b["db.server.ts"] 8167d6e6_66e4_311f_1efe_6e8c96f8300b["singleton.server.ts"] 3c6e6fdb_9408_976e_ecfd_d942617df11b --> 8167d6e6_66e4_311f_1efe_6e8c96f8300b 235f8d60_44ad_843b_5d4f_e92fd565026e["singleton"] 3c6e6fdb_9408_976e_ecfd_d942617df11b --> 235f8d60_44ad_843b_5d4f_e92fd565026e 0e9e6e0c_89c3_710e_bf21_50ad9d751025["client"] 3c6e6fdb_9408_976e_ecfd_d942617df11b --> 0e9e6e0c_89c3_710e_bf21_50ad9d751025 style 3c6e6fdb_9408_976e_ecfd_d942617df11b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { PrismaClient } from "@prisma/client";
import { singleton } from "./singleton.server";
// Hard-code a unique key, so we can look up the client when this module gets re-imported
const prisma = singleton("prisma", () => new PrismaClient());
prisma.$connect();
export { prisma };
Domain
Subdomains
Functions
Dependencies
Source
Frequently Asked Questions
What does db.server.ts do?
db.server.ts is a source file in the ui codebase, written in typescript. It belongs to the FrameworkTooling domain, TemplateSync subdomain.
What functions are defined in db.server.ts?
db.server.ts defines 1 function(s): prisma.
What does db.server.ts depend on?
db.server.ts imports 3 module(s): client, singleton, singleton.server.ts.
Where is db.server.ts in the architecture?
db.server.ts is located at packages/shadcn/test/fixtures/frameworks/remix-indie-stack/app/db.server.ts (domain: FrameworkTooling, subdomain: TemplateSync, directory: packages/shadcn/test/fixtures/frameworks/remix-indie-stack/app).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free