mirror of
https://github.com/Fabio286/antares.git
synced 2025-02-03 10:47:31 +01:00
Merge branch 'master' of https://github.com/antares-sql/antares into ts-renderer
This commit is contained in:
commit
5a50ba88e8
15
CHANGELOG.md
15
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.
|
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)
|
### [0.5.3](https://github.com/antares-sql/antares/compare/v0.5.2...v0.5.3) (2022-05-08)
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "antares",
|
"name": "antares",
|
||||||
"productName": "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.",
|
"description": "A modern, fast and productivity driven SQL client with a focus in UX.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": "https://github.com/antares-sql/antares.git",
|
"repository": "https://github.com/antares-sql/antares.git",
|
||||||
|
@ -3,7 +3,7 @@ import * as antares from 'common/interfaces/antares';
|
|||||||
import { InsertRowsParams } from 'common/interfaces/tableApis';
|
import { InsertRowsParams } from 'common/interfaces/tableApis';
|
||||||
import { ipcMain } from 'electron';
|
import { ipcMain } from 'electron';
|
||||||
import { faker } from '@faker-js/faker';
|
import { faker } from '@faker-js/faker';
|
||||||
import moment from 'moment';
|
import * as moment from 'moment';
|
||||||
import { sqlEscaper } from 'common/libs/sqlEscaper';
|
import { sqlEscaper } from 'common/libs/sqlEscaper';
|
||||||
import { TEXT, LONG_TEXT, ARRAY, TEXT_SEARCH, NUMBER, FLOAT, BLOB, BIT, DATE, DATETIME } from 'common/fieldTypes';
|
import { TEXT, LONG_TEXT, ARRAY, TEXT_SEARCH, NUMBER, FLOAT, BLOB, BIT, DATE, DATETIME } from 'common/fieldTypes';
|
||||||
import customizations from 'common/customizations';
|
import customizations from 'common/customizations';
|
||||||
|
@ -144,7 +144,11 @@ export class PostgreSQLClient extends AntaresCore {
|
|||||||
|
|
||||||
async getConnectionPool () {
|
async getConnectionPool () {
|
||||||
const dbConfig = await this.getDbConfig();
|
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;
|
const connection = pool;
|
||||||
|
|
||||||
if (this._params.readonly) {
|
if (this._params.readonly) {
|
||||||
|
@ -255,7 +255,8 @@ export default {
|
|||||||
durationsCount: 0,
|
durationsCount: 0,
|
||||||
affectedCount: null,
|
affectedCount: null,
|
||||||
editorHeight: 200,
|
editorHeight: 200,
|
||||||
isHistoryOpen: false
|
isHistoryOpen: false,
|
||||||
|
debounceTimeout: null
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -285,6 +286,19 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
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) {
|
isSelected (val) {
|
||||||
if (val) {
|
if (val) {
|
||||||
this.changeBreadcrumbs({ schema: this.selectedSchema, query: `Query #${this.tab.index}` });
|
this.changeBreadcrumbs({ schema: this.selectedSchema, query: `Query #${this.tab.index}` });
|
||||||
@ -357,13 +371,6 @@ export default {
|
|||||||
return acc + (curr.report ? curr.report.affectedRows : 0);
|
return acc + (curr.report ? curr.report.affectedRows : 0);
|
||||||
}, null);
|
}, null);
|
||||||
|
|
||||||
this.updateTabContent({
|
|
||||||
uid: this.connection.uid,
|
|
||||||
tab: this.tab.uid,
|
|
||||||
type: 'query',
|
|
||||||
schema: this.selectedSchema,
|
|
||||||
content: query
|
|
||||||
});
|
|
||||||
this.saveHistory(params);
|
this.saveHistory(params);
|
||||||
if (!this.autocommit)
|
if (!this.autocommit)
|
||||||
this.setUnsavedChanges({ uid: this.connection.uid, tUid: this.tabUid, isChanged: true });
|
this.setUnsavedChanges({ uid: this.connection.uid, tUid: this.tabUid, isChanged: true });
|
||||||
|
@ -1,14 +1,8 @@
|
|||||||
|
|
||||||
@mixin type-colors($types) {
|
@mixin type-colors($types) {
|
||||||
$numbers: ('int','tinyint','smallint','mediumint','float','double','decimal');
|
|
||||||
|
|
||||||
@each $type, $color in $types {
|
@each $type, $color in $types {
|
||||||
.type-#{$type} {
|
.type-#{$type} {
|
||||||
color: $color;
|
color: $color;
|
||||||
|
|
||||||
@if index($numbers, $type) {
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user