test.ts — drizzle-orm Source File
Architecture documentation for test.ts, a typescript file in the drizzle-orm codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 94db5090_a6bd_befc_87b8_d179cb312771["test.ts"] d4256625_44d5_2d93_2cdd_0ef51d6aa530["singlestore"] 94db5090_a6bd_befc_87b8_d179cb312771 --> d4256625_44d5_2d93_2cdd_0ef51d6aa530 b3aa1046_b648_2c35_c144_8b56a8dcf94a["singlestore-core"] 94db5090_a6bd_befc_87b8_d179cb312771 --> b3aa1046_b648_2c35_c144_8b56a8dcf94a style 94db5090_a6bd_befc_87b8_d179cb312771 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { drizzle } from '~/singlestore';
import { singlestoreTable, text } from '~/singlestore-core';
export const test = singlestoreTable(
'test',
{
id: text('id')
.primaryKey()
.generatedAlwaysAs('genstr'),
name: text('name').$defaultFn(() => '' as string),
title: text('title').notNull(),
description: text('description'),
dbdef: text('dbdef').default('dbdefval'),
},
);
const db = drizzle.mock();
// Enable after `.generatedAlwaysAs()` is implemented
// db.update(test)
// .set({
// // @ts-expect-error
// id: '1',
// name: 'name',
// title: 'title',
// description: 'desc',
// dbdef: 'upddef',
// });
db.update(test)
.set({
name: 'name',
title: 'title',
description: 'desc',
dbdef: 'upddef',
});
// Enable after `.generatedAlwaysAs()` is implemented
// db.insert(test).values({
// // @ts-expect-error
// id: '1',
// name: 'name',
// title: 'title',
// description: 'desc',
// dbdef: 'upddef',
// });
db.insert(test).values({
name: 'name',
title: 'title',
description: 'desc',
dbdef: 'upddef',
});
db.insert(test).values({
title: 'title',
description: 'desc',
dbdef: 'upddef',
});
db.insert(test).values({
title: 'title',
description: 'desc',
});
db.insert(test).values({
title: 'title',
});
Dependencies
- singlestore
- singlestore-core
Source
Frequently Asked Questions
What does test.ts do?
test.ts is a source file in the drizzle-orm codebase, written in typescript.
What does test.ts depend on?
test.ts imports 2 module(s): singlestore, singlestore-core.
Where is test.ts in the architecture?
test.ts is located at drizzle-orm/type-tests/singlestore/no-strict-null-checks/test.ts (directory: drizzle-orm/type-tests/singlestore/no-strict-null-checks).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free