awsdatapi.test.ts — drizzle-orm Source File
Architecture documentation for awsdatapi.test.ts, a typescript file in the drizzle-orm codebase. 12 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 18f289ce_0f7f_41d3_f858_a0f98f1a1891["awsdatapi.test.ts"] 1629628e_4eff_9b20_42a3_684d2771ecf7["utils.ts"] 18f289ce_0f7f_41d3_f858_a0f98f1a1891 --> 1629628e_4eff_9b20_42a3_684d2771ecf7 f44cc001_336d_d177_0f4d_5103dadf358b["Expect"] 18f289ce_0f7f_41d3_f858_a0f98f1a1891 --> f44cc001_336d_d177_0f4d_5103dadf358b 0d17688e_16e2_dbce_eea7_1d47fb0a9130["randomString"] 18f289ce_0f7f_41d3_f858_a0f98f1a1891 --> 0d17688e_16e2_dbce_eea7_1d47fb0a9130 c440e00a_e318_94ac_100c_9843a182c7a4["config"] 18f289ce_0f7f_41d3_f858_a0f98f1a1891 --> c440e00a_e318_94ac_100c_9843a182c7a4 c1888528_22f2_78cd_a2b9_80fc9f29b8f3["client-rds-data"] 18f289ce_0f7f_41d3_f858_a0f98f1a1891 --> c1888528_22f2_78cd_a2b9_80fc9f29b8f3 e15e5bca_6b95_d693_cc25_71abe0213496["dotenv"] 18f289ce_0f7f_41d3_f858_a0f98f1a1891 --> e15e5bca_6b95_d693_cc25_71abe0213496 690f7dfc_0aea_9ee8_d6e7_26bbb3689031["drizzle-orm"] 18f289ce_0f7f_41d3_f858_a0f98f1a1891 --> 690f7dfc_0aea_9ee8_d6e7_26bbb3689031 f64275c6_f28f_0135_0800_987b56952a6f["pg"] 18f289ce_0f7f_41d3_f858_a0f98f1a1891 --> f64275c6_f28f_0135_0800_987b56952a6f ca74038d_03d2_cb14_358a_8a677c7d002c["migrator"] 18f289ce_0f7f_41d3_f858_a0f98f1a1891 --> ca74038d_03d2_cb14_358a_8a677c7d002c 53497908_16e7_977d_e97d_7414884a88a6["pg-core"] 18f289ce_0f7f_41d3_f858_a0f98f1a1891 --> 53497908_16e7_977d_e97d_7414884a88a6 e272cbb5_cfe1_fe03_577f_09e05b2a89a1["sst"] 18f289ce_0f7f_41d3_f858_a0f98f1a1891 --> e272cbb5_cfe1_fe03_577f_09e05b2a89a1 8d35eaf2_a542_cfd4_fa1a_fafca0f02686["vitest"] 18f289ce_0f7f_41d3_f858_a0f98f1a1891 --> 8d35eaf2_a542_cfd4_fa1a_fafca0f02686 style 18f289ce_0f7f_41d3_f858_a0f98f1a1891 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import 'dotenv/config';
import { RDSDataClient } from '@aws-sdk/client-rds-data';
import * as dotenv from 'dotenv';
import { asc, eq, inArray, notInArray, relations, sql, TransactionRollbackError } from 'drizzle-orm';
import type { AwsDataApiPgDatabase } from 'drizzle-orm/aws-data-api/pg';
import { drizzle } from 'drizzle-orm/aws-data-api/pg';
import { migrate } from 'drizzle-orm/aws-data-api/pg/migrator';
import {
alias,
boolean,
date,
integer,
jsonb,
pgTable,
pgTableCreator,
serial,
text,
time,
timestamp,
uuid,
} from 'drizzle-orm/pg-core';
import { Resource } from 'sst';
import { afterAll, beforeAll, beforeEach, expect, expectTypeOf, test } from 'vitest';
import type { Equal } from '../utils.ts';
import { Expect, randomString } from '../utils.ts';
dotenv.config();
const ENABLE_LOGGING = false;
const usersTable = pgTable('users', {
id: serial('id').primaryKey(),
name: text('name').notNull(),
verified: boolean('verified').notNull().default(false),
jsonb: jsonb('jsonb').$type<string[]>(),
bestTexts: text('best_texts')
.array()
.default(sql`'{}'`)
.notNull(),
createdAt: timestamp('created_at', { withTimezone: true })
.notNull()
.defaultNow(),
});
const usersMigratorTable = pgTable('users12', {
id: serial('id').primaryKey(),
name: text('name').notNull(),
email: text('email').notNull(),
});
const todo = pgTable('todo', {
id: uuid('id').primaryKey(),
title: text('title').notNull(),
description: text('description'),
});
const todoRelations = relations(todo, (ctx) => ({
user: ctx.many(todoUser),
// ... (1560 more lines)
Domain
Subdomains
Dependencies
- Expect
- client-rds-data
- config
- dotenv
- drizzle-orm
- migrator
- pg
- pg-core
- randomString
- sst
- utils.ts
- vitest
Source
Frequently Asked Questions
What does awsdatapi.test.ts do?
awsdatapi.test.ts is a source file in the drizzle-orm codebase, written in typescript. It belongs to the DrizzleORM domain, DatabaseDrivers subdomain.
What functions are defined in awsdatapi.test.ts?
awsdatapi.test.ts defines 3 function(s): todoRelations, todoToGroupRelations, userRelations.
What does awsdatapi.test.ts depend on?
awsdatapi.test.ts imports 12 module(s): Expect, client-rds-data, config, dotenv, drizzle-orm, migrator, pg, pg-core, and 4 more.
Where is awsdatapi.test.ts in the architecture?
awsdatapi.test.ts is located at integration-tests/tests/pg/awsdatapi.test.ts (domain: DrizzleORM, subdomain: DatabaseDrivers, directory: integration-tests/tests/pg).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free