Home / File/ schema.mjs — drizzle-orm Source File

schema.mjs — drizzle-orm Source File

Architecture documentation for schema.mjs, a javascript file in the drizzle-orm codebase. 3 imports, 11 dependents.

File javascript DrizzleORM 3 imports 11 dependents

Entity Profile

Dependency Diagram

graph LR
  e4c739b3_e11e_733a_6641_870b994a5c87["schema.mjs"]
  93ed9350_daa0_6c21_81a6_ed6b2a48bbdf["mysql-core"]
  e4c739b3_e11e_733a_6641_870b994a5c87 --> 93ed9350_daa0_6c21_81a6_ed6b2a48bbdf
  53497908_16e7_977d_e97d_7414884a88a6["pg-core"]
  e4c739b3_e11e_733a_6641_870b994a5c87 --> 53497908_16e7_977d_e97d_7414884a88a6
  25248a9d_ba06_2b33_4421_8575da2f9c34["sqlite-core"]
  e4c739b3_e11e_733a_6641_870b994a5c87 --> 25248a9d_ba06_2b33_4421_8575da2f9c34
  a06cae8f_8ccf_13e9_bb2f_a4c91fca0bd8["better-sqlite3.test.mjs"]
  a06cae8f_8ccf_13e9_bb2f_a4c91fca0bd8 --> e4c739b3_e11e_733a_6641_870b994a5c87
  1079e539_f99a_fb3b_835d_f9004cd95c53["libsql.test.mjs"]
  1079e539_f99a_fb3b_835d_f9004cd95c53 --> e4c739b3_e11e_733a_6641_870b994a5c87
  c5f5d7cc_98ae_7efb_8f95_d711e22dbb01["mysql2.test.mjs"]
  c5f5d7cc_98ae_7efb_8f95_d711e22dbb01 --> e4c739b3_e11e_733a_6641_870b994a5c87
  9f1fb3ad_9cb1_aa6f_d48e_d6dadc51a095["neon-http.test.mjs"]
  9f1fb3ad_9cb1_aa6f_d48e_d6dadc51a095 --> e4c739b3_e11e_733a_6641_870b994a5c87
  209be995_73d7_2b9b_7115_3bafd953031f["neon-ws.test.mjs"]
  209be995_73d7_2b9b_7115_3bafd953031f --> e4c739b3_e11e_733a_6641_870b994a5c87
  c35e1b4f_2f44_553f_83a3_ded7ddeeb210["node-pg.test.mjs"]
  c35e1b4f_2f44_553f_83a3_ded7ddeeb210 --> e4c739b3_e11e_733a_6641_870b994a5c87
  105b84ca_a8e8_7cf1_b024_28b43df4a36e["pglite.test.mjs"]
  105b84ca_a8e8_7cf1_b024_28b43df4a36e --> e4c739b3_e11e_733a_6641_870b994a5c87
  3c7b9646_0527_2b82_f757_11152e2a9ea8["planetscale.test.mjs"]
  3c7b9646_0527_2b82_f757_11152e2a9ea8 --> e4c739b3_e11e_733a_6641_870b994a5c87
  12b02b8d_82eb_e165_0cad_1dc2bc503eb5["postgres-js.test.mjs"]
  12b02b8d_82eb_e165_0cad_1dc2bc503eb5 --> e4c739b3_e11e_733a_6641_870b994a5c87
  9021f04f_3c1e_ee4e_b98b_c0dfd078e50f["tidb.test.mjs"]
  9021f04f_3c1e_ee4e_b98b_c0dfd078e50f --> e4c739b3_e11e_733a_6641_870b994a5c87
  997dbf1b_7baf_5a03_37fc_ff61757b3260["vercel.test.mjs"]
  997dbf1b_7baf_5a03_37fc_ff61757b3260 --> e4c739b3_e11e_733a_6641_870b994a5c87
  style e4c739b3_e11e_733a_6641_870b994a5c87 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { int as mysqlInt, mysqlTable } from 'drizzle-orm/mysql-core';
import { integer as pgInt, pgTable } from 'drizzle-orm/pg-core';
import { integer as sqliteInt, sqliteTable } from 'drizzle-orm/sqlite-core';

export const sqlite = {
	User: sqliteTable('test', {
		id: sqliteInt('id').primaryKey().notNull(),
	}),
};

export const pg = {
	User: pgTable('test', {
		id: pgInt('id').primaryKey().notNull(),
	}),
};

export const mysql = {
	User: mysqlTable('test', {
		id: mysqlInt('id').primaryKey().notNull(),
	}),
};

Domain

Dependencies

  • mysql-core
  • pg-core
  • sqlite-core

Frequently Asked Questions

What does schema.mjs do?
schema.mjs is a source file in the drizzle-orm codebase, written in javascript. It belongs to the DrizzleORM domain.
What does schema.mjs depend on?
schema.mjs imports 3 module(s): mysql-core, pg-core, sqlite-core.
What files import schema.mjs?
schema.mjs is imported by 11 file(s): better-sqlite3.test.mjs, libsql.test.mjs, mysql2.test.mjs, neon-http.test.mjs, neon-ws.test.mjs, node-pg.test.mjs, pglite.test.mjs, planetscale.test.mjs, and 3 more.
Where is schema.mjs in the architecture?
schema.mjs is located at integration-tests/js-tests/driver-init/module/schema.mjs (domain: DrizzleORM, directory: integration-tests/js-tests/driver-init/module).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free