libsql.ts — drizzle-orm Source File
Architecture documentation for libsql.ts, a typescript file in the drizzle-orm codebase. 6 imports, 4 dependents.
Entity Profile
Dependency Diagram
graph LR 06060c75_d281_2312_e011_483025ec5bdf["libsql.ts"] 217e2cbd_4fb7_ceab_251c_5733ece08a8f["views.ts"] 06060c75_d281_2312_e011_483025ec5bdf --> 217e2cbd_4fb7_ceab_251c_5733ece08a8f b0ef3d06_896b_eefc_c410_dfb419673d70["error"] 06060c75_d281_2312_e011_483025ec5bdf --> b0ef3d06_896b_eefc_c410_dfb419673d70 9135e6b6_37f7_c980_ee35_90f5531de5a4["common.ts"] 06060c75_d281_2312_e011_483025ec5bdf --> 9135e6b6_37f7_c980_ee35_90f5531de5a4 b00190f0_9c7c_acbf_86f7_950ac8c79592["wrapParam"] 06060c75_d281_2312_e011_483025ec5bdf --> b00190f0_9c7c_acbf_86f7_950ac8c79592 01e00b35_5de9_4e4e_2b6b_d50401fec78b["global"] 06060c75_d281_2312_e011_483025ec5bdf --> 01e00b35_5de9_4e4e_2b6b_d50401fec78b 9d8cc145_835b_8147_2ea5_b7b5383ae775["zod"] 06060c75_d281_2312_e011_483025ec5bdf --> 9d8cc145_835b_8147_2ea5_b7b5383ae775 c2c22050_0d5c_404e_2b18_5934c728a89c["introspect.ts"] c2c22050_0d5c_404e_2b18_5934c728a89c --> 06060c75_d281_2312_e011_483025ec5bdf 6219550e_1686_ca7a_0d96_0838fb90e7cb["push.ts"] 6219550e_1686_ca7a_0d96_0838fb90e7cb --> 06060c75_d281_2312_e011_483025ec5bdf 09e5bcf1_0f03_3dbd_fbdb_762440f28855["utils.ts"] 09e5bcf1_0f03_3dbd_fbdb_762440f28855 --> 06060c75_d281_2312_e011_483025ec5bdf 4e02c2bb_54a8_1500_813e_2cafd1ad4f59["connections.ts"] 4e02c2bb_54a8_1500_813e_2cafd1ad4f59 --> 06060c75_d281_2312_e011_483025ec5bdf style 06060c75_d281_2312_e011_483025ec5bdf fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { softAssertUnreachable } from 'src/global';
import { object, string, TypeOf } from 'zod';
import { error } from '../views';
import { wrapParam } from './common';
export const libSQLCredentials = object({
url: string().min(1),
authToken: string().min(1).optional(),
});
export type LibSQLCredentials = {
url: string;
authToken?: string;
};
const _: LibSQLCredentials = {} as TypeOf<typeof libSQLCredentials>;
export const printConfigConnectionIssues = (
options: Record<string, unknown>,
command: 'generate' | 'migrate' | 'push' | 'pull' | 'studio',
) => {
let text = `Please provide required params for 'turso' dialect:\n`;
console.log(error(text));
console.log(wrapParam('url', options.url));
console.log(wrapParam('authToken', options.authToken, true, 'secret'));
process.exit(1);
};
Domain
Subdomains
Functions
Types
Imported By
Source
Frequently Asked Questions
What does libsql.ts do?
libsql.ts is a source file in the drizzle-orm codebase, written in typescript. It belongs to the DrizzleKit domain, CLIWorkflow subdomain.
What functions are defined in libsql.ts?
libsql.ts defines 1 function(s): printConfigConnectionIssues.
What does libsql.ts depend on?
libsql.ts imports 6 module(s): common.ts, error, global, views.ts, wrapParam, zod.
What files import libsql.ts?
libsql.ts is imported by 4 file(s): connections.ts, introspect.ts, push.ts, utils.ts.
Where is libsql.ts in the architecture?
libsql.ts is located at drizzle-kit/src/cli/validations/libsql.ts (domain: DrizzleKit, subdomain: CLIWorkflow, directory: drizzle-kit/src/cli/validations).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free