Skip to content

Commit

Permalink
Update base.js
Browse files Browse the repository at this point in the history
  • Loading branch information
r350178982 committed Jan 5, 2024
1 parent a435511 commit 704fc9a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ class Base {
async getTableByName(table_name) {
const res = await this.getTables();
return res.find(table=> table.name === table_name);

}

getMetadata() {
Expand Down Expand Up @@ -166,13 +165,11 @@ class Base {
async getColumnByName(table_name, column_name) {
const res = await this.listColumns(table_name);
return res.find(col=> col.name === column_name);

}

async getColumnsByType(table_name, column_type) {
const res = await this.listColumns(table_name);
return res.filter(col=> col.type === column_type);

}

insertColumn(table_name, column_name, column_type, column_key, column_data) {
Expand Down

0 comments on commit 704fc9a

Please sign in to comment.