🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@pgsql/types

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pgsql/types - npm Package Compare versions

Comparing version
16.1.1
to
16.1.2
+1
-1
LICENSE
The MIT License (MIT)
Copyright (c) 2021 Dan Lynch <pyramation@gmail.com>
Copyright (c) 2025 Interweb, Inc. <developers@hyperweb.io>
Copyright (c) 2025 Constructive <developers@constructive.io>

@@ -6,0 +6,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy

{
"name": "@pgsql/types",
"version": "16.1.1",
"author": "Dan Lynch <pyramation@gmail.com>",
"version": "16.1.2",
"author": "Constructive <developers@constructive.io>",
"description": "PostgreSQL AST types from the real Postgres parser",

@@ -9,4 +9,4 @@ "main": "index.js",

"types": "index.d.ts",
"homepage": "https://github.com/launchql/libpg-query-node",
"license": "SEE LICENSE IN LICENSE",
"homepage": "https://github.com/constructive-io/libpg-query-node",
"license": "MIT",
"publishConfig": {

@@ -19,6 +19,6 @@ "access": "public",

"type": "git",
"url": "https://github.com/launchql/libpg-query-node"
"url": "https://github.com/constructive-io/libpg-query-node"
},
"bugs": {
"url": "https://github.com/launchql/libpg-query-node/issues"
"url": "https://github.com/constructive-io/libpg-query-node/issues"
},

@@ -25,0 +25,0 @@ "keywords": [],

# @pgsql/types
<p align="center" width="100%">
<img height="120" src="https://github.com/launchql/pgsql-parser/assets/545047/6440fa7d-918b-4a3b-8d1b-755d85de8bea" />
<img height="120" src="https://github.com/constructive-io/pgsql-parser/assets/545047/6440fa7d-918b-4a3b-8d1b-755d85de8bea" />
</p>
<p align="center" width="100%">
<a href="https://github.com/launchql/libpg-query-node/actions/workflows/ci.yml">
<img height="20" src="https://github.com/launchql/libpg-query-node/actions/workflows/ci.yml/badge.svg" />
<a href="https://github.com/constructive-io/libpg-query-node/actions/workflows/ci.yml">
<img height="20" src="https://github.com/constructive-io/libpg-query-node/actions/workflows/ci.yml/badge.svg" />
</a>
<a href="https://www.npmjs.com/package/@pgsql/types"><img height="20" src="https://img.shields.io/npm/dt/@pgsql/types"></a>
<a href="https://www.npmjs.com/package/@pgsql/types"><img height="20" src="https://img.shields.io/npm/dw/@pgsql/types"/></a>
<a href="https://github.com/launchql/libpg-query-node/blob/main/LICENSE-MIT"><img height="20" src="https://img.shields.io/badge/license-MIT-blue.svg"/></a>
<a href="https://www.npmjs.com/package/@pgsql/types"><img height="20" src="https://img.shields.io/github/package-json/v/launchql/libpg-query-node?filename=types%2F17%2Fpackage.json"/></a>
<a href="https://github.com/constructive-io/libpg-query-node/blob/main/LICENSE-MIT"><img height="20" src="https://img.shields.io/badge/license-MIT-blue.svg"/></a>
<a href="https://www.npmjs.com/package/@pgsql/types"><img height="20" src="https://img.shields.io/github/package-json/v/constructive-io/libpg-query-node?filename=types%2F17%2Fpackage.json"/></a>
</p>
`@pgsql/types` is a TypeScript library providing type definitions for PostgreSQL AST nodes, primarily used in conjunction with [`pgsql-parser`](https://github.com/launchql/pgsql-parser). It offers a comprehensive and type-safe way to interact with the AST nodes generated by PostgreSQL query parsing.
`@pgsql/types` is a TypeScript library providing type definitions for PostgreSQL AST nodes, primarily used in conjunction with [`pgsql-parser`](https://github.com/constructive-io/pgsql-parser). It offers a comprehensive and type-safe way to interact with the AST nodes generated by PostgreSQL query parsing.

@@ -90,2 +90,3 @@

* [pgsql-deparser](https://www.npmjs.com/package/pgsql-deparser): A streamlined tool designed for converting PostgreSQL ASTs back into SQL queries, focusing solely on deparser functionality to complement `pgsql-parser`.
* [@pgsql/parser](https://www.npmjs.com/package/@pgsql/parser): Multi-version PostgreSQL parser with dynamic version selection at runtime, supporting PostgreSQL 15, 16, and 17 in a single package.
* [@pgsql/types](https://www.npmjs.com/package/@pgsql/types): Offers TypeScript type definitions for PostgreSQL AST nodes, facilitating type-safe construction, analysis, and manipulation of ASTs.

@@ -95,4 +96,9 @@ * [@pgsql/enums](https://www.npmjs.com/package/@pgsql/enums): Provides TypeScript enum definitions for PostgreSQL constants, enabling type-safe usage of PostgreSQL enums and constants in your applications.

* [pg-proto-parser](https://www.npmjs.com/package/pg-proto-parser): A TypeScript tool that parses PostgreSQL Protocol Buffers definitions to generate TypeScript interfaces, utility functions, and JSON mappings for enums.
* [libpg-query](https://github.com/launchql/libpg-query-node): The real PostgreSQL parser exposed for Node.js, used primarily in `pgsql-parser` for parsing and deparsing SQL queries.
* [libpg-query](https://github.com/constructive-io/libpg-query-node): The real PostgreSQL parser exposed for Node.js, used primarily in `pgsql-parser` for parsing and deparsing SQL queries.
## Credits
**🛠 Built by the [Constructive](https://constructive.io) team — creators of modular Postgres tooling for secure, composable backends. If you like our work, contribute on [GitHub](https://github.com/constructive-io).**
## Disclaimer

@@ -99,0 +105,0 @@