Skip to content

Commit

Permalink
fix(types): remove non-exist types in query interface (#14229)
Browse files Browse the repository at this point in the history
* fix(types): remove non-exist types in query interface

* test: remove quoteTable

Co-authored-by: Zoé <zoe@ephys.dev>
Co-authored-by: Rik Smale <13023439+WikiRik@users.noreply.github.com>
  • Loading branch information
3 people committed Mar 11, 2022
1 parent c6787d9 commit 54c8137
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
10 changes: 0 additions & 10 deletions src/dialects/abstract/query-interface.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -631,11 +631,6 @@ export class QueryInterface {
options?: QueryInterfaceOptions
): Promise<void>;

/**
* Escape a table name
*/
public quoteTable(identifier: TableName): string;

/**
* Escape an identifier (e.g. a table or attribute name). If force is true, the identifier will be quoted
* even if the `quoteIdentifiers` option is false.
Expand All @@ -647,11 +642,6 @@ export class QueryInterface {
*/
public quoteIdentifiers(identifiers: string): string;

/**
* Escape a value (e.g. a string, number or date)
*/
public escape(value?: string | number | Date): string;

/**
* Set option for autocommit of a transaction
*/
Expand Down
2 changes: 0 additions & 2 deletions test/types/query-interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ async function test() {

await queryInterface.dropTrigger({ tableName: 'foo', as: 'bar', name: 'baz' }, 'foo', {});

await queryInterface.quoteTable({ tableName: 'foo', delimiter: 'bar' });

queryInterface.quoteIdentifier("foo");
queryInterface.quoteIdentifier("foo", true);
queryInterface.quoteIdentifiers("table.foo");
Expand Down

0 comments on commit 54c8137

Please sign in to comment.