JS API for the JDBC API Service

Hierarchy

  • JdbcApiService

Constructors

Properties

NAME: string

The name of the JDBC API Service. Used by the client for the name in the variable descriptor when calling getObject from the core connection.

TYPE: string

The type of the JDBC API Service. Used by the client for the type in the variable descriptor when calling getObject from the core connection.

Methods

  • Connects to a JDBC session.

    Parameters

    • driverName: string

      the JDBC driver name

    • uri: string

      the JDBC URI

    • userName: string

      the user name

    • password: string

      the password

    Returns Promise<Number>

    a promise that resolves to the session ID

  • Disconnects a JDBC session.

    Parameters

    • sessionId: number

      the session ID

    Returns Promise<void>

    a promise that resolves on successful disconnect

  • Generates a schema from a jdbc query.

    Parameters

    • sessionId: number

      the session id

    • catalog: string

      the catalog

    • query: string

      the jdbc query

    • namespace: string

      the schema namespace

    • tableName: string

      the schema table name

    • assessmentMethod: string

      the assessment method for type inference

    Returns Promise<string>

    a promise that resolves to a schema xml string

  • Gets the catalog names as a Table for a session.

    Parameters

    • sessionId: number

      the session id

    Returns Promise<Table>

    a promise that resolves to a Table

  • Gets the table names as a Table for a session and catalog name.

    Parameters

    • sessionId: number

      the session id

    • catalogName: string

      the catalog name

    Returns Promise<Table>

    a promise that resolves to a Table

  • Get a preview table for a JDBC import source.

    Parameters

    • sessionId: number

      the session id

    • catalog: string

      the catalog

    • query: string

      the jdbc query

    • schemaXml: string

      the schema as an xml string

    • importSourceName: string

      the import source name

    • partitionFormula: string

      the partition formula

    • intradayPartitionColumn: string

      the intraday partition column

    • strict: boolean

      if the parser should use strict mode

    • partitionSubstitution: string

      the partition substitution

    • substitutionDateFormat: string

    Returns Promise<Table>

    a preview table for the query

  • Gets a preview table for a jdbc query.

    Parameters

    • sessionId: number

      the session id

    • catalog: string

      the catalog

    • query: string

      the jdbc query

    • maxRows: number

      the max rows for the table

    Returns Promise<Table>

    a promise that resolves to a table