MCPcopy Create free account
hub / github.com/bendrucker/postgres-interval / PostgresInterval

Function PostgresInterval

index.js:5–19  ·  view source on GitHub ↗
(raw)

Source from the content-addressed store, hash-verified

3module.exports = PostgresInterval
4
5function PostgresInterval (raw) {
6 if (!(this instanceof PostgresInterval)) {
7 return new PostgresInterval(raw)
8 }
9
10 this.years = 0
11 this.months = 0
12 this.days = 0
13 this.hours = 0
14 this.minutes = 0
15 this.seconds = 0
16 this.milliseconds = 0
17
18 parse(this, raw)
19}
20
21PostgresInterval.prototype.toPostgres = function () {
22 let postgresString = ''

Callers

nothing calls this directly

Calls 1

parseFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…