(raw)
| 3 | module.exports = PostgresInterval |
| 4 | |
| 5 | function 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 | |
| 21 | PostgresInterval.prototype.toPostgres = function () { |
| 22 | let postgresString = '' |
nothing calls this directly
no test coverage detected
searching dependent graphs…