From 5d0300d610f72ae4b8f36415a84156e5bd52e658 Mon Sep 17 00:00:00 2001 From: Karthikeyan C Date: Wed, 18 Dec 2024 14:29:04 +0530 Subject: [PATCH] add a gitignore --- .gitignore | 29 + .../postgres/ndc-metadata/configuration.json | 1605 ---------------- .../postgres/ndc-metadata/schema.json | 1622 ----------------- 3 files changed, 29 insertions(+), 3227 deletions(-) create mode 100644 .gitignore delete mode 100644 static/relational/postgres/ndc-metadata/configuration.json delete mode 100644 static/relational/postgres/ndc-metadata/schema.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d830b01 --- /dev/null +++ b/.gitignore @@ -0,0 +1,29 @@ +# Ignore NDC metadata directory +static/relational/postgres/ndc-metadata/ + +# Common directories to ignore +node_modules/ +dist/ +build/ +.env + +# OS files +.DS_Store +Thumbs.db + +# Editor directories and files +.idea/ +.vscode/ +*.swp +*.swo +*~ + +# Logs +*.log +logs/ +npm-debug.log* + +# Binary files that get downloaded +static/relational/postgres/ndc-postgres-cli +static/relational/postgres/ndc-test +static/relational/postgres/ndc-test-local \ No newline at end of file diff --git a/static/relational/postgres/ndc-metadata/configuration.json b/static/relational/postgres/ndc-metadata/configuration.json deleted file mode 100644 index 905e3b8..0000000 --- a/static/relational/postgres/ndc-metadata/configuration.json +++ /dev/null @@ -1,1605 +0,0 @@ -{ - "version": "5", - "$schema": "schema.json", - "connectionSettings": { - "connectionUri": { - "variable": "CONNECTION_URI" - }, - "poolSettings": { - "maxConnections": 50, - "poolTimeout": 30, - "idleTimeout": 180, - "checkConnectionAfterIdle": 60, - "connectionLifetime": 600 - }, - "isolationLevel": "ReadCommitted" - }, - "metadata": { - "tables": { - "Album": { - "schemaName": "public", - "tableName": "Album", - "columns": { - "AlbumId": { - "name": "AlbumId", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "description": "The identifier of an album" - }, - "ArtistId": { - "name": "ArtistId", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "description": "The id of the artist that authored the album" - }, - "Title": { - "name": "Title", - "type": { - "scalarType": "varchar" - }, - "nullable": "nonNullable", - "description": "The title of an album" - } - }, - "uniquenessConstraints": { - "PK_Album": [ - "AlbumId" - ] - }, - "foreignRelations": { - "FK_AlbumArtistId": { - "foreignSchema": "public", - "foreignTable": "Artist", - "columnMapping": { - "ArtistId": "ArtistId" - } - } - }, - "description": "The record of all albums" - }, - "Artist": { - "schemaName": "public", - "tableName": "Artist", - "columns": { - "ArtistId": { - "name": "ArtistId", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "description": "The identifier of an artist" - }, - "Name": { - "name": "Name", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": "The name of an artist" - } - }, - "uniquenessConstraints": { - "PK_Artist": [ - "ArtistId" - ] - }, - "foreignRelations": {}, - "description": "The record of all artists" - }, - "Customer": { - "schemaName": "public", - "tableName": "Customer", - "columns": { - "Address": { - "name": "Address", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "City": { - "name": "City", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "Company": { - "name": "Company", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "Country": { - "name": "Country", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "CustomerId": { - "name": "CustomerId", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "description": "The identifier of customer" - }, - "Email": { - "name": "Email", - "type": { - "scalarType": "varchar" - }, - "nullable": "nonNullable", - "description": null - }, - "Fax": { - "name": "Fax", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "FirstName": { - "name": "FirstName", - "type": { - "scalarType": "varchar" - }, - "nullable": "nonNullable", - "description": "The first name of a customer" - }, - "LastName": { - "name": "LastName", - "type": { - "scalarType": "varchar" - }, - "nullable": "nonNullable", - "description": "The last name of a customer" - }, - "Phone": { - "name": "Phone", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "PostalCode": { - "name": "PostalCode", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "State": { - "name": "State", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "SupportRepId": { - "name": "SupportRepId", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - } - }, - "uniquenessConstraints": { - "PK_Customer": [ - "CustomerId" - ] - }, - "foreignRelations": { - "FK_CustomerSupportRepId": { - "foreignSchema": "public", - "foreignTable": "Employee", - "columnMapping": { - "SupportRepId": "EmployeeId" - } - } - }, - "description": "The record of all customers" - }, - "Employee": { - "schemaName": "public", - "tableName": "Employee", - "columns": { - "Address": { - "name": "Address", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "BirthDate": { - "name": "BirthDate", - "type": { - "scalarType": "timestamp" - }, - "nullable": "nullable", - "description": null - }, - "City": { - "name": "City", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "Country": { - "name": "Country", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "Email": { - "name": "Email", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "EmployeeId": { - "name": "EmployeeId", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "description": null - }, - "Fax": { - "name": "Fax", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "FirstName": { - "name": "FirstName", - "type": { - "scalarType": "varchar" - }, - "nullable": "nonNullable", - "description": null - }, - "HireDate": { - "name": "HireDate", - "type": { - "scalarType": "timestamp" - }, - "nullable": "nullable", - "description": null - }, - "LastName": { - "name": "LastName", - "type": { - "scalarType": "varchar" - }, - "nullable": "nonNullable", - "description": null - }, - "Phone": { - "name": "Phone", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "PostalCode": { - "name": "PostalCode", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "ReportsTo": { - "name": "ReportsTo", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "State": { - "name": "State", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "Title": { - "name": "Title", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - } - }, - "uniquenessConstraints": { - "PK_Employee": [ - "EmployeeId" - ] - }, - "foreignRelations": { - "FK_EmployeeReportsTo": { - "foreignSchema": "public", - "foreignTable": "Employee", - "columnMapping": { - "ReportsTo": "EmployeeId" - } - } - }, - "description": null - }, - "Genre": { - "schemaName": "public", - "tableName": "Genre", - "columns": { - "GenreId": { - "name": "GenreId", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "description": null - }, - "Name": { - "name": "Name", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - } - }, - "uniquenessConstraints": { - "PK_Genre": [ - "GenreId" - ] - }, - "foreignRelations": {}, - "description": null - }, - "Invoice": { - "schemaName": "public", - "tableName": "Invoice", - "columns": { - "BillingAddress": { - "name": "BillingAddress", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "BillingCity": { - "name": "BillingCity", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "BillingCountry": { - "name": "BillingCountry", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "BillingPostalCode": { - "name": "BillingPostalCode", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "BillingState": { - "name": "BillingState", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "CustomerId": { - "name": "CustomerId", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "description": null - }, - "InvoiceDate": { - "name": "InvoiceDate", - "type": { - "scalarType": "timestamp" - }, - "nullable": "nonNullable", - "description": null - }, - "InvoiceId": { - "name": "InvoiceId", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "description": null - }, - "Total": { - "name": "Total", - "type": { - "scalarType": "numeric" - }, - "nullable": "nonNullable", - "description": null - } - }, - "uniquenessConstraints": { - "PK_Invoice": [ - "InvoiceId" - ] - }, - "foreignRelations": { - "FK_InvoiceCustomerId": { - "foreignSchema": "public", - "foreignTable": "Customer", - "columnMapping": { - "CustomerId": "CustomerId" - } - } - }, - "description": null - }, - "InvoiceLine": { - "schemaName": "public", - "tableName": "InvoiceLine", - "columns": { - "InvoiceId": { - "name": "InvoiceId", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "description": null - }, - "InvoiceLineId": { - "name": "InvoiceLineId", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "description": null - }, - "Quantity": { - "name": "Quantity", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "description": null - }, - "TrackId": { - "name": "TrackId", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "description": null - }, - "UnitPrice": { - "name": "UnitPrice", - "type": { - "scalarType": "numeric" - }, - "nullable": "nonNullable", - "description": null - } - }, - "uniquenessConstraints": { - "PK_InvoiceLine": [ - "InvoiceLineId" - ] - }, - "foreignRelations": { - "FK_InvoiceLineInvoiceId": { - "foreignSchema": "public", - "foreignTable": "Invoice", - "columnMapping": { - "InvoiceId": "InvoiceId" - } - }, - "FK_InvoiceLineTrackId": { - "foreignSchema": "public", - "foreignTable": "Track", - "columnMapping": { - "TrackId": "TrackId" - } - } - }, - "description": null - }, - "MediaType": { - "schemaName": "public", - "tableName": "MediaType", - "columns": { - "MediaTypeId": { - "name": "MediaTypeId", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "description": null - }, - "Name": { - "name": "Name", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - } - }, - "uniquenessConstraints": { - "PK_MediaType": [ - "MediaTypeId" - ] - }, - "foreignRelations": {}, - "description": null - }, - "Playlist": { - "schemaName": "public", - "tableName": "Playlist", - "columns": { - "Name": { - "name": "Name", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "PlaylistId": { - "name": "PlaylistId", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "description": null - } - }, - "uniquenessConstraints": { - "PK_Playlist": [ - "PlaylistId" - ] - }, - "foreignRelations": {}, - "description": null - }, - "PlaylistTrack": { - "schemaName": "public", - "tableName": "PlaylistTrack", - "columns": { - "PlaylistId": { - "name": "PlaylistId", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "description": null - }, - "TrackId": { - "name": "TrackId", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "description": null - } - }, - "uniquenessConstraints": { - "PK_PlaylistTrack": [ - "PlaylistId", - "TrackId" - ] - }, - "foreignRelations": { - "FK_PlaylistTrackPlaylistId": { - "foreignSchema": "public", - "foreignTable": "Playlist", - "columnMapping": { - "PlaylistId": "PlaylistId" - } - }, - "FK_PlaylistTrackTrackId": { - "foreignSchema": "public", - "foreignTable": "Track", - "columnMapping": { - "TrackId": "TrackId" - } - } - }, - "description": null - }, - "Track": { - "schemaName": "public", - "tableName": "Track", - "columns": { - "AlbumId": { - "name": "AlbumId", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "Bytes": { - "name": "Bytes", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "Composer": { - "name": "Composer", - "type": { - "scalarType": "varchar" - }, - "nullable": "nullable", - "description": null - }, - "GenreId": { - "name": "GenreId", - "type": { - "scalarType": "int4" - }, - "nullable": "nullable", - "description": null - }, - "MediaTypeId": { - "name": "MediaTypeId", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "description": null - }, - "Milliseconds": { - "name": "Milliseconds", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "description": null - }, - "Name": { - "name": "Name", - "type": { - "scalarType": "varchar" - }, - "nullable": "nonNullable", - "description": null - }, - "TrackId": { - "name": "TrackId", - "type": { - "scalarType": "int4" - }, - "nullable": "nonNullable", - "description": null - }, - "UnitPrice": { - "name": "UnitPrice", - "type": { - "scalarType": "numeric" - }, - "nullable": "nonNullable", - "description": null - } - }, - "uniquenessConstraints": { - "PK_Track": [ - "TrackId" - ] - }, - "foreignRelations": { - "FK_TrackAlbumId": { - "foreignSchema": "public", - "foreignTable": "Album", - "columnMapping": { - "AlbumId": "AlbumId" - } - }, - "FK_TrackGenreId": { - "foreignSchema": "public", - "foreignTable": "Genre", - "columnMapping": { - "GenreId": "GenreId" - } - }, - "FK_TrackMediaTypeId": { - "foreignSchema": "public", - "foreignTable": "MediaType", - "columnMapping": { - "MediaTypeId": "MediaTypeId" - } - } - }, - "description": null - } - }, - "types": { - "scalar": { - "int4": { - "typeName": "int4", - "schemaName": "pg_catalog", - "description": null, - "aggregateFunctions": { - "avg": { - "returnType": "numeric" - }, - "bit_and": { - "returnType": "int4" - }, - "bit_or": { - "returnType": "int4" - }, - "bit_xor": { - "returnType": "int4" - }, - "max": { - "returnType": "int4" - }, - "min": { - "returnType": "int4" - }, - "stddev": { - "returnType": "numeric" - }, - "stddev_pop": { - "returnType": "numeric" - }, - "stddev_samp": { - "returnType": "numeric" - }, - "sum": { - "returnType": "int8" - }, - "var_pop": { - "returnType": "numeric" - }, - "var_samp": { - "returnType": "numeric" - }, - "variance": { - "returnType": "numeric" - } - }, - "comparisonOperators": { - "_eq": { - "operatorName": "=", - "operatorKind": "equal", - "argumentType": "int4", - "isInfix": true - }, - "_gt": { - "operatorName": ">", - "operatorKind": "custom", - "argumentType": "int4", - "isInfix": true - }, - "_gte": { - "operatorName": ">=", - "operatorKind": "custom", - "argumentType": "int4", - "isInfix": true - }, - "_in": { - "operatorName": "IN", - "operatorKind": "in", - "argumentType": "int4", - "isInfix": true - }, - "_lt": { - "operatorName": "<", - "operatorKind": "custom", - "argumentType": "int4", - "isInfix": true - }, - "_lte": { - "operatorName": "<=", - "operatorKind": "custom", - "argumentType": "int4", - "isInfix": true - }, - "_neq": { - "operatorName": "<>", - "operatorKind": "custom", - "argumentType": "int4", - "isInfix": true - } - }, - "typeRepresentation": "int32" - }, - "int8": { - "typeName": "int8", - "schemaName": "pg_catalog", - "description": null, - "aggregateFunctions": { - "avg": { - "returnType": "numeric" - }, - "bit_and": { - "returnType": "int8" - }, - "bit_or": { - "returnType": "int8" - }, - "bit_xor": { - "returnType": "int8" - }, - "max": { - "returnType": "int8" - }, - "min": { - "returnType": "int8" - }, - "stddev": { - "returnType": "numeric" - }, - "stddev_pop": { - "returnType": "numeric" - }, - "stddev_samp": { - "returnType": "numeric" - }, - "sum": { - "returnType": "numeric" - }, - "var_pop": { - "returnType": "numeric" - }, - "var_samp": { - "returnType": "numeric" - }, - "variance": { - "returnType": "numeric" - } - }, - "comparisonOperators": { - "_eq": { - "operatorName": "=", - "operatorKind": "equal", - "argumentType": "int8", - "isInfix": true - }, - "_gt": { - "operatorName": ">", - "operatorKind": "custom", - "argumentType": "int8", - "isInfix": true - }, - "_gte": { - "operatorName": ">=", - "operatorKind": "custom", - "argumentType": "int8", - "isInfix": true - }, - "_in": { - "operatorName": "IN", - "operatorKind": "in", - "argumentType": "int8", - "isInfix": true - }, - "_lt": { - "operatorName": "<", - "operatorKind": "custom", - "argumentType": "int8", - "isInfix": true - }, - "_lte": { - "operatorName": "<=", - "operatorKind": "custom", - "argumentType": "int8", - "isInfix": true - }, - "_neq": { - "operatorName": "<>", - "operatorKind": "custom", - "argumentType": "int8", - "isInfix": true - } - }, - "typeRepresentation": "int64AsString" - }, - "numeric": { - "typeName": "numeric", - "schemaName": "pg_catalog", - "description": null, - "aggregateFunctions": { - "avg": { - "returnType": "numeric" - }, - "max": { - "returnType": "numeric" - }, - "min": { - "returnType": "numeric" - }, - "stddev": { - "returnType": "numeric" - }, - "stddev_pop": { - "returnType": "numeric" - }, - "stddev_samp": { - "returnType": "numeric" - }, - "sum": { - "returnType": "numeric" - }, - "var_pop": { - "returnType": "numeric" - }, - "var_samp": { - "returnType": "numeric" - }, - "variance": { - "returnType": "numeric" - } - }, - "comparisonOperators": { - "_eq": { - "operatorName": "=", - "operatorKind": "equal", - "argumentType": "numeric", - "isInfix": true - }, - "_gt": { - "operatorName": ">", - "operatorKind": "custom", - "argumentType": "numeric", - "isInfix": true - }, - "_gte": { - "operatorName": ">=", - "operatorKind": "custom", - "argumentType": "numeric", - "isInfix": true - }, - "_in": { - "operatorName": "IN", - "operatorKind": "in", - "argumentType": "numeric", - "isInfix": true - }, - "_lt": { - "operatorName": "<", - "operatorKind": "custom", - "argumentType": "numeric", - "isInfix": true - }, - "_lte": { - "operatorName": "<=", - "operatorKind": "custom", - "argumentType": "numeric", - "isInfix": true - }, - "_neq": { - "operatorName": "<>", - "operatorKind": "custom", - "argumentType": "numeric", - "isInfix": true - } - }, - "typeRepresentation": "bigDecimalAsString" - }, - "text": { - "typeName": "text", - "schemaName": "pg_catalog", - "description": null, - "aggregateFunctions": { - "max": { - "returnType": "text" - }, - "min": { - "returnType": "text" - } - }, - "comparisonOperators": { - "_eq": { - "operatorName": "=", - "operatorKind": "equal", - "argumentType": "text", - "isInfix": true - }, - "_gt": { - "operatorName": ">", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_gte": { - "operatorName": ">=", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_ilike": { - "operatorName": "~~*", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_in": { - "operatorName": "IN", - "operatorKind": "in", - "argumentType": "text", - "isInfix": true - }, - "_iregex": { - "operatorName": "~*", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_like": { - "operatorName": "~~", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_lt": { - "operatorName": "<", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_lte": { - "operatorName": "<=", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_neq": { - "operatorName": "<>", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_nilike": { - "operatorName": "!~~*", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_niregex": { - "operatorName": "!~*", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_nlike": { - "operatorName": "!~~", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_nregex": { - "operatorName": "!~", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "_regex": { - "operatorName": "~", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": true - }, - "starts_with": { - "operatorName": "starts_with", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": false - }, - "ts_match_tt": { - "operatorName": "ts_match_tt", - "operatorKind": "custom", - "argumentType": "text", - "isInfix": false - } - }, - "typeRepresentation": "string" - }, - "timestamp": { - "typeName": "timestamp", - "schemaName": "pg_catalog", - "description": null, - "aggregateFunctions": { - "max": { - "returnType": "timestamp" - }, - "min": { - "returnType": "timestamp" - } - }, - "comparisonOperators": { - "_eq": { - "operatorName": "=", - "operatorKind": "equal", - "argumentType": "timestamp", - "isInfix": true - }, - "_gt": { - "operatorName": ">", - "operatorKind": "custom", - "argumentType": "timestamp", - "isInfix": true - }, - "_gte": { - "operatorName": ">=", - "operatorKind": "custom", - "argumentType": "timestamp", - "isInfix": true - }, - "_in": { - "operatorName": "IN", - "operatorKind": "in", - "argumentType": "timestamp", - "isInfix": true - }, - "_lt": { - "operatorName": "<", - "operatorKind": "custom", - "argumentType": "timestamp", - "isInfix": true - }, - "_lte": { - "operatorName": "<=", - "operatorKind": "custom", - "argumentType": "timestamp", - "isInfix": true - }, - "_neq": { - "operatorName": "<>", - "operatorKind": "custom", - "argumentType": "timestamp", - "isInfix": true - } - }, - "typeRepresentation": "timestamp" - }, - "varchar": { - "typeName": "varchar", - "schemaName": "pg_catalog", - "description": null, - "aggregateFunctions": { - "max": { - "returnType": "text" - }, - "min": { - "returnType": "text" - } - }, - "comparisonOperators": { - "_eq": { - "operatorName": "=", - "operatorKind": "equal", - "argumentType": "varchar", - "isInfix": true - }, - "_gt": { - "operatorName": ">", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "_gte": { - "operatorName": ">=", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "_ilike": { - "operatorName": "~~*", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "_in": { - "operatorName": "IN", - "operatorKind": "in", - "argumentType": "varchar", - "isInfix": true - }, - "_iregex": { - "operatorName": "~*", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "_like": { - "operatorName": "~~", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "_lt": { - "operatorName": "<", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "_lte": { - "operatorName": "<=", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "_neq": { - "operatorName": "<>", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "_nilike": { - "operatorName": "!~~*", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "_niregex": { - "operatorName": "!~*", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "_nlike": { - "operatorName": "!~~", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "_nregex": { - "operatorName": "!~", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "_regex": { - "operatorName": "~", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": true - }, - "starts_with": { - "operatorName": "starts_with", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": false - }, - "ts_match_tt": { - "operatorName": "ts_match_tt", - "operatorKind": "custom", - "argumentType": "varchar", - "isInfix": false - } - }, - "typeRepresentation": "string" - } - }, - "composite": {} - }, - "nativeOperations": { - "queries": {}, - "mutations": {} - } - }, - "introspectionOptions": { - "excludedSchemas": [ - "information_schema", - "pg_catalog", - "tiger", - "crdb_internal", - "columnar", - "columnar_internal" - ], - "unqualifiedSchemasForTables": [ - "public" - ], - "unqualifiedSchemasForTypesAndProcedures": [ - "public", - "pg_catalog", - "tiger" - ], - "comparisonOperatorMapping": [ - { - "operatorName": "=", - "exposedName": "_eq", - "operatorKind": "equal" - }, - { - "operatorName": "<=", - "exposedName": "_lte", - "operatorKind": "custom" - }, - { - "operatorName": ">", - "exposedName": "_gt", - "operatorKind": "custom" - }, - { - "operatorName": ">=", - "exposedName": "_gte", - "operatorKind": "custom" - }, - { - "operatorName": "<", - "exposedName": "_lt", - "operatorKind": "custom" - }, - { - "operatorName": "<>", - "exposedName": "_neq", - "operatorKind": "custom" - }, - { - "operatorName": "!=", - "exposedName": "_neq", - "operatorKind": "custom" - }, - { - "operatorName": "LIKE", - "exposedName": "_like", - "operatorKind": "custom" - }, - { - "operatorName": "NOT LIKE", - "exposedName": "_nlike", - "operatorKind": "custom" - }, - { - "operatorName": "ILIKE", - "exposedName": "_ilike", - "operatorKind": "custom" - }, - { - "operatorName": "NOT ILIKE", - "exposedName": "_nilike", - "operatorKind": "custom" - }, - { - "operatorName": "SIMILAR TO", - "exposedName": "_similar", - "operatorKind": "custom" - }, - { - "operatorName": "NOT SIMILAR TO", - "exposedName": "_nsimilar", - "operatorKind": "custom" - }, - { - "operatorName": "~~", - "exposedName": "_like", - "operatorKind": "custom" - }, - { - "operatorName": "!~~", - "exposedName": "_nlike", - "operatorKind": "custom" - }, - { - "operatorName": "~~*", - "exposedName": "_ilike", - "operatorKind": "custom" - }, - { - "operatorName": "!~~*", - "exposedName": "_nilike", - "operatorKind": "custom" - }, - { - "operatorName": "~", - "exposedName": "_regex", - "operatorKind": "custom" - }, - { - "operatorName": "!~", - "exposedName": "_nregex", - "operatorKind": "custom" - }, - { - "operatorName": "~*", - "exposedName": "_iregex", - "operatorKind": "custom" - }, - { - "operatorName": "!~*", - "exposedName": "_niregex", - "operatorKind": "custom" - } - ], - "introspectPrefixFunctionComparisonOperators": [ - "box_above", - "box_below", - "box_contain", - "box_contain_pt", - "box_contained", - "box_left", - "box_overabove", - "box_overbelow", - "box_overlap", - "box_overleft", - "box_overright", - "box_right", - "box_same", - "circle_above", - "circle_below", - "circle_contain", - "circle_contain_pt", - "circle_contained", - "circle_left", - "circle_overabove", - "circle_overbelow", - "circle_overlap", - "circle_overleft", - "circle_overright", - "circle_right", - "circle_same", - "contains_2d", - "equals", - "geography_overlaps", - "geometry_above", - "geometry_below", - "geometry_contained_3d", - "geometry_contains", - "geometry_contains_3d", - "geometry_contains_nd", - "geometry_left", - "geometry_overabove", - "geometry_overbelow", - "geometry_overlaps", - "geometry_overlaps_3d", - "geometry_overlaps_nd", - "geometry_overleft", - "geometry_overright", - "geometry_right", - "geometry_same", - "geometry_same_3d", - "geometry_same_nd", - "geometry_within", - "geometry_within_nd", - "inet_same_family", - "inter_lb", - "inter_sb", - "inter_sl", - "is_contained_2d", - "ishorizontal", - "isparallel", - "isperp", - "isvertical", - "jsonb_contained", - "jsonb_contains", - "jsonb_exists", - "jsonb_path_exists_opr", - "jsonb_path_match_opr", - "line_intersect", - "line_parallel", - "line_perp", - "lseg_intersect", - "lseg_parallel", - "lseg_perp", - "network_overlap", - "network_sub", - "network_subeq", - "network_sup", - "network_supeq", - "on_pb", - "on_pl", - "on_ppath", - "on_ps", - "on_sb", - "on_sl", - "overlaps_2d", - "path_contain_pt", - "path_inter", - "point_above", - "point_below", - "point_horiz", - "point_left", - "point_right", - "point_vert", - "poly_above", - "poly_below", - "poly_contain", - "poly_contain_pt", - "poly_contained", - "poly_left", - "poly_overabove", - "poly_overbelow", - "poly_overlap", - "poly_overleft", - "poly_overright", - "poly_right", - "poly_same", - "pt_contained_poly", - "st_3dintersects", - "st_contains", - "st_containsproperly", - "st_coveredby", - "st_covers", - "st_crosses", - "st_disjoint", - "st_equals", - "st_intersects", - "st_isvalid", - "st_orderingequals", - "st_overlaps", - "st_relatematch", - "st_touches", - "st_within", - "starts_with", - "ts_match_qv", - "ts_match_tq", - "ts_match_tt", - "ts_match_vq", - "tsq_mcontained", - "tsq_mcontains", - "xmlexists", - "xmlvalidate", - "xpath_exists" - ], - "typeRepresentations": { - "bit": "string", - "bool": "boolean", - "bpchar": "string", - "char": "string", - "date": "date", - "float4": "float32", - "float8": "float64", - "int2": "int16", - "int4": "int32", - "int8": "int64AsString", - "numeric": "bigDecimalAsString", - "text": "string", - "time": "time", - "timestamp": "timestamp", - "timestamptz": "timestamptz", - "timetz": "timetz", - "uuid": "uUID", - "varchar": "string" - } - }, - "mutationsVersion": "v2", - "mutationsPrefix": "" -} diff --git a/static/relational/postgres/ndc-metadata/schema.json b/static/relational/postgres/ndc-metadata/schema.json deleted file mode 100644 index 15e45a3..0000000 --- a/static/relational/postgres/ndc-metadata/schema.json +++ /dev/null @@ -1,1622 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "ParsedConfiguration", - "description": "Initial configuration, just enough to connect to a database and elaborate a full 'Configuration'.", - "type": "object", - "required": [ - "version" - ], - "properties": { - "version": { - "$ref": "#/definitions/Version" - }, - "$schema": { - "description": "Jsonschema of the configuration format.", - "default": null, - "type": [ - "string", - "null" - ] - }, - "connectionSettings": { - "description": "Database connection settings.", - "default": { - "connectionUri": { - "variable": "CONNECTION_URI" - }, - "poolSettings": { - "maxConnections": 50, - "poolTimeout": 30, - "idleTimeout": 180, - "checkConnectionAfterIdle": 60, - "connectionLifetime": 600 - }, - "isolationLevel": "ReadCommitted" - }, - "allOf": [ - { - "$ref": "#/definitions/DatabaseConnectionSettings" - } - ] - }, - "metadata": { - "description": "Connector metadata.", - "default": { - "tables": {}, - "types": { - "scalar": {}, - "composite": {} - }, - "nativeOperations": { - "queries": {}, - "mutations": {} - } - }, - "allOf": [ - { - "$ref": "#/definitions/Metadata" - } - ] - }, - "introspectionOptions": { - "description": "Database introspection options.", - "default": { - "excludedSchemas": [ - "information_schema", - "pg_catalog", - "tiger", - "crdb_internal", - "columnar", - "columnar_internal" - ], - "unqualifiedSchemasForTables": [ - "public" - ], - "unqualifiedSchemasForTypesAndProcedures": [ - "public", - "pg_catalog", - "tiger" - ], - "comparisonOperatorMapping": [ - { - "operatorName": "=", - "exposedName": "_eq", - "operatorKind": "equal" - }, - { - "operatorName": "<=", - "exposedName": "_lte", - "operatorKind": "custom" - }, - { - "operatorName": ">", - "exposedName": "_gt", - "operatorKind": "custom" - }, - { - "operatorName": ">=", - "exposedName": "_gte", - "operatorKind": "custom" - }, - { - "operatorName": "<", - "exposedName": "_lt", - "operatorKind": "custom" - }, - { - "operatorName": "<>", - "exposedName": "_neq", - "operatorKind": "custom" - }, - { - "operatorName": "!=", - "exposedName": "_neq", - "operatorKind": "custom" - }, - { - "operatorName": "LIKE", - "exposedName": "_like", - "operatorKind": "custom" - }, - { - "operatorName": "NOT LIKE", - "exposedName": "_nlike", - "operatorKind": "custom" - }, - { - "operatorName": "ILIKE", - "exposedName": "_ilike", - "operatorKind": "custom" - }, - { - "operatorName": "NOT ILIKE", - "exposedName": "_nilike", - "operatorKind": "custom" - }, - { - "operatorName": "SIMILAR TO", - "exposedName": "_similar", - "operatorKind": "custom" - }, - { - "operatorName": "NOT SIMILAR TO", - "exposedName": "_nsimilar", - "operatorKind": "custom" - }, - { - "operatorName": "~~", - "exposedName": "_like", - "operatorKind": "custom" - }, - { - "operatorName": "!~~", - "exposedName": "_nlike", - "operatorKind": "custom" - }, - { - "operatorName": "~~*", - "exposedName": "_ilike", - "operatorKind": "custom" - }, - { - "operatorName": "!~~*", - "exposedName": "_nilike", - "operatorKind": "custom" - }, - { - "operatorName": "~", - "exposedName": "_regex", - "operatorKind": "custom" - }, - { - "operatorName": "!~", - "exposedName": "_nregex", - "operatorKind": "custom" - }, - { - "operatorName": "~*", - "exposedName": "_iregex", - "operatorKind": "custom" - }, - { - "operatorName": "!~*", - "exposedName": "_niregex", - "operatorKind": "custom" - } - ], - "introspectPrefixFunctionComparisonOperators": [ - "box_above", - "box_below", - "box_contain", - "box_contain_pt", - "box_contained", - "box_left", - "box_overabove", - "box_overbelow", - "box_overlap", - "box_overleft", - "box_overright", - "box_right", - "box_same", - "circle_above", - "circle_below", - "circle_contain", - "circle_contain_pt", - "circle_contained", - "circle_left", - "circle_overabove", - "circle_overbelow", - "circle_overlap", - "circle_overleft", - "circle_overright", - "circle_right", - "circle_same", - "contains_2d", - "equals", - "geography_overlaps", - "geometry_above", - "geometry_below", - "geometry_contained_3d", - "geometry_contains", - "geometry_contains_3d", - "geometry_contains_nd", - "geometry_left", - "geometry_overabove", - "geometry_overbelow", - "geometry_overlaps", - "geometry_overlaps_3d", - "geometry_overlaps_nd", - "geometry_overleft", - "geometry_overright", - "geometry_right", - "geometry_same", - "geometry_same_3d", - "geometry_same_nd", - "geometry_within", - "geometry_within_nd", - "inet_same_family", - "inter_lb", - "inter_sb", - "inter_sl", - "is_contained_2d", - "ishorizontal", - "isparallel", - "isperp", - "isvertical", - "jsonb_contained", - "jsonb_contains", - "jsonb_exists", - "jsonb_path_exists_opr", - "jsonb_path_match_opr", - "line_intersect", - "line_parallel", - "line_perp", - "lseg_intersect", - "lseg_parallel", - "lseg_perp", - "network_overlap", - "network_sub", - "network_subeq", - "network_sup", - "network_supeq", - "on_pb", - "on_pl", - "on_ppath", - "on_ps", - "on_sb", - "on_sl", - "overlaps_2d", - "path_contain_pt", - "path_inter", - "point_above", - "point_below", - "point_horiz", - "point_left", - "point_right", - "point_vert", - "poly_above", - "poly_below", - "poly_contain", - "poly_contain_pt", - "poly_contained", - "poly_left", - "poly_overabove", - "poly_overbelow", - "poly_overlap", - "poly_overleft", - "poly_overright", - "poly_right", - "poly_same", - "pt_contained_poly", - "st_3dintersects", - "st_contains", - "st_containsproperly", - "st_coveredby", - "st_covers", - "st_crosses", - "st_disjoint", - "st_equals", - "st_intersects", - "st_isvalid", - "st_orderingequals", - "st_overlaps", - "st_relatematch", - "st_touches", - "st_within", - "starts_with", - "ts_match_qv", - "ts_match_tq", - "ts_match_tt", - "ts_match_vq", - "tsq_mcontained", - "tsq_mcontains", - "xmlexists", - "xmlvalidate", - "xpath_exists" - ], - "typeRepresentations": { - "bit": "string", - "bool": "boolean", - "bpchar": "string", - "char": "string", - "date": "date", - "float4": "float32", - "float8": "float64", - "int2": "int16", - "int4": "int32", - "int8": "int64AsString", - "numeric": "bigDecimalAsString", - "text": "string", - "time": "time", - "timestamp": "timestamp", - "timestamptz": "timestamptz", - "timetz": "timetz", - "uuid": "uUID", - "varchar": "string" - } - }, - "allOf": [ - { - "$ref": "#/definitions/IntrospectionOptions" - } - ] - }, - "mutationsVersion": { - "description": "Which version of the generated mutation procedures to include in the schema response", - "default": null, - "anyOf": [ - { - "$ref": "#/definitions/MutationsVersion" - }, - { - "type": "null" - } - ] - }, - "mutationsPrefix": { - "description": "Provide a custom prefix for generated mutation names. Defaults to mutations version.", - "default": null, - "type": [ - "string", - "null" - ] - } - }, - "definitions": { - "Version": { - "type": "string", - "enum": [ - "5" - ] - }, - "DatabaseConnectionSettings": { - "description": "Database connection settings.", - "type": "object", - "required": [ - "connectionUri" - ], - "properties": { - "connectionUri": { - "description": "Connection string for a Postgres-compatible database.", - "allOf": [ - { - "$ref": "#/definitions/ConnectionUri" - } - ] - }, - "poolSettings": { - "description": "Connection pool settings.", - "default": { - "maxConnections": 50, - "poolTimeout": 30, - "idleTimeout": 180, - "checkConnectionAfterIdle": 60, - "connectionLifetime": 600 - }, - "allOf": [ - { - "$ref": "#/definitions/PoolSettings" - } - ] - }, - "isolationLevel": { - "description": "Query isolation level.", - "default": "ReadCommitted", - "allOf": [ - { - "$ref": "#/definitions/IsolationLevel" - } - ] - } - } - }, - "ConnectionUri": { - "$ref": "#/definitions/Secret" - }, - "Secret": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "object", - "required": [ - "variable" - ], - "properties": { - "variable": { - "$ref": "#/definitions/Variable" - } - } - } - ] - }, - "Variable": { - "description": "The name of an an environment variable.", - "type": "string" - }, - "PoolSettings": { - "description": "Settings for the PostgreSQL connection pool", - "type": "object", - "properties": { - "maxConnections": { - "description": "maximum number of pool connections", - "default": 50, - "type": "integer", - "format": "uint32", - "minimum": 0.0 - }, - "poolTimeout": { - "description": "timeout for acquiring a connection from the pool (seconds)", - "default": 30, - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "idleTimeout": { - "description": "idle timeout for releasing a connection from the pool (seconds)", - "default": 180, - "type": [ - "integer", - "null" - ], - "format": "uint64", - "minimum": 0.0 - }, - "checkConnectionAfterIdle": { - "description": "check the connection is alive after being idle for N seconds. Set to null to always check.", - "default": 60, - "type": [ - "integer", - "null" - ], - "format": "uint64", - "minimum": 0.0 - }, - "connectionLifetime": { - "description": "maximum lifetime for an individual connection (seconds)", - "default": 600, - "type": [ - "integer", - "null" - ], - "format": "uint64", - "minimum": 0.0 - } - } - }, - "IsolationLevel": { - "description": "The isolation level of the transaction in which a query is executed.", - "oneOf": [ - { - "description": "Prevents reading data from another uncommitted transaction.", - "type": "string", - "enum": [ - "ReadCommitted" - ] - }, - { - "description": "Reading the same data twice is guaranteed to return the same result.", - "type": "string", - "enum": [ - "RepeatableRead" - ] - }, - { - "description": "Concurrent transactions behave identically to serializing them one at a time.", - "type": "string", - "enum": [ - "Serializable" - ] - } - ] - }, - "Metadata": { - "description": "Metadata information.", - "type": "object", - "properties": { - "tables": { - "default": {}, - "allOf": [ - { - "$ref": "#/definitions/TablesInfo" - } - ] - }, - "types": { - "default": { - "scalar": {}, - "composite": {} - }, - "allOf": [ - { - "$ref": "#/definitions/Types" - } - ] - }, - "nativeOperations": { - "default": { - "queries": {}, - "mutations": {} - }, - "allOf": [ - { - "$ref": "#/definitions/NativeOperations" - } - ] - } - } - }, - "TablesInfo": { - "description": "Mapping from a \"table\" name to its information.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/TableInfo" - } - }, - "TableInfo": { - "description": "Information about a database table (or any other kind of relation).", - "type": "object", - "required": [ - "columns", - "schemaName", - "tableName" - ], - "properties": { - "schemaName": { - "type": "string" - }, - "tableName": { - "type": "string" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - } - }, - "uniquenessConstraints": { - "default": {}, - "allOf": [ - { - "$ref": "#/definitions/UniquenessConstraints" - } - ] - }, - "foreignRelations": { - "default": {}, - "allOf": [ - { - "$ref": "#/definitions/ForeignRelations" - } - ] - }, - "description": { - "default": null, - "type": [ - "string", - "null" - ] - } - } - }, - "ColumnInfo": { - "description": "Information about a database column.", - "type": "object", - "required": [ - "name", - "type" - ], - "properties": { - "name": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/Type" - }, - "nullable": { - "default": "nullable", - "allOf": [ - { - "$ref": "#/definitions/Nullable" - } - ] - }, - "hasDefault": { - "$ref": "#/definitions/HasDefault" - }, - "isIdentity": { - "$ref": "#/definitions/IsIdentity" - }, - "isGenerated": { - "$ref": "#/definitions/IsGenerated" - }, - "description": { - "default": null, - "type": [ - "string", - "null" - ] - } - } - }, - "Type": { - "description": "The type of values that a column, field, or argument may take.", - "oneOf": [ - { - "type": "object", - "required": [ - "scalarType" - ], - "properties": { - "scalarType": { - "type": "string" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "compositeType" - ], - "properties": { - "compositeType": { - "type": "string" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "arrayType" - ], - "properties": { - "arrayType": { - "$ref": "#/definitions/Type" - } - }, - "additionalProperties": false - } - ] - }, - "Nullable": { - "description": "Can this column contain null values", - "type": "string", - "enum": [ - "nullable", - "nonNullable" - ] - }, - "HasDefault": { - "description": "Does this column have a default value.", - "type": "string", - "enum": [ - "noDefault", - "hasDefault" - ] - }, - "IsIdentity": { - "description": "Is this column an identity column.", - "type": "string", - "enum": [ - "notIdentity", - "identityByDefault", - "identityAlways" - ] - }, - "IsGenerated": { - "description": "Is this column a generated column.", - "type": "string", - "enum": [ - "notGenerated", - "stored" - ] - }, - "UniquenessConstraints": { - "description": "A mapping from the name of a unique constraint to its value.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/UniquenessConstraint" - } - }, - "UniquenessConstraint": { - "description": "The set of columns that make up a uniqueness constraint. We map each table column to their ndc field names.", - "type": "array", - "items": { - "type": "string" - }, - "uniqueItems": true - }, - "ForeignRelations": { - "description": "A mapping from the name of a foreign key constraint to its value.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ForeignRelation" - } - }, - "ForeignRelation": { - "description": "A foreign key constraint.", - "type": "object", - "required": [ - "columnMapping", - "foreignTable" - ], - "properties": { - "foreignSchema": { - "type": [ - "string", - "null" - ] - }, - "foreignTable": { - "type": "string" - }, - "columnMapping": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - }, - "Types": { - "description": "Information about types.", - "type": "object", - "required": [ - "composite", - "scalar" - ], - "properties": { - "scalar": { - "$ref": "#/definitions/ScalarTypes" - }, - "composite": { - "$ref": "#/definitions/CompositeTypes" - } - } - }, - "ScalarTypes": { - "description": "Map of all known/occurring scalar types.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ScalarType" - } - }, - "ScalarType": { - "description": "Information about a scalar type. A scalar type is completely characterized by its name and the operations you can do on it.", - "type": "object", - "required": [ - "aggregateFunctions", - "comparisonOperators", - "schemaName", - "typeName" - ], - "properties": { - "typeName": { - "type": "string" - }, - "schemaName": { - "type": "string" - }, - "description": { - "type": [ - "string", - "null" - ] - }, - "aggregateFunctions": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/AggregateFunction" - } - }, - "comparisonOperators": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ComparisonOperator" - } - }, - "typeRepresentation": { - "anyOf": [ - { - "$ref": "#/definitions/TypeRepresentation" - }, - { - "type": "null" - } - ] - } - } - }, - "AggregateFunction": { - "type": "object", - "required": [ - "returnType" - ], - "properties": { - "returnType": { - "type": "string" - } - } - }, - "ComparisonOperator": { - "description": "Represents a postgres binary comparison operator", - "type": "object", - "required": [ - "argumentType", - "operatorKind", - "operatorName" - ], - "properties": { - "operatorName": { - "type": "string" - }, - "operatorKind": { - "$ref": "#/definitions/OperatorKind" - }, - "argumentType": { - "type": "string" - }, - "isInfix": { - "default": true, - "type": "boolean" - } - } - }, - "OperatorKind": { - "description": "Is it a built-in operator, or a custom operator.", - "type": "string", - "enum": [ - "equal", - "in", - "custom" - ] - }, - "TypeRepresentation": { - "description": "Type representation of a scalar type.", - "oneOf": [ - { - "description": "JSON booleans", - "type": "string", - "enum": [ - "boolean" - ] - }, - { - "description": "Any JSON string", - "type": "string", - "enum": [ - "string" - ] - }, - { - "description": "float4", - "type": "string", - "enum": [ - "float32" - ] - }, - { - "description": "float8", - "type": "string", - "enum": [ - "float64" - ] - }, - { - "description": "int2", - "type": "string", - "enum": [ - "int16" - ] - }, - { - "description": "int4", - "type": "string", - "enum": [ - "int32" - ] - }, - { - "description": "int8 as integer", - "type": "string", - "enum": [ - "int64" - ] - }, - { - "description": "int8 as string", - "type": "string", - "enum": [ - "int64AsString" - ] - }, - { - "description": "numeric", - "type": "string", - "enum": [ - "bigDecimal" - ] - }, - { - "description": "numeric as string", - "type": "string", - "enum": [ - "bigDecimalAsString" - ] - }, - { - "description": "timestamp", - "type": "string", - "enum": [ - "timestamp" - ] - }, - { - "description": "timestamp with timezone", - "type": "string", - "enum": [ - "timestamptz" - ] - }, - { - "description": "time", - "type": "string", - "enum": [ - "time" - ] - }, - { - "description": "time with timezone", - "type": "string", - "enum": [ - "timetz" - ] - }, - { - "description": "date", - "type": "string", - "enum": [ - "date" - ] - }, - { - "description": "uuid", - "type": "string", - "enum": [ - "uUID" - ] - }, - { - "description": "geography", - "type": "string", - "enum": [ - "geography" - ] - }, - { - "description": "geometry", - "type": "string", - "enum": [ - "geometry" - ] - }, - { - "description": "Any JSON number", - "type": "string", - "enum": [ - "number" - ] - }, - { - "description": "Any JSON number, with no decimal part", - "type": "string", - "enum": [ - "integer" - ] - }, - { - "description": "An arbitrary json.", - "type": "string", - "enum": [ - "json" - ] - }, - { - "description": "One of the specified string values", - "type": "object", - "required": [ - "enum" - ], - "properties": { - "enum": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - ] - }, - "CompositeTypes": { - "description": "Map of all known composite types.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/CompositeType" - } - }, - "CompositeType": { - "description": "Information about a composite type. These are very similar to tables, but with the crucial difference that composite types do not support constraints (such as NOT NULL).", - "type": "object", - "required": [ - "fields", - "schemaName", - "typeName" - ], - "properties": { - "typeName": { - "type": "string" - }, - "schemaName": { - "type": "string" - }, - "fields": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/FieldInfo" - } - }, - "description": { - "default": null, - "type": [ - "string", - "null" - ] - } - } - }, - "FieldInfo": { - "description": "Information about a composite type field.", - "type": "object", - "required": [ - "fieldName", - "type" - ], - "properties": { - "fieldName": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/Type" - }, - "description": { - "default": null, - "type": [ - "string", - "null" - ] - } - } - }, - "NativeOperations": { - "description": "Metadata information of Native Operations.", - "type": "object", - "required": [ - "mutations", - "queries" - ], - "properties": { - "queries": { - "description": "Native Queries.", - "allOf": [ - { - "$ref": "#/definitions/NativeQueries" - } - ] - }, - "mutations": { - "description": "Native Mutations.", - "allOf": [ - { - "$ref": "#/definitions/NativeMutations" - } - ] - } - } - }, - "NativeQueries": { - "description": "Metadata information of Native Queries.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/NativeQueryInfo" - } - }, - "NativeQueryInfo": { - "description": "Information about a Native Operation", - "type": "object", - "required": [ - "columns", - "sql" - ], - "properties": { - "sql": { - "description": "SQL expression to use for the Native Operation. We can interpolate values using `{{variable_name}}` syntax, such as `SELECT * FROM authors WHERE name = {{author_name}}`", - "allOf": [ - { - "$ref": "#/definitions/NativeQuerySql" - } - ] - }, - "columns": { - "description": "Columns returned by the Native Operation", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ReadOnlyColumnInfo" - } - }, - "arguments": { - "description": "Names and types of arguments that can be passed to this Native Operation", - "default": {}, - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ReadOnlyColumnInfo" - } - }, - "description": { - "default": null, - "type": [ - "string", - "null" - ] - } - } - }, - "NativeQuerySql": { - "description": "Native Operation SQL location.", - "anyOf": [ - { - "description": "Refer to an external Native Operation SQL file.", - "type": "object", - "required": [ - "file" - ], - "properties": { - "file": { - "description": "Relative path to a sql file.", - "type": "string" - } - } - }, - { - "description": "Inline Native Operation SQL string.", - "type": "object", - "required": [ - "inline" - ], - "properties": { - "inline": { - "description": "An inline Native Operation SQL string.", - "allOf": [ - { - "$ref": "#/definitions/InlineNativeQuerySql" - } - ] - } - } - }, - { - "$ref": "#/definitions/InlineNativeQuerySql" - } - ] - }, - "InlineNativeQuerySql": { - "type": "string" - }, - "ReadOnlyColumnInfo": { - "description": "Information about a native query column.", - "type": "object", - "required": [ - "name", - "type" - ], - "properties": { - "name": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/Type" - }, - "nullable": { - "default": "nullable", - "allOf": [ - { - "$ref": "#/definitions/Nullable" - } - ] - }, - "description": { - "default": null, - "type": [ - "string", - "null" - ] - } - } - }, - "NativeMutations": { - "description": "Metadata information of Native Mutations.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/NativeQueryInfo" - } - }, - "IntrospectionOptions": { - "description": "Options which only influence how the configuration is updated.", - "type": "object", - "properties": { - "excludedSchemas": { - "description": "Schemas which are excluded from introspection. The default setting will exclude the internal schemas of Postgres, Citus, Cockroach, and the PostGIS extension.", - "default": [ - "information_schema", - "pg_catalog", - "tiger", - "crdb_internal", - "columnar", - "columnar_internal" - ], - "type": "array", - "items": { - "type": "string" - } - }, - "unqualifiedSchemasForTables": { - "description": "The names of Tables and Views in these schemas will be returned unqualified. The default setting will set the `public` schema as unqualified.", - "default": [ - "public" - ], - "type": "array", - "items": { - "type": "string" - } - }, - "unqualifiedSchemasForTypesAndProcedures": { - "description": "The types and procedures in these schemas will be returned unqualified.", - "default": [ - "public", - "pg_catalog", - "tiger" - ], - "type": "array", - "items": { - "type": "string" - } - }, - "comparisonOperatorMapping": { - "description": "The mapping of comparison operator names to apply when updating the configuration", - "default": [ - { - "operatorName": "=", - "exposedName": "_eq", - "operatorKind": "equal" - }, - { - "operatorName": "<=", - "exposedName": "_lte", - "operatorKind": "custom" - }, - { - "operatorName": ">", - "exposedName": "_gt", - "operatorKind": "custom" - }, - { - "operatorName": ">=", - "exposedName": "_gte", - "operatorKind": "custom" - }, - { - "operatorName": "<", - "exposedName": "_lt", - "operatorKind": "custom" - }, - { - "operatorName": "<>", - "exposedName": "_neq", - "operatorKind": "custom" - }, - { - "operatorName": "!=", - "exposedName": "_neq", - "operatorKind": "custom" - }, - { - "operatorName": "LIKE", - "exposedName": "_like", - "operatorKind": "custom" - }, - { - "operatorName": "NOT LIKE", - "exposedName": "_nlike", - "operatorKind": "custom" - }, - { - "operatorName": "ILIKE", - "exposedName": "_ilike", - "operatorKind": "custom" - }, - { - "operatorName": "NOT ILIKE", - "exposedName": "_nilike", - "operatorKind": "custom" - }, - { - "operatorName": "SIMILAR TO", - "exposedName": "_similar", - "operatorKind": "custom" - }, - { - "operatorName": "NOT SIMILAR TO", - "exposedName": "_nsimilar", - "operatorKind": "custom" - }, - { - "operatorName": "~~", - "exposedName": "_like", - "operatorKind": "custom" - }, - { - "operatorName": "!~~", - "exposedName": "_nlike", - "operatorKind": "custom" - }, - { - "operatorName": "~~*", - "exposedName": "_ilike", - "operatorKind": "custom" - }, - { - "operatorName": "!~~*", - "exposedName": "_nilike", - "operatorKind": "custom" - }, - { - "operatorName": "~", - "exposedName": "_regex", - "operatorKind": "custom" - }, - { - "operatorName": "!~", - "exposedName": "_nregex", - "operatorKind": "custom" - }, - { - "operatorName": "~*", - "exposedName": "_iregex", - "operatorKind": "custom" - }, - { - "operatorName": "!~*", - "exposedName": "_niregex", - "operatorKind": "custom" - } - ], - "type": "array", - "items": { - "$ref": "#/definitions/ComparisonOperatorMapping" - } - }, - "introspectPrefixFunctionComparisonOperators": { - "description": "Which prefix functions (i.e., non-infix operators) to generate introspection metadata for.\n\nThis list will accept any boolean-returning function taking two concrete scalar types as arguments.\n\nThe default includes comparisons for various build-in types as well as those of PostGIS.", - "default": [ - "box_above", - "box_below", - "box_contain", - "box_contain_pt", - "box_contained", - "box_left", - "box_overabove", - "box_overbelow", - "box_overlap", - "box_overleft", - "box_overright", - "box_right", - "box_same", - "circle_above", - "circle_below", - "circle_contain", - "circle_contain_pt", - "circle_contained", - "circle_left", - "circle_overabove", - "circle_overbelow", - "circle_overlap", - "circle_overleft", - "circle_overright", - "circle_right", - "circle_same", - "contains_2d", - "equals", - "geography_overlaps", - "geometry_above", - "geometry_below", - "geometry_contained_3d", - "geometry_contains", - "geometry_contains_3d", - "geometry_contains_nd", - "geometry_left", - "geometry_overabove", - "geometry_overbelow", - "geometry_overlaps", - "geometry_overlaps_3d", - "geometry_overlaps_nd", - "geometry_overleft", - "geometry_overright", - "geometry_right", - "geometry_same", - "geometry_same_3d", - "geometry_same_nd", - "geometry_within", - "geometry_within_nd", - "inet_same_family", - "inter_lb", - "inter_sb", - "inter_sl", - "is_contained_2d", - "ishorizontal", - "isparallel", - "isperp", - "isvertical", - "jsonb_contained", - "jsonb_contains", - "jsonb_exists", - "jsonb_path_exists_opr", - "jsonb_path_match_opr", - "line_intersect", - "line_parallel", - "line_perp", - "lseg_intersect", - "lseg_parallel", - "lseg_perp", - "network_overlap", - "network_sub", - "network_subeq", - "network_sup", - "network_supeq", - "on_pb", - "on_pl", - "on_ppath", - "on_ps", - "on_sb", - "on_sl", - "overlaps_2d", - "path_contain_pt", - "path_inter", - "point_above", - "point_below", - "point_horiz", - "point_left", - "point_right", - "point_vert", - "poly_above", - "poly_below", - "poly_contain", - "poly_contain_pt", - "poly_contained", - "poly_left", - "poly_overabove", - "poly_overbelow", - "poly_overlap", - "poly_overleft", - "poly_overright", - "poly_right", - "poly_same", - "pt_contained_poly", - "st_3dintersects", - "st_contains", - "st_containsproperly", - "st_coveredby", - "st_covers", - "st_crosses", - "st_disjoint", - "st_equals", - "st_intersects", - "st_isvalid", - "st_orderingequals", - "st_overlaps", - "st_relatematch", - "st_touches", - "st_within", - "starts_with", - "ts_match_qv", - "ts_match_tq", - "ts_match_tt", - "ts_match_vq", - "tsq_mcontained", - "tsq_mcontains", - "xmlexists", - "xmlvalidate", - "xpath_exists" - ], - "type": "array", - "items": { - "type": "string" - } - }, - "typeRepresentations": { - "description": "The type representations to pick for base scalar types.", - "default": { - "bit": "string", - "bool": "boolean", - "bpchar": "string", - "char": "string", - "date": "date", - "float4": "float32", - "float8": "float64", - "int2": "int16", - "int4": "int32", - "int8": "int64AsString", - "numeric": "bigDecimalAsString", - "text": "string", - "time": "time", - "timestamp": "timestamp", - "timestamptz": "timestamptz", - "timetz": "timetz", - "uuid": "uUID", - "varchar": "string" - }, - "allOf": [ - { - "$ref": "#/definitions/TypeRepresentations" - } - ] - } - } - }, - "ComparisonOperatorMapping": { - "description": "Define the names that comparison operators will be exposed as by the automatic introspection.", - "type": "object", - "required": [ - "exposedName", - "operatorKind", - "operatorName" - ], - "properties": { - "operatorName": { - "description": "The name of the operator as defined by the database", - "type": "string" - }, - "exposedName": { - "description": "The name the operator will appear under in the exposed API", - "type": "string" - }, - "operatorKind": { - "description": "Equal, In or Custom.", - "allOf": [ - { - "$ref": "#/definitions/OperatorKind" - } - ] - } - } - }, - "TypeRepresentations": { - "description": "The type representations that guide introspection.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/TypeRepresentation" - } - }, - "MutationsVersion": { - "description": "Which version of the generated mutations will be included in the schema", - "type": "string", - "enum": [ - "v1", - "v2" - ] - } - } -}