ORM
This report summarizes scanner evidence for drizzle-team/drizzle-orm, a TypeScript project with 36,184 GitHub stars. SynthScan examined 481,989 lines of code across 1340 source files, recording 608 pattern matches distributed across 4 syntactic categories. The legacy adjusted pattern signal is 0.9 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 597 finding(s).
Are imports declared and package/API names verified? 11 finding(s).
Are wrappers, guards, and repeated structures necessary? 27 finding(s).
Which changes need focused human review? 608 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 608 distinct pattern matches across 4 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | drizzle-kit/tests/cli-generate.test.ts | 1 | import { test as brotest } from '@drizzle-team/brocli'; | COMMENT |
| LOW | drizzle-kit/tests/pg-identity.test.ts | 1 | import { integer, pgSequence, pgTable } from 'drizzle-orm/pg-core'; | COMMENT |
| LOW | drizzle-kit/tests/push/pg.test.ts | 1001 | // async addVectorIndexes() { | COMMENT |
| LOW | drizzle-kit/tests/push/pg.test.ts | 1021 | // .with({ m: 16, ef_construction: 64 }), | COMMENT |
| LOW | drizzle-kit/tests/migrate/libsql-migrate.test.ts | 41 | // const res = await query(`PRAGMA table_info("users");`); | COMMENT |
| LOW | drizzle-kit/src/introspect-gel.ts | 101 | // const mappedTableEntries = Object.entries(val).map((tableEntry) => { | COMMENT |
| LOW | drizzle-kit/src/introspect-gel.ts | 121 | // if (value.name === columnName) { | COMMENT |
| LOW | drizzle-kit/src/introspect-gel.ts | 141 | // relationsConfig.tableNamesMap[relation.referencedTableName].split('.')[1] | COMMENT |
| LOW | drizzle-kit/src/introspect-gel.ts | 161 | // }`, | COMMENT |
| LOW | drizzle-kit/src/introspect-gel.ts | 301 | // Object.values(schema.enums).forEach((it) => { | COMMENT |
| LOW | drizzle-kit/src/introspect-gel.ts | 321 | // const values = Object.values(it.values) | COMMENT |
| LOW | drizzle-kit/src/introspect-gel.ts | 341 | // if (it.increment) { | COMMENT |
| LOW | drizzle-kit/src/introspect-gel.ts | 461 | // : 'gelView'; | COMMENT |
| LOW | drizzle-kit/src/introspect-gel.ts | 881 | COMMENT | |
| LOW | drizzle-kit/src/introspect-gel.ts | 901 | // paramName, | COMMENT |
| LOW | drizzle-kit/src/utils.ts | 81 | }; | COMMENT |
| LOW | drizzle-kit/src/jsonStatements.ts | 2361 | // newDataType: columnType, | COMMENT |
| LOW | drizzle-kit/src/jsonStatements.ts | 2381 | // columnOnUpdate, | COMMENT |
| LOW | drizzle-kit/src/introspect-pg.ts | 1161 | COMMENT | |
| LOW | drizzle-kit/src/introspect-pg.ts | 1181 | // ) | COMMENT |
| LOW | drizzle-kit/src/snapshotsDiffer.ts | 1681 | ); | COMMENT |
| LOW | drizzle-kit/src/serializer/sqliteSerializer.ts | 821 | // } | COMMENT |
| LOW | drizzle-kit/src/serializer/gelSerializer.ts | 201 | // const existingUnique = uniqueConstraintObject[column.uniqueName!]; | COMMENT |
| LOW | drizzle-kit/src/serializer/gelSerializer.ts | 221 | // ) | COMMENT |
| LOW | drizzle-kit/src/serializer/gelSerializer.ts | 281 | // uniqueConstraints?.map((unq) => { | COMMENT |
| LOW | drizzle-kit/src/serializer/gelSerializer.ts | 301 | // // ); | COMMENT |
| LOW | drizzle-kit/src/serializer/gelSerializer.ts | 521 | }); | COMMENT |
| LOW | drizzle-kit/src/serializer/gelSerializer.ts | 541 | // tableName, | COMMENT |
| LOW | drizzle-kit/src/serializer/gelSerializer.ts | 1041 | COMMENT | |
| LOW | drizzle-kit/src/serializer/gelSerializer.ts | 1061 | // FROM pg_class | COMMENT |
| LOW | drizzle-kit/src/serializer/gelSerializer.ts | 1161 | // const constraintName: string = unqs.constraint_name; | COMMENT |
| LOW | drizzle-kit/src/serializer/gelSerializer.ts | 1221 | // const tableCompositePkName = await db.query( | COMMENT |
| LOW | drizzle-kit/src/cli/commands/introspect.ts | 241 | const schemaFile = join(out, 'schema.ts'); | COMMENT |
| LOW | drizzle-kit/src/cli/commands/introspect.ts | 261 | // viewsResolver, | COMMENT |
| LOW | drizzle-kit/src/cli/commands/pgPushUtils.ts | 1 | import chalk from 'chalk'; | COMMENT |
| LOW | drizzle-kit/src/cli/commands/pgPushUtils.ts | 21 | // if ( | COMMENT |
| LOW | drizzle-kit/src/cli/commands/singlestorePushUtils.ts | 61 | // ) as JsonAlterColumnTypeStatement; | COMMENT |
| LOW | drizzle-arktype/tests/singlestore.test.ts | 81 | // const view = mysqlView('test').as((qb) => qb.select({ id: table.id, age: sql``.as('age') }).from(table)); | COMMENT |
| LOW | drizzle-arktype/tests/singlestore.test.ts | 101 | // test('view with nested fields - select', (t) => { | COMMENT |
| LOW | drizzle-arktype/tests/singlestore.test.ts | 281 | // c6: int(), | COMMENT |
| LOW | drizzle-arktype/tests/singlestore.test.ts | 301 | // c5: (schema) => v.pipe(schema, v.maxValue(1000)), | COMMENT |
| LOW | drizzle-arktype/tests/singlestore.test.ts | 481 | } | COMMENT |
| LOW | drizzle-arktype/tests/singlestore.test.ts | 501 | // // @ts-expect-error | COMMENT |
| LOW | drizzle-valibot/tests/singlestore.test.ts | 81 | Expect<Equal<typeof result, typeof expected>>(); | COMMENT |
| LOW | drizzle-valibot/tests/singlestore.test.ts | 101 | // id: serial().primaryKey(), | COMMENT |
| LOW | drizzle-valibot/tests/singlestore.test.ts | 121 | // age: sql``.as('age'), | COMMENT |
| LOW | drizzle-valibot/tests/singlestore.test.ts | 281 | Expect<Equal<typeof result, typeof expected>>(); | COMMENT |
| LOW | drizzle-valibot/tests/singlestore.test.ts | 301 | // c6: table.c6, | COMMENT |
| LOW | drizzle-valibot/tests/singlestore.test.ts | 321 | // c2: v.nullable(v.pipe(intSchema, v.maxValue(1000))), | COMMENT |
| LOW | drizzle-valibot/tests/singlestore.test.ts | 501 | // const view = mysqlView('test').as((qb) => qb.select().from(table)); | COMMENT |
| LOW | integration-tests/sst-env.d.ts | 1 | // eslint-disable-next-line @typescript-eslint/triple-slash-reference | COMMENT |
| LOW | integration-tests/tests/awsdatapi.alltypes.test.ts | 1 | /* eslint-disable unicorn/no-empty-file */ | COMMENT |
| LOW | integration-tests/tests/awsdatapi.alltypes.test.ts | 21 | // jsonb, | COMMENT |
| LOW | integration-tests/tests/awsdatapi.alltypes.test.ts | 41 | // numeric: numeric('numeric'), | COMMENT |
| LOW | integration-tests/tests/awsdatapi.alltypes.test.ts | 61 | // realdef: real('realdef').default(100), | COMMENT |
| LOW | integration-tests/tests/awsdatapi.alltypes.test.ts | 81 | // } | COMMENT |
| LOW | integration-tests/tests/awsdatapi.alltypes.test.ts | 101 | // }); | COMMENT |
| LOW | integration-tests/tests/awsdatapi.alltypes.test.ts | 121 | // "varchardef" varchar DEFAULT 'text', | COMMENT |
| LOW | integration-tests/tests/awsdatapi.alltypes.test.ts | 141 | // "timestampdef" timestamp DEFAULT now(), | COMMENT |
| LOW | integration-tests/tests/awsdatapi.alltypes.test.ts | 161 | // bigserial: 63473487, | COMMENT |
| 507 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | drizzle-kit/tests/schemaDiffer.ts | 1940 | export async function diffTestSchemasPushLibSQL( | CODE |
| LOW | drizzle-kit/src/serializer/sqliteSerializer.ts | 498 | function filterIgnoredTablesByField(fieldName: string) { | CODE |
| LOW⚡ | drizzle-kit/src/serializer/gelSerializer.ts | 44 | function stringFromIdentityProperty(field: string | number | undefined): string | undefined { | CODE |
| LOW⚡ | drizzle-kit/src/serializer/gelSerializer.ts | 48 | function maxRangeForIdentityBasedOn(columnType: string) { | CODE |
| LOW⚡ | drizzle-kit/src/serializer/gelSerializer.ts | 52 | function minRangeForIdentityBasedOn(columnType: string) { | CODE |
| LOW⚡ | drizzle-kit/src/serializer/gelSerializer.ts | 56 | function stringFromDatabaseIdentityProperty(field: any): string | undefined { | CODE |
| LOW⚡ | drizzle-kit/src/serializer/pgSerializer.ts | 50 | function stringFromIdentityProperty(field: string | number | undefined): string | undefined { | CODE |
| LOW⚡ | drizzle-kit/src/serializer/pgSerializer.ts | 54 | function maxRangeForIdentityBasedOn(columnType: string) { | CODE |
| LOW⚡ | drizzle-kit/src/serializer/pgSerializer.ts | 58 | function minRangeForIdentityBasedOn(columnType: string) { | CODE |
| LOW⚡ | drizzle-kit/src/serializer/pgSerializer.ts | 62 | function stringFromDatabaseIdentityProperty(field: any): string | undefined { | CODE |
| LOW | drizzle-kit/src/cli/commands/migrate.ts | 589 | function singleStoreSchemaSuggestions( | CODE |
| LOW | drizzle-kit/src/cli/commands/singlestorePushUtils.ts | 109 | export function findColumnTypeAlternations( | CODE |
| LOW | integration-tests/tests/mysql-returning.test.ts | 133 | async function setupReturningFunctionsTest(db: MySql2Database) { | CODE |
| LOW | integration-tests/tests/sqlite/sqlite-common.ts | 318 | async function setupAggregateFunctionsTest(db: BaseSQLiteDatabase<any, any>) { | CODE |
| LOW | integration-tests/tests/sqlite/durable-objects/index.ts | 168 | async function setupAggregateFunctionsTest(db: BaseSQLiteDatabase<any, any>) { | CODE |
| LOW | integration-tests/tests/bun/bun-sql.test.ts | 562 | async function setupAggregateFunctionsTest(db: PgDatabase<PgQueryResultHKT>) { | CODE |
| LOW | integration-tests/tests/pg/pg-common.ts | 581 | async function setupAggregateFunctionsTest(db: PgDatabase<PgQueryResultHKT>) { | CODE |
| LOW | integration-tests/tests/mysql/mysql-common.ts | 394 | async function setupReturningFunctionsTest(db: MySqlDatabase<any, any>) { | CODE |
| LOW | integration-tests/tests/mysql/mysql-common.ts | 446 | async function setupAggregateFunctionsTest(db: TestMySQLDB) { | CODE |
| LOW | integration-tests/tests/gel/gel.test.ts | 633 | async function setupAggregateFunctionsTest(db: GelJsDatabase) { | CODE |
| LOW | …egration-tests/tests/singlestore/singlestore-common.ts | 381 | async function setupReturningFunctionsTest( | CODE |
| LOW | …egration-tests/tests/singlestore/singlestore-common.ts | 435 | async function setupAggregateFunctionsTest(db: TestSingleStoreDB) { | CODE |
| LOW | drizzle-orm/src/alias.ts | 109 | export function mapColumnsInAliasedSQLToAlias(query: SQL.Aliased, alias: string): SQL.Aliased { | CODE |
| LOW | drizzle-orm/src/pg-core/view.ts | 397 | export function pgMaterializedViewWithSchema( | CODE |
| LOW | drizzle-orm/src/gel-core/view.ts | 397 | export function gelMaterializedViewWithSchema( | CODE |
| LOW | drizzle-orm/src/singlestore-core/view.ts | 188 | // export function singlestoreViewWithSchema( | COMMENT |
| LOW | drizzle-orm/src/singlestore-core/columns/all.ts | 27 | export function getSingleStoreColumnBuilders() { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | drizzle-arktype/README.md | 47 | name: 'John Doe', | CODE |
| LOW | drizzle-valibot/README.md | 47 | name: 'John Doe', | CODE |
| LOW | drizzle-zod/README.md | 58 | name: 'John Doe', | CODE |
| LOW | changelogs/drizzle-arktype/0.1.2.md | 47 | name: 'John Doe', | CODE |
| LOW | drizzle-seed/src/datasets/loremIpsumSentences.ts | 5 | 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', | CODE |
| LOW | drizzle-seed/src/datasets/loremIpsumSentences.ts | 5 | 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', | CODE |
| LOW | drizzle-seed/src/datasets/loremIpsumSentences.ts | 679 | 'Vivamus scelerisque dolor sit amet erat dapibus consectetur.', | CODE |
| LOW | drizzle-seed/src/datasets/loremIpsumSentences.ts | 1346 | 'Integer sagittis dolor sit amet velit mollis, quis sodales odio sollicitudin.', | CODE |
| LOW | drizzle-seed/src/services/GeneratorFuncs.ts | 651 | * generates 'lorem ipsum' text sentences. | COMMENT |
| LOW | drizzle-seed/src/services/Generators.ts | 2788 | `You can't use lorem ipsum generator with a db column length restriction of ${this.stringLength}. Set the maximum st | CODE |
| LOW | drizzle-typebox/README.md | 48 | name: 'John Doe', | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | drizzle-kit/tests/push/singlestore.test.ts | 298 | // TODO: implement if needed | COMMENT |
| LOW | drizzle-kit/tests/push/pg.test.ts | 1047 | // TODO: implement if needed | COMMENT |
| LOW | drizzle-kit/tests/push/mysql.test.ts | 310 | // TODO: implement if needed | COMMENT |