diff --git a/CHANGELOG.md b/CHANGELOG.md index 476d66bf..efbf0ff6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,21 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [0.5.4](https://github.com/antares-sql/antares/compare/v0.5.3...v0.5.4) (2022-05-10) + + +### Bug Fixes + +* app blocked by BIT fields with no default, closes [#256](https://github.com/antares-sql/antares/issues/256) ([e62f280](https://github.com/antares-sql/antares/commit/e62f280528edb0ff4550ee75038ea216e81e4f10)) +* file upload input not working ([58611bf](https://github.com/antares-sql/antares/commit/58611bf07f343e6899a7446bfcd1247b0c75fc7f)) +* SSH tunnel not working ([6d61518](https://github.com/antares-sql/antares/commit/6d6151814e5006935d493b9b83dbda1aa5b35391)) +* unable to insert auto-generated datetime fields ([ff27244](https://github.com/antares-sql/antares/commit/ff272440bdc2a7fe699e04f8809bd5af8f9529c0)) + + +### Improvements + +* **UI:** left alignment for numbers in result tables, closes [#249](https://github.com/antares-sql/antares/issues/249) ([e02565c](https://github.com/antares-sql/antares/commit/e02565c0d9bb63efa76a79f38e3ed3586a30ad1c)) + ### [0.5.3](https://github.com/antares-sql/antares/compare/v0.5.2...v0.5.3) (2022-05-08) diff --git a/package.json b/package.json index a2b42fef..4a901236 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "antares", "productName": "Antares", - "version": "0.5.3", + "version": "0.5.4", "description": "A modern, fast and productivity driven SQL client with a focus in UX.", "license": "MIT", "repository": "https://github.com/antares-sql/antares.git", diff --git a/src/main/ipc-handlers/tables.ts b/src/main/ipc-handlers/tables.ts index 3af68a67..7ded1d4a 100644 --- a/src/main/ipc-handlers/tables.ts +++ b/src/main/ipc-handlers/tables.ts @@ -3,7 +3,7 @@ import * as antares from 'common/interfaces/antares'; import { InsertRowsParams } from 'common/interfaces/tableApis'; import { ipcMain } from 'electron'; import { faker } from '@faker-js/faker'; -import moment from 'moment'; +import * as moment from 'moment'; import { sqlEscaper } from 'common/libs/sqlEscaper'; import { TEXT, LONG_TEXT, ARRAY, TEXT_SEARCH, NUMBER, FLOAT, BLOB, BIT, DATE, DATETIME } from 'common/fieldTypes'; import customizations from 'common/customizations'; diff --git a/src/main/libs/clients/PostgreSQLClient.ts b/src/main/libs/clients/PostgreSQLClient.ts index c4550581..fca9a68d 100644 --- a/src/main/libs/clients/PostgreSQLClient.ts +++ b/src/main/libs/clients/PostgreSQLClient.ts @@ -144,7 +144,11 @@ export class PostgreSQLClient extends AntaresCore { async getConnectionPool () { const dbConfig = await this.getDbConfig(); - const pool = new pg.Pool({ ...dbConfig, max: this._poolSize }); + const pool = new pg.Pool({ + ...dbConfig, + max: this._poolSize, + idleTimeoutMillis: 0 + }); const connection = pool; if (this._params.readonly) { diff --git a/src/renderer/components/WorkspaceTabQuery.vue b/src/renderer/components/WorkspaceTabQuery.vue index ecd2dcb7..5a402ffa 100644 --- a/src/renderer/components/WorkspaceTabQuery.vue +++ b/src/renderer/components/WorkspaceTabQuery.vue @@ -255,7 +255,8 @@ export default { durationsCount: 0, affectedCount: null, editorHeight: 200, - isHistoryOpen: false + isHistoryOpen: false, + debounceTimeout: null }; }, computed: { @@ -285,6 +286,19 @@ export default { } }, watch: { + query (val) { + clearTimeout(this.debounceTimeout); + + this.debounceTimeout = setTimeout(() => { + this.updateTabContent({ + uid: this.connection.uid, + tab: this.tab.uid, + type: 'query', + schema: this.selectedSchema, + content: val + }); + }, 200); + }, isSelected (val) { if (val) { this.changeBreadcrumbs({ schema: this.selectedSchema, query: `Query #${this.tab.index}` }); @@ -357,13 +371,6 @@ export default { return acc + (curr.report ? curr.report.affectedRows : 0); }, null); - this.updateTabContent({ - uid: this.connection.uid, - tab: this.tab.uid, - type: 'query', - schema: this.selectedSchema, - content: query - }); this.saveHistory(params); if (!this.autocommit) this.setUnsavedChanges({ uid: this.connection.uid, tUid: this.tabUid, isChanged: true }); diff --git a/src/renderer/scss/_data-types.scss b/src/renderer/scss/_data-types.scss index c4fc63fa..736217f5 100644 --- a/src/renderer/scss/_data-types.scss +++ b/src/renderer/scss/_data-types.scss @@ -1,14 +1,8 @@ @mixin type-colors($types) { - $numbers: ('int','tinyint','smallint','mediumint','float','double','decimal'); - @each $type, $color in $types { .type-#{$type} { color: $color; - - @if index($numbers, $type) { - text-align: right; - } } } }