• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

typeorm / typeorm / 15089093306

17 May 2025 09:03PM UTC coverage: 50.109% (-26.2%) from 76.346%
15089093306

Pull #11437

github

naorpeled
add comment about vector <#>
Pull Request #11437: feat(postgres): support vector data type

5836 of 12767 branches covered (45.71%)

Branch coverage included in aggregate %.

16 of 17 new or added lines in 4 files covered. (94.12%)

6283 existing lines in 64 files now uncovered.

12600 of 24025 relevant lines covered (52.45%)

28708.0 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

81.82
/src/entity-manager/EntityManagerFactory.ts
1
import { DataSource } from "../data-source/DataSource"
2
import { EntityManager } from "./EntityManager"
6✔
3
import { MongoEntityManager } from "./MongoEntityManager"
6✔
4
import { SqljsEntityManager } from "./SqljsEntityManager"
6✔
5
import { QueryRunner } from "../query-runner/QueryRunner"
6

7
/**
8
 * Helps to create entity managers.
9
 */
10
export class EntityManagerFactory {
6✔
11
    /**
12
     * Creates a new entity manager depend on a given connection's driver.
13
     */
14
    create(connection: DataSource, queryRunner?: QueryRunner): EntityManager {
15
        if (connection.driver.options.type === "mongodb")
73,933!
UNCOV
16
            return new MongoEntityManager(connection)
×
17

18
        if (connection.driver.options.type === "sqljs")
73,933✔
19
            return new SqljsEntityManager(connection, queryRunner)
22,160✔
20

21
        return new EntityManager(connection, queryRunner)
51,773✔
22
    }
23
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc