PG array types are unsupported
See original GitHub issueI’ve set up pgtyped without any problems, but I have a column in my table of type character varying(100)[]
or varchar(100)[]
. Upon running pgtyped CLI, I get the following error:
Error: Postgres type '_varchar' is not supported by mapping
at TypeAllocator.use (/home/mark/Work/configurator-sdk/node_modules/@pgtyped/cli/lib/types.js:99:34)
at /home/mark/Work/configurator-sdk/node_modules/@pgtyped/cli/lib/generator.js:54:36
at Array.forEach (<anonymous>)
at /home/mark/Work/configurator-sdk/node_modules/@pgtyped/cli/lib/generator.js:53:21
at Generator.next (<anonymous>)
at fulfilled (/home/mark/Work/configurator-sdk/node_modules/@pgtyped/cli/lib/generator.js:5:58)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
and the column gets a type of never
in the resulting .ts
file. Would be great to add support for this kind of types in the future!
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Unsupported PostgreSQL data types - Amazon Redshift
Unsupported PostgreSQL data types · Arrays · BIT, BIT VARYING · BYTEA · Composite Types · Date/Time Types. INTERVAL · Enumerated Types ·...
Read more >go insert composite type array unsupported type
If it supports PostgreSQL's more sophisticated data types then it will probably need you to explicitly define a mapping.
Read more >Documentation: 15: 8.15. Arrays - PostgreSQL
Arrays of any built-in or user-defined base type, enum type, composite type, range type, or domain can be created.
Read more >SQLException: Unsupported type ARRAY (postgres) (pyspark ...
Recently I was trying to read database table names and see what are stored in each of them. from pyspark.sql import SparkSession.
Read more >PostgreSQL arrays are not supported ... - Progress Community
PostgreSQL arrays are not supported with the PostgreSQL JDBC Driver. It was determined that the Progress Product is functioning as designed.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@Maxpain177 This is a bigger task and is a work in progress. I will update this thread once it is ready.
Thanks @shkarpa! We are aware of it and plan on adding it shortly. That will require some tighter integration with a specific pg client like
node-postgres
, but it is planned.