Comments (3)
I rarely use enums which is why I did not bang my head on making sure we get it correct here ;-)
So if I understand correctly, enum
are user created types.
So indeed, an array of enum would need to have access to the user specific oid of this enum / or we have to break the rule of implementing all the array version of the types / or maybe it is the anyenum
oid that is used in this case I have zero idea at this stage.
It seems to me that the binary repr indeed corresponds simply to the text label.
So if you are not using array of enums, you may as well declare your enums as 'text' in the mapping definition of your table and it should work without the need to partially implement a specific enum type. Can you test that ?
from node-pg-copy-streams-binary.
would love support for enums too
from node-pg-copy-streams-binary.
@NickKelly1 at this stage the only support I can give on this it to try the suggestion given on #17 (comment) and report back with the result.
It seems to me that the binary repr indeed corresponds simply to the text label.
So if you are not using array of enums,
you may as well declare your enums as 'text' in the mapping definition of your table
and it should work without the need to partially implement a specific enum type. Can you test that ?
`
from node-pg-copy-streams-binary.
Related Issues (7)
- Vacation
- No way to use with literal array HOT 3
- Deprecation warning from flatten HOT 2
- Support uuid type HOT 2
- Support of int8 (bigint) HOT 5
- Support type 'varchar' HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-pg-copy-streams-binary.