How to use postgres-interval - 1 common examples

To help you get started, we’ve selected a few postgres-interval examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github gajus / slonik / src / factories / typeParsers / createIntervalTypeParser.js View on Github external
const intervalParser = (value) => {
  return value === null ? value : durationToSeconds(parseIsoDuration(parseInterval(value).toISOString()));
};

postgres-interval

Parse Postgres interval columns

MIT
Latest version published 10 months ago

Package Health Score

71 / 100
Full package analysis

Popular postgres-interval functions