mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
comment explaining how to get oid
This commit is contained in:
parent
8abf59a632
commit
58b4d9cf9c
@ -13,6 +13,8 @@ var noParse = function(val) {
|
||||
|
||||
//returns a function used to convert a specific type (specified by
|
||||
//oid) into a result javascript type
|
||||
//note: the oid can be obtained via the following sql query:
|
||||
//SELECT oid FROM pg_type WHERE typname = 'TYPE_NAME_HERE';
|
||||
var getTypeParser = function(oid, format) {
|
||||
if (!typeParsers[format]) {
|
||||
return noParse;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user