UNPKG

@vectorize-io/vectorize-client

Version:
67 lines (56 loc) 1.64 kB
/* tslint:disable */ /* eslint-disable */ /** * Vectorize API * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; /** * Configuration for PostgreSQL connector * @export * @interface POSTGRESQLConfig */ export interface POSTGRESQLConfig { /** * Table Name. Example: Enter <table name> or <schema>.<table name> * @type {string} * @memberof POSTGRESQLConfig */ table: string; } /** * Check if a given object implements the POSTGRESQLConfig interface. */ export function instanceOfPOSTGRESQLConfig(value: object): value is POSTGRESQLConfig { if (!('table' in value) || value['table'] === undefined) return false; return true; } export function POSTGRESQLConfigFromJSON(json: any): POSTGRESQLConfig { return POSTGRESQLConfigFromJSONTyped(json, false); } export function POSTGRESQLConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): POSTGRESQLConfig { if (json == null) { return json; } return { 'table': json['table'], }; } export function POSTGRESQLConfigToJSON(json: any): POSTGRESQLConfig { return POSTGRESQLConfigToJSONTyped(json, false); } export function POSTGRESQLConfigToJSONTyped(value?: POSTGRESQLConfig | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'table': value['table'], }; }