@cratedb/cratedb-sqlparse
Version:
  
32 lines • 1.2 kB
TypeScript
/**
* Represents the metadata of the query, the actual interesting parts of the query such as:
* table, schema, columns, options...
*/
export class Metadata {
/**
* @param {Table[]} tables - The referenced tables in the query.
* @param {object} parameterizedProperties - The properties whose value can be used to inject parameters, they start with '$', example: `CREATE TABLE a (b text) WITH ("allocation.max_retries" = $1)`
* @param {object} withProperties - SQL properties, defined after a `WITH` statement. Example: `CREATE TABLE a (b text) WITH ("allocation.max_retries" = 5)`
*/
constructor(tables: Table[], parameterizedProperties: object, withProperties: object);
tables: Table[];
parameterizedProperties: any;
withProperties: any;
}
export class Table {
/**
*
* @param {string} name
* @param {string} schema
* @property {string} fqn - Full qualified name, example: "sys"."shards"
*/
constructor(name: string, schema: string);
name: string;
schema: string;
fqn: string;
/**
* @return {string} - The full qualified name, quoted.
*/
_getFqn(): string;
}
//# sourceMappingURL=models.d.ts.map