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.

Support datasource-specific attributes

See original GitHub issue

Problem

Databases like Postgres are incredibly feature-rich. Exposing all of those features would clutter up the schema for databases that do not support these features.

Possible Solution

We introduce datasource-specific attributes @pg.check(...), which allow more advanced features while making it clear that this is datasource-specific and may make it harder to switch databases.

Original Question

Where are the pg attributes documented? For example I want to specify the maximum length of a string or customize the type definition for postgres, it’s hard to find out what is available.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
pantharshit00commented, Aug 20, 2019

@janpio

The specific directives are also not documented(https://github.com/prisma/prisma2/tree/master/docs) so I added that label as well so that once they are implemented we need to document them as well.

0reactions
albertoperdomocommented, Feb 3, 2021

This is now supported via native types, including a catch-call notation for types we don’t yet support. The feature request described in this issue is pretty generic, so I am closing it.

For native types beyond the supported ones, we would like to have specific types requested (Postgis, Interval, etc.). for other features, e.g. database views, or stored procedures specific feature requests also welcome.

Make sure to check out https://www.prisma.io/docs/concepts/components/preview-features/native-types

Read more comments on GitHub >

github_iconTop Results From Across the Web

Assign Attributes to a Custom Data Source - Salesforce Help
Follow these steps to assign an attribute to a custom data source in Contact Builder. Click Data Sources. Click Select Data Sources Now....
Read more >
Creating a DataSource - LogicMonitor
There are four sections included in every DataSource definition: General Information · Active Discovery · Collector Attributes · Datapoints.
Read more >
Attributes in Data Source Definitions - Jaspersoft Community
Attributes can be used to derive all data source parameters that are not selected from drop down lists.
Read more >
Configuring the attributes in a data source - Oracle Help Center
On the Configure Data Source page of the data source configuration dialog, you configure the attributes that are included in the data source....
Read more >
Tableau Server Data Source Properties Service
Introduced in version 2020.1.0, the Tableau Server Data Source Properties service provides metadata for published data source from the Application Server ...
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