Skip to content
This repository has been archived by the owner on Mar 18, 2022. It is now read-only.

Commit

Permalink
refactor(cockroachdb): redundant executeQuery() (typeorm#4303)
Browse files Browse the repository at this point in the history
  • Loading branch information
yzevm authored and vlapo committed Jun 17, 2019
1 parent d447e86 commit efe1a5f
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/driver/cockroachdb/CockroachDriver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -735,16 +735,4 @@ export class CockroachDriver implements Driver {
});
}

/**
* Executes given query.
*/
protected executeQuery(connection: any, query: string) {
return new Promise((ok, fail) => {
connection.query(query, (err: any, result: any) => {
if (err) return fail(err);
ok(result);
});
});
}

}

0 comments on commit efe1a5f

Please sign in to comment.