-
-
Notifications
You must be signed in to change notification settings - Fork 130
Open
Labels
Description
@singingwolfboy has prepared a draft: https://gist.github.com/singingwolfboy/a7144db4e24b5d31ba81f28b878a4b51
Would be great to integrate this with VSCode.
Relates to the smart tags plugin's JSON format:
graphile-engine/packages/graphile-utils/src/makePgSmartTagsPlugin.ts
Lines 155 to 199 in 52b9fa0
/** | |
* JSON (or JSON5) description of the tags to add to various entities, e.g. | |
* | |
* ```js | |
* { | |
* version: 1, | |
* tags: { | |
* class: { | |
* my_table: { | |
* tags: {omit: "create,update,delete"}, | |
* description: "You can overwrite the description too", | |
* columns: { | |
* my_private_field: {tags: {omit: true}} | |
* } | |
* }, | |
* "my_schema.myOtherTable": { | |
* description: "If necessary, add your schema to the table name to prevent multiple being matched" | |
* } | |
* }, | |
* procedure: { | |
* "my_schema.my_function_name": { | |
* tags: {sortable: true, filterable: true} | |
* } | |
* } | |
* } | |
* } | |
* ``` | |
*/ | |
export type JSONPgSmartTags = { | |
version: 1; | |
config: { | |
[kind in PgSmartTagSupportedKinds]: { | |
[identifier: string]: { | |
tags?: PgSmartTagTags; | |
description?: string; | |
columns?: { | |
[columnName: string]: { | |
tags?: PgSmartTagTags; | |
description?: string; | |
}; | |
}; | |
}; | |
}; | |
}; | |
}; |
Used by PostGraphile in postgraphile.tags.json5
: graphile/crystal#1177
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
🌳 Triage