File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,9 @@ export const DataTypeOIDs = {
130130 _varbit : 1563 ,
131131 _uuid : 2951 ,
132132 _jsonb : 3807 ,
133- } ;
133+ } as const ;
134+
135+ type INumericDataTypes = ( typeof DataTypeOIDs ) [ keyof typeof DataTypeOIDs ] ;
134136
135137export const DataTypeNames = {
136138 [ DataTypeOIDs . bool ] : 'bool' ,
@@ -247,4 +249,6 @@ export const DataTypeNames = {
247249 [ DataTypeOIDs . _varbit ] : '_varbit' ,
248250 [ DataTypeOIDs . _uuid ] : '_uuid' ,
249251 [ DataTypeOIDs . _jsonb ] : '_jsonb' ,
252+ } as const satisfies {
253+ [ key in INumericDataTypes ] : string ;
250254} ;
Original file line number Diff line number Diff line change 1+ export { DatabaseError } from './protocol/database-error.js' ;
2+
13export * from './constants.js' ;
24export * from './data-type-map.js' ;
35export * from './types.js' ;
You can’t perform that action at this time.
0 commit comments