• 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

7.69
/src/query-runner/QueryLock.ts
1
export class QueryLock {
6✔
UNCOV
2
    private readonly queue: Promise<void>[] = []
×
3

4
    async acquire(): Promise<() => void> {
5
        let release: Function
UNCOV
6
        const waitingPromise = new Promise<void>((ok) => (release = ok))
×
7

8
        // Get track of everyone we need to wait on..
UNCOV
9
        const otherWaitingPromises = [...this.queue]
×
10
        // Put ourselves onto the end of the queue
UNCOV
11
        this.queue.push(waitingPromise)
×
12

UNCOV
13
        if (otherWaitingPromises.length > 0) {
×
UNCOV
14
            await Promise.all(otherWaitingPromises)
×
15
        }
16

UNCOV
17
        return () => {
×
UNCOV
18
            release()
×
19

UNCOV
20
            if (this.queue.includes(waitingPromise)) {
×
UNCOV
21
                this.queue.splice(this.queue.indexOf(waitingPromise), 1)
×
22
            }
23
        }
24
    }
25
}
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