@sixfold/fast-postgres-date-parser
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.5 • Public • Published

    fast-postgres-date-parser

    A drop in for 'postgres-date' package that is few times faster.

    Installation

    yarn install @sixfold/fast-postgres-date-parser

    Usage

    import { types } from 'pg';
    import { parsePostgresTimestamp} from '@sixfold/fast-postgres-date-parser';
    
    types.setTypeParser(types.builtins.TIMESTAMPTZ, parsePostgresTimestamp);
    types.setTypeParser(types.builtins.TIMESTAMP, parsePostgresTimestamp);

    Benchmark

    The project also contains a benchmark, you can run with yarn benchmark

    Latest benchmark against postgres-date@2.0.0

      postgres-date:
        1 309 014 ops/s, ±0.88%   | slowest, 62.11% slower
    
      faster-date-parser:
        3 455 121 ops/s, ±2.20%   | fastest
    

    Keywords

    none

    Install

    npm i @sixfold/fast-postgres-date-parser

    DownloadsWeekly Downloads

    416

    Version

    0.0.5

    License

    MIT

    Unpacked Size

    9.1 MB

    Total Files

    31

    Last publish

    Collaborators

    • rein6f
    • hikmat-sf
    • merilymurd
    • sanderkadajane
    • imorfie
    • poolik
    • villesokk
    • freddylattekivi
    • henri
    • kaarelm
    • sixfold-build
    • riston
    • kaaarelkybar
    • jurasan
    • meelis
    • joonasvali
    • jaakla
    • tambet
    • joras
    • antonpotapchuk
    • v2rv
    • jaakalo
    • alinavorontseva
    • lkallas
    • raulokva
    • dmitrigb
    • tasyp
    • rolandkender
    • taivokasper
    • kaarelmetsaots
    • kekekeke
    • mmisin
    • coldb
    • marten.veskimae
    • emelyanovtv
    • artjomkozmik
    • henrpe
    • rkppl
    • kr1stine
    • rsellip
    • andrikaro
    • martenteino
    • karlriis
    • yngvarrd
    • martenka