Skip to content

Commit

Permalink
Merge pull request #2 from netinsight/order-tables
Browse files Browse the repository at this point in the history
set order on table query
  • Loading branch information
karlbohlmark authored Oct 26, 2021
2 parents b3480a7 + 37e167d commit b9d3c04
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "schemats",
"version": "3.0.5",
"version": "3.0.6",
"description": "Generate typescript interface definitions from (postgres) SQL database schema",
"keywords": [
"postgres",
Expand Down
3 changes: 2 additions & 1 deletion src/schemaPostgres.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ export class PostgresDatabase implements Database {
'SELECT table_name ' +
'FROM information_schema.columns ' +
'WHERE table_schema = $1 ' +
'GROUP BY table_name',
'GROUP BY table_name ' +
'ORDER BY table_name',
[schemaName],
(schemaItem: {table_name: string}) => schemaItem.table_name
)
Expand Down

0 comments on commit b9d3c04

Please sign in to comment.