XataHttpDriver Class — drizzle-orm Architecture
Architecture documentation for the XataHttpDriver class in driver.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 365a9b09_6546_8b08_3f4d_6e5b90ac257f["XataHttpDriver"] 873bd06d_d5ad_ee33_9029_a6593dd73ae2["driver.ts"] 365a9b09_6546_8b08_3f4d_6e5b90ac257f -->|defined in| 873bd06d_d5ad_ee33_9029_a6593dd73ae2 b76e7b28_9a47_da8f_b9a5_f8bced457ed6["constructor()"] 365a9b09_6546_8b08_3f4d_6e5b90ac257f -->|method| b76e7b28_9a47_da8f_b9a5_f8bced457ed6 3b97aa02_cd8f_47ec_c581_509ac9cd7214["createSession()"] 365a9b09_6546_8b08_3f4d_6e5b90ac257f -->|method| 3b97aa02_cd8f_47ec_c581_509ac9cd7214 51a0baf3_eef8_88d8_8e73_36b27d29b771["initMappers()"] 365a9b09_6546_8b08_3f4d_6e5b90ac257f -->|method| 51a0baf3_eef8_88d8_8e73_36b27d29b771
Relationship Graph
Source Code
drizzle-orm/src/xata-http/driver.ts lines 18–41
export class XataHttpDriver {
static readonly [entityKind]: string = 'XataDriver';
constructor(
private client: XataHttpClient,
private dialect: PgDialect,
private options: XataDriverOptions = {},
) {
this.initMappers();
}
createSession(
schema: RelationalSchemaConfig<TablesRelationalConfig> | undefined,
): XataHttpSession<Record<string, unknown>, TablesRelationalConfig> {
return new XataHttpSession(this.client, this.dialect, schema, {
logger: this.options.logger,
cache: this.options.cache,
});
}
initMappers() {
// TODO: Add custom type parsers
}
}
Domain
Defined In
Source
Frequently Asked Questions
What is the XataHttpDriver class?
XataHttpDriver is a class in the drizzle-orm codebase, defined in drizzle-orm/src/xata-http/driver.ts.
Where is XataHttpDriver defined?
XataHttpDriver is defined in drizzle-orm/src/xata-http/driver.ts at line 18.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free