Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
lmangani authored Dec 13, 2024
1 parent ade9d7d commit d972549
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ async function executeQueryPretty(query: string): Promise<any> {
// Print the SQL query within ```sql tags
const chunks = ['```sql\n', query, ' \n', '```\n', '\n'];
const p = new Table(result);
chunks.push(p.render());
chunks.push('\n');
const tableStr = p.render();
chunks.push('```\n');
chunks.push(tableStr.toString());
chunks.push('```\n');
resolve(chunks);
}
});
Expand Down

0 comments on commit d972549

Please sign in to comment.