Skip to content

Commit 58b4d9c

Browse files
committed
comment explaining how to get oid
1 parent 8abf59a commit 58b4d9c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/types/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ var noParse = function(val) {
1313

1414
//returns a function used to convert a specific type (specified by
1515
//oid) into a result javascript type
16+
//note: the oid can be obtained via the following sql query:
17+
//SELECT oid FROM pg_type WHERE typname = 'TYPE_NAME_HERE';
1618
var getTypeParser = function(oid, format) {
1719
if (!typeParsers[format]) {
1820
return noParse;

0 commit comments

Comments
 (0)