TypeScript & JavaScript ORM for Node.js — supports PostgreSQL, MySQL, MariaDB, SQLite, SQL Server, Oracle, and more.
351 matches across 6 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | test/github-issues/4719/issue-4719.test.ts | 42 | loadedPost.hstoreObj.should.be.deep.equal({ |
| CRITICAL | test/github-issues/4719/issue-4719.test.ts | 68 | loadedPost.hstoreObj.should.be.deep.equal({ |
| CRITICAL | test/github-issues/306/issue-306.test.ts | 45 | loadedRace.duration.durationDays.should.be.equal(1) |
| CRITICAL | test/github-issues/306/issue-306.test.ts | 46 | loadedRace.duration.durationHours.should.be.equal(10) |
| CRITICAL | test/github-issues/306/issue-306.test.ts | 47 | loadedRace.duration.durationMinutes.should.be.equal(30) |
| CRITICAL | test/github-issues/620/issue-620.test.ts | 40 | loadedCat.dog.DogID.should.be.equal("Simba") |
| CRITICAL | test/github-issues/2779/issue-2779.test.ts | 41 | post.roles.should.be.deep.equal(targetValue) |
| CRITICAL | test/github-issues/2779/issue-2779.test.ts | 50 | loadedPost.roles.should.be.deep.equal(targetValue) |
| CRITICAL | test/github-issues/1960/issue-1960.test.ts | 27 | sqlInMemory.upQueries.length.should.be.equal(0) |
| CRITICAL | test/github-issues/3120/issue-3120.test.ts | 133 | loadedLog.person.name.should.be.equal("Test Person #1") |
| CRITICAL | test/github-issues/3120/issue-3120.test.ts | 134 | loadedLog.actionDetails.description.should.be.equal( |
| CRITICAL | test/github-issues/3120/issue-3120.test.ts | 137 | loadedLog.addresses.length.should.be.equal(3) |
| CRITICAL | test/github-issues/9272/issue-9272.test.ts | 82 | user.address.latLong.should.not.haveOwnProperty("longitude") |
| CRITICAL | test/github-issues/9272/issue-9272.test.ts | 84 | user.address.latLong.latitude.should.equal(-23) |
| CRITICAL | test/github-issues/7521/issue-7521.test.ts | 27 | sqlInMemory.upQueries.length.should.be.greaterThan(0) |
| CRITICAL | test/github-issues/7521/issue-7521.test.ts | 28 | sqlInMemory.downQueries.length.should.be.greaterThan(0) |
| CRITICAL | test/github-issues/7521/issue-7521.test.ts | 39 | sqlInMemory.upQueries.length.should.be.equal(0) |
| CRITICAL | test/github-issues/7521/issue-7521.test.ts | 40 | sqlInMemory.downQueries.length.should.be.equal(0) |
| CRITICAL | test/github-issues/2044/issue-2044.test.ts | 45 | resultPhoto.user.id.should.be.eql(userId) |
| CRITICAL | test/github-issues/7541/issue-7541.test.ts | 27 | sqlInMemory.upQueries.length.should.be.greaterThan(0) |
| CRITICAL | test/github-issues/7541/issue-7541.test.ts | 28 | sqlInMemory.downQueries.length.should.be.greaterThan(0) |
| CRITICAL | test/github-issues/7541/issue-7541.test.ts | 39 | sqlInMemory.upQueries.length.should.be.equal(0) |
| CRITICAL | test/github-issues/7541/issue-7541.test.ts | 40 | sqlInMemory.downQueries.length.should.be.equal(0) |
| CRITICAL | …onal/repository/increment/repository-increment.test.ts | 279 | loadedUser.friend.sent.should.be.equal(5) |
| CRITICAL | …onal/repository/decrement/repository-decrement.test.ts | 279 | loadedUser.friend.sent.should.be.equal(-15) |
| CRITICAL | …-relations/repository-set-add-remove-relations.test.ts | 159 | loadedPost.manyCategories.length.should.be.equal(1) |
| CRITICAL | …-relations/repository-set-add-remove-relations.test.ts | 206 | loadedCategory.manyPosts.length.should.be.equal(1) |
| CRITICAL | …tions/basic-lazy-relation/basic-lazy-relations.test.ts | 59 | await savedPost.categories.should.eventually.be.eql([ |
| CRITICAL | …tions/basic-lazy-relation/basic-lazy-relations.test.ts | 105 | await savedPost.twoSideCategories.should.eventually.be.eql([ |
| CRITICAL | …tions/basic-lazy-relation/basic-lazy-relations.test.ts | 152 | await newUser.profile.should.eventually.be.eql(profile) |
| CRITICAL | …olumns/named-tables-and-columns-lazy-relations.test.ts | 50 | await savedPost.categories.should.eventually.be.eql([ |
| CRITICAL | …olumns/named-tables-and-columns-lazy-relations.test.ts | 98 | await savedPost.twoSideCategories.should.eventually.be.eql([ |
| CRITICAL | …tions/named-tables/named-tables-lazy-relations.test.ts | 50 | await savedPost.categories.should.eventually.be.eql([ |
| CRITICAL | …tions/named-tables/named-tables-lazy-relations.test.ts | 98 | await savedPost.twoSideCategories.should.eventually.be.eql([ |
| CRITICAL | …ons/named-columns/named-columns-lazy-relations.test.ts | 50 | await savedPost.categories.should.eventually.be.eql([ |
| CRITICAL | …ons/named-columns/named-columns-lazy-relations.test.ts | 96 | await savedPost.twoSideCategories.should.eventually.be.eql([ |
| CRITICAL | …nce/single-table/no-type-column/no-type-column.test.ts | 60 | postIt.owner.should.be.an.instanceOf(Employee) |
| CRITICAL | …nce/single-table/no-type-column/no-type-column.test.ts | 61 | postIt.owner.name.should.be.equal("alicefoo") |
| CRITICAL | …nce/single-table/no-type-column/no-type-column.test.ts | 62 | postIt.owner.employeeName.should.be.equal("Alice Foo") |
| CRITICAL | …nce/single-table/no-type-column/no-type-column.test.ts | 68 | sticky.owner.should.be.an.instanceOf(Author) |
| CRITICAL | …nce/single-table/no-type-column/no-type-column.test.ts | 69 | sticky.owner.name.should.be.equal("bobbar") |
| CRITICAL | …nce/single-table/no-type-column/no-type-column.test.ts | 70 | sticky.owner.authorName.should.be.equal("Bob Bar") |
| CRITICAL | …/repository-actions/mongodb-repository-actions.test.ts | 95 | mergedPost.counters.likes.should.be.equal(2) |
| CRITICAL | …/repository-actions/mongodb-repository-actions.test.ts | 96 | mergedPost.counters.viewer.name.should.be.equal("Hello World") |
| CRITICAL | …godb/basic/array-columns/mongodb-array-columns.test.ts | 52 | loadedPost.other1.length.should.be.equal(0) |
| CRITICAL | …asic/embedded-columns/mongodb-embedded-columns.test.ts | 53 | loadedPost.counters.likes.should.be.equal(5) |
| CRITICAL | …asic/embedded-columns/mongodb-embedded-columns.test.ts | 54 | loadedPost.counters.comments.should.be.equal(1) |
| CRITICAL | …asic/embedded-columns/mongodb-embedded-columns.test.ts | 55 | loadedPost.counters.favorites.should.be.equal(10) |
| CRITICAL | …asic/embedded-columns/mongodb-embedded-columns.test.ts | 56 | loadedPost.counters.information.should.be.instanceOf( |
| CRITICAL | …asic/embedded-columns/mongodb-embedded-columns.test.ts | 59 | loadedPost.counters.information.description.should.be.equal( |
| CRITICAL | …asic/embedded-columns/mongodb-embedded-columns.test.ts | 78 | loadedUpdatedPost.counters.likes.should.be.equal(5) |
| CRITICAL | …asic/embedded-columns/mongodb-embedded-columns.test.ts | 79 | loadedUpdatedPost.counters.comments.should.be.equal(2) |
| CRITICAL | …asic/embedded-columns/mongodb-embedded-columns.test.ts | 80 | loadedUpdatedPost.counters.favorites.should.be.equal(10) |
| CRITICAL | …asic/embedded-columns/mongodb-embedded-columns.test.ts | 81 | loadedUpdatedPost.counters.information.should.be.instanceOf( |
| CRITICAL | …asic/embedded-columns/mongodb-embedded-columns.test.ts | 84 | loadedUpdatedPost.counters.information.description.should.be.equal( |
| CRITICAL | …asic/embedded-columns/mongodb-embedded-columns.test.ts | 123 | loadedPost.counters.likes.should.be.eql(5) |
| CRITICAL | …asic/embedded-columns/mongodb-embedded-columns.test.ts | 124 | loadedPost.counters.comments.should.be.eql(1) |
| CRITICAL | …asic/embedded-columns/mongodb-embedded-columns.test.ts | 125 | loadedPost.counters.favorites.should.be.eql(10) |
| CRITICAL | …asic/embedded-columns/mongodb-embedded-columns.test.ts | 126 | loadedPost.counters.information.description.should.be.eql( |
| CRITICAL | …asic/embedded-columns/mongodb-embedded-columns.test.ts | 155 | loadedPosts[0]!.counters.information.visible.should.be.equal( |
| 210 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/github-issues/3118/issue-3118.test.ts | 81 | relations: { |
| LOW | extra/typeorm-class-transformer-shim.js | 1 | // this "shim" can be used on the frontend to make class-transformer to work with typeorm models automatically |
| LOW | extra/typeorm-model-shim.js | 1 | // this "shim" can be used on the frontend to prevent from errors on undefined |
| LOW | packages/codemod/src/transforms/ast-helpers.ts | 501 | ) |
| LOW | …/codemod/src/transforms/v1/connection-to-datasource.ts | 661 | // on parameters typed with those options. |
| LOW | .github/workflows/publish-package.yml | 1 | # Publishing strategy: |
| LOW | src/metadata-builder/EntityMetadataValidator.ts | 241 | } |
| LOW | src/driver/react-native/ReactNativeDriver.ts | 861 | |
| LOW | src/driver/react-native/ReactNativeDriver.ts | 881 | // "precision:", |
| LOW | src/driver/react-native/ReactNativeDriver.ts | 901 | // console.log( |
| LOW | src/driver/oracle/OracleDriver.ts | 901 | // tableColumn.name, |
| LOW | src/driver/oracle/OracleDriver.ts | 921 | // "comment:", |
| LOW | src/driver/oracle/OracleDriver.ts | 941 | // tableColumn.onUpdate, |
| LOW | src/driver/oracle/OracleDriver.ts | 961 | // tableColumn.generatedType, |
| LOW | src/driver/expo/ExpoDriver.ts | 1 | import type { DataSource } from "../../data-source/DataSource" |
| LOW | src/driver/postgres/PostgresDriver.ts | 1521 | // if (isColumnChanged) { |
| LOW | src/driver/postgres/PostgresDriver.ts | 1541 | // columnMetadata.isArray, |
| LOW | src/driver/postgres/PostgresDriver.ts | 1561 | // tableColumn.enum && |
| LOW | src/driver/postgres/PostgresDriver.ts | 1581 | // this.normalizeIsUnique(columnMetadata), |
| LOW | src/driver/postgres/PostgresDriver.ts | 1601 | // columnMetadata.collation, |
| LOW | src/driver/mysql/MysqlDriver.ts | 361 | // if (!(this.options.host || (this.options.extra && this.options.extra.socketPath)) && !this.options.socketPath |
| LOW | src/driver/mysql/MysqlQueryRunner.ts | 2601 | // Short Version: |
| LOW | src/driver/sqlserver/SqlServerDriver.ts | 301 | this.options.replication |
| LOW | src/driver/sqlserver/SqlServerDriver.ts | 921 | // "type:", |
| LOW | src/driver/sqlserver/SqlServerDriver.ts | 941 | // columnMetadata.isGenerated, |
| LOW | src/driver/sqlserver/SqlServerDriver.ts | 961 | // columnMetadata.isNullable, |
| LOW | src/driver/spanner/SpannerDriver.ts | 721 | // columnMetadata.databaseName, |
| LOW | src/driver/spanner/SpannerDriver.ts | 741 | // columnMetadata.generatedType, |
| LOW | src/driver/spanner/SpannerQueryRunner.ts | 1841 | // const hasTable = await this.hasTable(this.getTypeormMetadataTableName()) |
| LOW | src/driver/spanner/SpannerQueryRunner.ts | 1861 | // ? ` AND \`T\`.\`NAME\` IN (${escapedViewNames})` |
| LOW | src/driver/cockroachdb/CockroachDriver.ts | 301 | ).database |
| LOW | src/persistence/SubjectExecutor.ts | 921 | }) |
| LOW | …ersistence/subject-builder/ManyToManySubjectBuilder.ts | 141 | const relatedEntitySubject = this.subjects.find((subject) => { |
| LOW | …e/subject-builder/OneToOneInverseSideSubjectBuilder.ts | 121 | operateSubject.entity === relatedEntity |
| LOW | src/query-builder/InsertQueryBuilder.ts | 1541 | if (column.isVersion && value === undefined) { |
| LOW | src/query-builder/SelectQueryBuilder.ts | 3241 | // if (join.select) { |
| LOW | src/query-builder/SelectQueryBuilder.ts | 4201 | // // this is not building correctly now??? |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/benchmark/bulk-save-case2/bulk-save-case2.test.ts | 31 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vel faucibus nunc. Etiam volu |
| LOW | test/benchmark/bulk-save-case2/bulk-save-case2.test.ts | 31 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vel faucibus nunc. Etiam volu |
| LOW | …/bulk-save-querybuilder/bulk-save-querybuilder.test.ts | 31 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vel faucibus nunc. Etiam volu |
| LOW | …/bulk-save-querybuilder/bulk-save-querybuilder.test.ts | 31 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vel faucibus nunc. Etiam volu |
| LOW | test/github-issues/1123/issue-1123.test.ts | 29 | author.name = "Jane Doe" |
| LOW | test/github-issues/1123/issue-1123.test.ts | 55 | name: "Jane Doe", |
| LOW | test/github-issues/10569/issue-10569.test.ts | 31 | name: "John Doe", |
| LOW | test/github-issues/2128/issue-2128.test.ts | 38 | author: "John Doe", |
| LOW | test/github-issues/2128/issue-2128.test.ts | 60 | author: "John Doe", |
| LOW | test/github-issues/4106/issue-4106.test.ts | 28 | human.name = "Jane Doe" |
| LOW | test/github-issues/1416/issue-1416.test.ts | 44 | photoAuthor.name = "John Doe" |
| LOW | test/github-issues/215/issue-215.test.ts | 27 | author.name = "John Doe" |
| LOW | test/github-issues/3416/issue-3416.test.ts | 31 | unknownProp: "John Doe", |
| LOW | test/github-issues/1308/issue-1308.test.ts | 30 | author.name = "Jane Doe" |
| LOW | test/github-issues/1308/issue-1308.test.ts | 42 | .set({ name: "John Doe" }) |
| LOW | test/github-issues/1308/issue-1308.test.ts | 51 | .set({ name: "John Doe" }) |
| LOW | test/github-issues/1308/issue-1308.test.ts | 52 | .where("name = :name", { name: "Jane Doe" }) |
| LOW | test/github-issues/4156/issue-4156.test.ts | 29 | author.name = "Jane Doe" |
| LOW | …ns/repository-aggregate-methods-with-relations.test.ts | 220 | name: "John Doe", |
| LOW | …ns/repository-aggregate-methods-with-relations.test.ts | 234 | author: { id: author1.id, name: "John Doe" }, |
| LOW | test/functional/data-source/data-source.test.ts | 436 | address: "123 Main St", |
| LOW | test/functional/query-runner/async-dispose.test.ts | 49 | await queryRunner.sql`INSERT INTO "employee"("name", "companyId") VALUES ('John Doe', 100)` |
| LOW | …onal/query-builder/update/query-builder-update.test.ts | 306 | .set({ name: "John Doe" } as any) |
| LOW | …onal/query-builder/delete/query-builder-delete.test.ts | 124 | user1.name = "John Doe" |
| LOW | …onal/query-builder/delete/query-builder-delete.test.ts | 126 | user2.name = "Jane Doe" |
| LOW | docs/docs/guides/6-sequelize-migration.md | 239 | name: "John Doe", |
| LOW | docs/docs/guides/6-sequelize-migration.md | 248 | employee.name = "John Doe" |
| LOW | docs/docs/guides/6-sequelize-migration.md | 256 | const employee = Employee.create({ name: "John Doe", title: "senior engineer" }) |
| LOW | docs/docs/guides/6-sequelize-migration.md | 263 | const employee = await Employee.preload({ id: 1, name: "John Doe" }) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | …epository/find-methods/repostiory-find-methods.test.ts | 159 | it("should return True when matches the given criteria", () => |
| HIGH | …epository/find-methods/repostiory-find-methods.test.ts | 180 | it("should return True when matches the given multiple criteria", () => |
| HIGH | …epository/find-methods/repostiory-find-methods.test.ts | 202 | it("should return True when matches the given find options", () => |
| HIGH | …epository/find-methods/repostiory-find-methods.test.ts | 223 | it("should return True when matches both criteria and find options", () => |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/utils/test-utils.ts | 174 | export function setupSingleTestingConnection( |
| LOW | test/utils/test-utils.ts | 533 | export async function createTypeormMetadataTable( |
| LOW | test/github-issues/8444/issue-8444.test.ts | 13 | async function bootstrapWithoutEntitySkipConstructor(): Promise< |
| LOW | test/functional/driver/MongoDriver.test.ts | 8 | async function getConnectionUrlFromFakedMongoClient( |
| LOW | …mod/src/transforms/v1/find-options-string-relations.ts | 46 | function convertRelationsArrayToObject(values: string[]): NestedObject { |
| LOW | src/util/DirectoryExportedClassesLoader.ts | 15 | export async function importClassesFromDirectories( |
| LOW | src/driver/mongodb/bson.typings.ts | 1590 | export declare function serializeWithBufferAndIndex(object: Document, finalBuffer: Uint8Array, options?: SerializeOption |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | src/driver/sqlite-abstract/AbstractSqliteQueryRunner.ts | 2320 | // Step 1: clear data for removed generated columns |
| LOW | src/driver/sqlite-abstract/AbstractSqliteQueryRunner.ts | 2354 | // Step 2: add data for new generated columns |
| LOW | src/driver/sqlite-abstract/AbstractSqliteQueryRunner.ts | 2380 | // Step 3: update changed expressions |
| LOW | …e/subject-builder/OneToOneInverseSideSubjectBuilder.ts | 84 | // if related entity is null then we need to check if there a bind in the database and unset it |