question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PG array types are unsupported

See original GitHub issue

I’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:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
adelszcommented, Jul 14, 2020

@Maxpain177 This is a bigger task and is a work in progress. I will update this thread once it is ready.

2reactions
adelszcommented, Jun 9, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found