You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/utils/README.md
+95-9Lines changed: 95 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,21 @@
16
16
17
17
`@pgsql/utils` is a companion utility library for `@pgsql/types`, offering convenient functions to work with PostgreSQL Abstract Syntax Tree (AST) nodes and enums in a type-safe manner. This library facilitates the creation of AST nodes and simplifies the process of converting between enum names and their respective integer values, as defined in the PostgreSQL parser output.
-[Example 1: Converting Enum Name to Integer](#example-1-converting-enum-name-to-integer)
30
+
-[Example 2: Converting Integer to Enum Name](#example-2-converting-integer-to-enum-name)
31
+
4.[Related Projects](#related)
32
+
5.[Disclaimer](#disclaimer)
33
+
19
34
## Features
20
35
21
36
-**AST Node Creation**: Simplifies the process of constructing PostgreSQL AST nodes, allowing for easy assembly of SQL queries or statements programmatically.
@@ -38,25 +53,96 @@ npm install @pgsql/utils
38
53
39
54
With the AST helper methods, creating complex SQL ASTs becomes straightforward and intuitive.
0 commit comments