Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sixfold/fast-postgres-date-parser

Package Overview
Dependencies
Maintainers
52
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sixfold/fast-postgres-date-parser

faster implementation of postgres date parser

  • 0.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
52
Created
Source

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

FAQs

Package last updated on 03 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc