parseSingleStoreCredentials() — drizzle-orm Function Reference
Architecture documentation for the parseSingleStoreCredentials() function in connections.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD af9a4268_0785_3637_690c_5dafd816452a["parseSingleStoreCredentials()"] 4e02c2bb_54a8_1500_813e_2cafd1ad4f59["connections.ts"] af9a4268_0785_3637_690c_5dafd816452a -->|defined in| 4e02c2bb_54a8_1500_813e_2cafd1ad4f59 a48b207b_f1ec_2aa2_152e_adc4eccb325f["connectToSingleStore()"] a48b207b_f1ec_2aa2_152e_adc4eccb325f -->|calls| af9a4268_0785_3637_690c_5dafd816452a style af9a4268_0785_3637_690c_5dafd816452a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-kit/src/cli/connections.ts lines 619–640
const parseSingleStoreCredentials = (credentials: SingleStoreCredentials) => {
if ('url' in credentials) {
const url = credentials.url;
const connectionUrl = new URL(url);
const pathname = connectionUrl.pathname;
const database = pathname.split('/')[pathname.split('/').length - 1];
if (!database) {
console.error(
'You should specify a database name in connection string (singlestore://USER:PASSWORD@HOST:PORT/DATABASE)',
);
process.exit(1);
}
return { database, url };
} else {
return {
database: credentials.database,
credentials,
};
}
};
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does parseSingleStoreCredentials() do?
parseSingleStoreCredentials() is a function in the drizzle-orm codebase, defined in drizzle-kit/src/cli/connections.ts.
Where is parseSingleStoreCredentials() defined?
parseSingleStoreCredentials() is defined in drizzle-kit/src/cli/connections.ts at line 619.
What calls parseSingleStoreCredentials()?
parseSingleStoreCredentials() is called by 1 function(s): connectToSingleStore.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free