GithubHelp home page GithubHelp logo

Comments (3)

jeromew avatar jeromew commented on August 10, 2024

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.

NickKelly1 avatar NickKelly1 commented on August 10, 2024

would love support for enums too

from node-pg-copy-streams-binary.

jeromew avatar jeromew commented on August 10, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.