add regex operators

This commit is contained in:
Sven Klemm
2018-03-13 23:06:39 +01:00
parent 046ee8efd8
commit b7c7030a46
2 changed files with 24 additions and 2 deletions

View File

@ -47,4 +47,12 @@ export class PostgresQueryBuilder {
return query;
}
buildDatatypeQuery(column: string) {
var query = "SELECT data_type FROM information_schema.columns WHERE ";
query += " table_schema = " + this.queryModel.quoteLiteral(this.target.schema);
query += " AND table_name = " + this.queryModel.quoteLiteral(this.target.table);
query += " AND column_name = " + this.queryModel.quoteLiteral(column);
return query;
}
}