startServerFromSetup() — drizzle-orm Function Reference
Architecture documentation for the startServerFromSetup() function in api.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 4989a948_cacf_e4b2_7283_c9335d2b7983["startServerFromSetup()"] e668bfef_9125_1ef0_2f94_a0f9605584bd["api.ts"] 4989a948_cacf_e4b2_7283_c9335d2b7983 -->|defined in| e668bfef_9125_1ef0_2f94_a0f9605584bd 3f2f3ef6_5edc_28b2_d8ba_6463008848f8["startStudioPostgresServer()"] 3f2f3ef6_5edc_28b2_d8ba_6463008848f8 -->|calls| 4989a948_cacf_e4b2_7283_c9335d2b7983 a3bd30a5_eb46_2554_e473_0327928a9aaf["startStudioSQLiteServer()"] a3bd30a5_eb46_2554_e473_0327928a9aaf -->|calls| 4989a948_cacf_e4b2_7283_c9335d2b7983 b3c5d85a_69c9_7748_a2a0_342d6999a31e["startStudioMySQLServer()"] b3c5d85a_69c9_7748_a2a0_342d6999a31e -->|calls| 4989a948_cacf_e4b2_7283_c9335d2b7983 b515e242_fd58_bff1_caf5_185a98ef3111["startStudioSingleStoreServer()"] b515e242_fd58_bff1_caf5_185a98ef3111 -->|calls| 4989a948_cacf_e4b2_7283_c9335d2b7983 2a2d384e_29cd_b901_fdda_e10fca96a027["prepareServer()"] 4989a948_cacf_e4b2_7283_c9335d2b7983 -->|calls| 2a2d384e_29cd_b901_fdda_e10fca96a027 170d6b56_991b_37cf_700d_e3137550d5b1["certs()"] 4989a948_cacf_e4b2_7283_c9335d2b7983 -->|calls| 170d6b56_991b_37cf_700d_e3137550d5b1 style 4989a948_cacf_e4b2_7283_c9335d2b7983 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-kit/src/api.ts lines 634–658
const startServerFromSetup = async (setup: Setup, options?: {
host?: string;
port?: number;
}) => {
const { prepareServer } = await import('./serializer/studio');
const server = await prepareServer(setup);
const host = options?.host || '127.0.0.1';
const port = options?.port || 4983;
const { key, cert } = (await certs()) || {};
server.start({
host,
port,
key,
cert,
cb: (err) => {
if (err) {
console.error(err);
} else {
console.log(`Studio is running at ${key ? 'https' : 'http'}://${host}:${port}`);
}
},
});
};
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does startServerFromSetup() do?
startServerFromSetup() is a function in the drizzle-orm codebase, defined in drizzle-kit/src/api.ts.
Where is startServerFromSetup() defined?
startServerFromSetup() is defined in drizzle-kit/src/api.ts at line 634.
What does startServerFromSetup() call?
startServerFromSetup() calls 2 function(s): certs, prepareServer.
What calls startServerFromSetup()?
startServerFromSetup() is called by 4 function(s): startStudioMySQLServer, startStudioPostgresServer, startStudioSQLiteServer, startStudioSingleStoreServer.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free