mirror of
https://github.com/Fabio286/antares.git
synced 2025-06-05 21:59:22 +02:00
Compare commits
28 Commits
Author | SHA1 | Date | |
---|---|---|---|
83b3ca563a | |||
0fab3bc43c | |||
2e11a0c032 | |||
193042b92d | |||
51b14195a8 | |||
f831fcd442 | |||
3104847b92 | |||
|
bc0b029369 | ||
efee7f3a0e | |||
7c820b1827 | |||
38ec703705 | |||
|
2afb66a2e6 | ||
|
5a5af3af5e | ||
8f0e5407ae | |||
8bed7c2f34 | |||
f4a2f43ea4 | |||
|
6063b3f697 | ||
2f5fa0f2e4 | |||
703a515462 | |||
9d8e9a5e1f | |||
1c73503138 | |||
32bbc45329 | |||
9d90dc362e | |||
e808b86c52 | |||
6e01f0f2e7 | |||
38bfea279c | |||
0044522390 | |||
|
462ede8dc7 |
@@ -230,6 +230,15 @@
|
||||
"code",
|
||||
"translation"
|
||||
]
|
||||
},
|
||||
{
|
||||
"login": "zxp19821005",
|
||||
"name": "Woodenman",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/4915850?v=4",
|
||||
"profile": "https://github.com/zxp19821005",
|
||||
"contributions": [
|
||||
"platform"
|
||||
]
|
||||
}
|
||||
],
|
||||
"contributorsPerLine": 7,
|
||||
|
1
.github/dependabot.yml
vendored
1
.github/dependabot.yml
vendored
@@ -11,3 +11,4 @@ updates:
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "monthly"
|
||||
target-branch: "develop"
|
||||
|
42
.github/workflows/build-beta.yml
vendored
Normal file
42
.github/workflows/build-beta.yml
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
name: Build & release [BETA]
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+'
|
||||
|
||||
env:
|
||||
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
os: [macos-11, ubuntu-latest, windows-latest]
|
||||
|
||||
steps:
|
||||
- name: Check out Git repository
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
ref: beta
|
||||
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm i
|
||||
|
||||
- name: "Build"
|
||||
run: npm run build
|
||||
|
||||
- name: Release
|
||||
uses: ncipollo/release-action@v1
|
||||
with:
|
||||
artifacts: "build/*.AppImage,build/*.yml,build/*.deb,build/*.dmg,build/*.blockmap,build/*.zip,build/*.exe"
|
||||
allowUpdates: true
|
||||
draft: true
|
||||
generateReleaseNotes: true
|
11
.github/workflows/build.yml
vendored
11
.github/workflows/build.yml
vendored
@@ -1,9 +1,12 @@
|
||||
name: Build & release
|
||||
name: Build & release [STABLE]
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v*"
|
||||
- 'v[0-9]+.[0-9]+.[0-9]+'
|
||||
|
||||
env:
|
||||
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
|
||||
|
||||
jobs:
|
||||
release:
|
||||
@@ -11,11 +14,13 @@ jobs:
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
os: [macos-11, ubuntu-20.04, windows-latest]
|
||||
os: [macos-11, ubuntu-latest, windows-latest]
|
||||
|
||||
steps:
|
||||
- name: Check out Git repository
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
ref: master
|
||||
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v3
|
||||
|
5
.github/workflows/test-e2e-win.yml
vendored
5
.github/workflows/test-e2e-win.yml
vendored
@@ -1,6 +1,9 @@
|
||||
name: Test end-to-end [WINDOWS]
|
||||
|
||||
on: push
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
release:
|
||||
|
45
CHANGELOG.md
45
CHANGELOG.md
@@ -2,6 +2,51 @@
|
||||
|
||||
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.7.15](https://github.com/antares-sql/antares/compare/v0.7.14...v0.7.15) (2023-07-31)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* export file name with hour, minutes and seconds, closes [#610](https://github.com/antares-sql/antares/issues/610) ([2f5fa0f](https://github.com/antares-sql/antares/commit/2f5fa0f2e416e88753c9dc2bf32edefba8c4e072))
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* display content of BLOB fields if not binary, fixes [#628](https://github.com/antares-sql/antares/issues/628) ([f831fcd](https://github.com/antares-sql/antares/commit/f831fcd442f16a03f0ea83ff5bf77a4a79906eb6))
|
||||
* **MySQL:** error insertinf new fields with some MySQL configurations, fixes [#360](https://github.com/antares-sql/antares/issues/360) ([51b1419](https://github.com/antares-sql/antares/commit/51b14195a8a6c7e7f1b12bd4b86b7164a56b2aa5))
|
||||
* **MySQL:** unable to set more than one value in SET fields ([7c820b1](https://github.com/antares-sql/antares/commit/7c820b18276e4ed5e381d91110acd032862a5be9))
|
||||
|
||||
### [0.7.14](https://github.com/antares-sql/antares/compare/v0.7.13...v0.7.14) (2023-07-07)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* button to open view settings tab ([32bbc45](https://github.com/antares-sql/antares/commit/32bbc453294736970ddbcadd3cc45597277f5bda))
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* unable to insert new rows ([1c73503](https://github.com/antares-sql/antares/commit/1c735031380c48aa8b08ed5ce3df80008dc72af8))
|
||||
|
||||
|
||||
### Improvements
|
||||
|
||||
* **PostgreSQL:** minor improvement to schema selection ([9d8e9a5](https://github.com/antares-sql/antares/commit/9d8e9a5e1fda190ee7b3d4fd59e6178dd5ec1651))
|
||||
|
||||
### [0.7.13](https://github.com/antares-sql/antares/compare/v0.7.12...v0.7.13) (2023-07-06)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* button to open table settings tab, closes [#608](https://github.com/antares-sql/antares/issues/608) ([38bfea2](https://github.com/antares-sql/antares/commit/38bfea279ce93366dfd2021d0e91622a5a88878e))
|
||||
* update connection ([462ede8](https://github.com/antares-sql/antares/commit/462ede8dc701aaf9c6089b3ec41eea0f31babdf9))
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **PostgreSQL:** unable to connect to database, fixes [#614](https://github.com/antares-sql/antares/issues/614) ([e808b86](https://github.com/antares-sql/antares/commit/e808b86c52b8488e0c079a9f0ddce225338af4c0))
|
||||
* unable to copy as sql inserts with BIT fileds, fixes [#613](https://github.com/antares-sql/antares/issues/613) ([6e01f0f](https://github.com/antares-sql/antares/commit/6e01f0f2e7194284341f89a44839d16398358f9b))
|
||||
|
||||
### [0.7.12](https://github.com/antares-sql/antares/compare/v0.7.11...v0.7.12) (2023-07-03)
|
||||
|
||||
|
||||
|
@@ -66,7 +66,7 @@ On macOS you can run `.dmg` distribution following [this guide](https://support.
|
||||
|
||||
## Download
|
||||
|
||||
[](https://snapcraft.io/antares) [](https://aur.archlinux.org/packages/antares-sql/) [<img src="https://developer.microsoft.com/store/badges/images/English_get-it-from-MS.png" style="height: 56px">](https://www.microsoft.com/p/antares-sql-client/9nhtb9sq51r1?cid=storebadge&ocid=badge&rtc=1&activetab=pivot:overviewtab)
|
||||
[](https://snapcraft.io/antares) [](https://aur.archlinux.org/packages/antares-sql-bin) [<img src="https://developer.microsoft.com/store/badges/images/English_get-it-from-MS.png" style="height: 56px">](https://www.microsoft.com/p/antares-sql-client/9nhtb9sq51r1?cid=storebadge&ocid=badge&rtc=1&activetab=pivot:overviewtab)
|
||||
🚀 **[Other Downloads](https://github.com/Fabio286/antares/releases/latest)**
|
||||
|
||||
## Coming soon
|
||||
@@ -151,6 +151,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
||||
<td align="center" valign="top" width="14.28%"><a href="https://github.com/555cider"><img src="https://avatars.githubusercontent.com/u/73565447?v=4?s=100" width="100px;" alt="555cider"/><br /><sub><b>555cider</b></sub></a><br /><a href="#translation-555cider" title="Translation">🌍</a></td>
|
||||
<td align="center" valign="top" width="14.28%"><a href="https://github.com/m1khal3v"><img src="https://avatars.githubusercontent.com/u/41085561?v=4?s=100" width="100px;" alt="Anton Mikhalev"/><br /><sub><b>Anton Mikhalev</b></sub></a><br /><a href="#translation-m1khal3v" title="Translation">🌍</a></td>
|
||||
<td align="center" valign="top" width="14.28%"><a href="https://64k.nl/"><img src="https://avatars.githubusercontent.com/u/3864423?v=4?s=100" width="100px;" alt="René"/><br /><sub><b>René</b></sub></a><br /><a href="https://github.com/antares-sql/antares/commits?author=64knl" title="Code">💻</a> <a href="#translation-64knl" title="Translation">🌍</a></td>
|
||||
<td align="center" valign="top" width="14.28%"><a href="https://github.com/zxp19821005"><img src="https://avatars.githubusercontent.com/u/4915850?v=4?s=100" width="100px;" alt="Woodenman"/><br /><sub><b>Woodenman</b></sub></a><br /><a href="#platform-zxp19821005" title="Packaging/porting to new platform">📦</a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
38
package-lock.json
generated
38
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "antares",
|
||||
"version": "0.7.12",
|
||||
"version": "0.7.15",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "antares",
|
||||
"version": "0.7.12",
|
||||
"version": "0.7.15",
|
||||
"hasInstallScript": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
@@ -29,7 +29,7 @@
|
||||
"moment": "~2.29.4",
|
||||
"mysql2": "~2.3.2",
|
||||
"node-firebird": "~1.1.4",
|
||||
"pg": "~8.7.1",
|
||||
"pg": "~8.11.1",
|
||||
"pg-connection-string": "~2.5.0",
|
||||
"pg-query-stream": "~4.2.3",
|
||||
"pgsql-ast-parser": "~7.2.1",
|
||||
@@ -10439,22 +10439,26 @@
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/pg": {
|
||||
"version": "8.7.3",
|
||||
"license": "MIT",
|
||||
"version": "8.11.1",
|
||||
"resolved": "https://registry.npmjs.org/pg/-/pg-8.11.1.tgz",
|
||||
"integrity": "sha512-utdq2obft07MxaDg0zBJI+l/M3mBRfIpEN3iSemsz0G5F2/VXx+XzqF4oxrbIZXQxt2AZzIUzyVg/YM6xOP/WQ==",
|
||||
"dependencies": {
|
||||
"buffer-writer": "2.0.0",
|
||||
"packet-reader": "1.0.0",
|
||||
"pg-connection-string": "^2.5.0",
|
||||
"pg-pool": "^3.5.1",
|
||||
"pg-protocol": "^1.5.0",
|
||||
"pg-connection-string": "^2.6.1",
|
||||
"pg-pool": "^3.6.1",
|
||||
"pg-protocol": "^1.6.0",
|
||||
"pg-types": "^2.1.0",
|
||||
"pgpass": "1.x"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 8.0.0"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"pg-cloudflare": "^1.1.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"pg-native": ">=2.0.0"
|
||||
"pg-native": ">=3.0.1"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"pg-native": {
|
||||
@@ -10462,6 +10466,12 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/pg-cloudflare": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/pg-cloudflare/-/pg-cloudflare-1.1.1.tgz",
|
||||
"integrity": "sha512-xWPagP/4B6BgFO+EKz3JONXv3YDgvkbVrGw2mTo3D6tVDQRh1e7cqVGvyR3BE+eQgAvx1XhW/iEASj4/jCWl3Q==",
|
||||
"optional": true
|
||||
},
|
||||
"node_modules/pg-connection-string": {
|
||||
"version": "2.5.0",
|
||||
"license": "MIT"
|
||||
@@ -10481,8 +10491,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/pg-pool": {
|
||||
"version": "3.6.0",
|
||||
"license": "MIT",
|
||||
"version": "3.6.1",
|
||||
"resolved": "https://registry.npmjs.org/pg-pool/-/pg-pool-3.6.1.tgz",
|
||||
"integrity": "sha512-jizsIzhkIitxCGfPRzJn1ZdcosIt3pz9Sh3V01fm1vZnbnCMgmGl5wvGGdNN2EL9Rmb0EcFoCkixH4Pu+sP9Og==",
|
||||
"peerDependencies": {
|
||||
"pg": ">=8.0"
|
||||
}
|
||||
@@ -10512,6 +10523,11 @@
|
||||
"node": ">=4"
|
||||
}
|
||||
},
|
||||
"node_modules/pg/node_modules/pg-connection-string": {
|
||||
"version": "2.6.1",
|
||||
"resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.6.1.tgz",
|
||||
"integrity": "sha512-w6ZzNu6oMmIzEAYVw+RLK0+nqHPt8K3ZnknKi+g48Ak2pr3dtljJW3o+D/n2zzCG07Zoe9VOX3aiKpj+BN0pjg=="
|
||||
},
|
||||
"node_modules/pgpass": {
|
||||
"version": "1.0.5",
|
||||
"license": "MIT",
|
||||
|
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "antares",
|
||||
"productName": "Antares",
|
||||
"version": "0.7.12",
|
||||
"version": "0.7.15",
|
||||
"description": "A modern, fast and productivity driven SQL client with a focus in UX.",
|
||||
"license": "MIT",
|
||||
"repository": "https://github.com/antares-sql/antares.git",
|
||||
@@ -16,7 +16,7 @@
|
||||
"build:appx": "npm run build -- --win appx",
|
||||
"rebuild:electron": "rimraf ./dist && npm run postinstall && npm run devtools:install",
|
||||
"release": "standard-version",
|
||||
"release:pre": "npm run release -- --prerelease alpha",
|
||||
"release:beta": "npm run release -- --prerelease beta",
|
||||
"devtools:install": "node scripts/devtoolsInstaller",
|
||||
"postinstall": "electron-builder install-app-deps",
|
||||
"test:e2e": "npm run compile && npm run test:e2e-dry",
|
||||
@@ -136,7 +136,7 @@
|
||||
"moment": "~2.29.4",
|
||||
"mysql2": "~2.3.2",
|
||||
"node-firebird": "~1.1.4",
|
||||
"pg": "~8.7.1",
|
||||
"pg": "~8.11.1",
|
||||
"pg-connection-string": "~2.5.0",
|
||||
"pg-query-stream": "~4.2.3",
|
||||
"pgsql-ast-parser": "~7.2.1",
|
||||
|
@@ -72,7 +72,7 @@ export const escapeAndQuote = (val: string, client: ClientCode) => {
|
||||
export const valueToSqlString = (args: {
|
||||
val: any;
|
||||
client: ClientCode;
|
||||
field: {type: string; datePrecision: number; isArray?: boolean};
|
||||
field: {type: string; datePrecision?: number; precision?: number | false; isArray?: boolean};
|
||||
}): string => {
|
||||
let parsedValue;
|
||||
const { val, client, field } = args;
|
||||
@@ -105,7 +105,7 @@ export const valueToSqlString = (args: {
|
||||
else if (TEXT_SEARCH.includes(field.type))
|
||||
parsedValue = `'${val.replaceAll('\'', '\'\'')}'`;
|
||||
else if (BIT.includes(field.type))
|
||||
parsedValue = `b'${hexToBinary(Buffer.from(val).toString('hex') as undefined as HexChar[])}'`;
|
||||
parsedValue = `b'${hexToBinary(Buffer.from(new Uint8Array(Object.values(val))).toString('hex') as undefined as HexChar[])}'`;
|
||||
else if (BLOB.includes(field.type)) {
|
||||
let buffer: Buffer;
|
||||
if (val instanceof Uint8Array)
|
||||
|
@@ -1,11 +1,20 @@
|
||||
import { ipcMain } from 'electron';
|
||||
import { autoUpdater } from 'electron-updater';
|
||||
import * as Store from 'electron-store';
|
||||
const persistentStore = new Store({ name: 'settings', clearInvalidConfig: true });
|
||||
const isMacOS = process.platform === 'darwin';
|
||||
|
||||
const persistentStore = new Store({
|
||||
name: 'settings',
|
||||
clearInvalidConfig: true,
|
||||
migrations: {
|
||||
'0.7.15': store => {
|
||||
store.set('allow_prerelease', false);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
const isMacOS = process.platform === 'darwin';
|
||||
let mainWindow: Electron.IpcMainEvent;
|
||||
autoUpdater.allowPrerelease = persistentStore.get('allow_prerelease', true) as boolean;
|
||||
autoUpdater.allowPrerelease = persistentStore.get('allow_prerelease', false) as boolean;
|
||||
|
||||
export default () => {
|
||||
ipcMain.on('check-for-updates', event => {
|
||||
|
@@ -582,7 +582,7 @@ export class MySQLClient extends AntaresCore {
|
||||
return rows.map((field) => {
|
||||
const numLengthMatch = field.COLUMN_TYPE.match(/int\(([^)]+)\)/);
|
||||
const numLength = numLengthMatch ? +numLengthMatch.pop() : field.NUMERIC_PRECISION || null;
|
||||
const enumValues = /(enum|set)/.test(field.COLUMN_TYPE)
|
||||
const enumValues = /(enum)/.test(field.COLUMN_TYPE)
|
||||
? field.COLUMN_TYPE.match(/\(([^)]+)\)/)[0].slice(1, -1)
|
||||
: null;
|
||||
|
||||
@@ -865,21 +865,23 @@ export class MySQLClient extends AntaresCore {
|
||||
options
|
||||
} = params;
|
||||
|
||||
let sql = `ALTER TABLE \`${schema}\`.\`${table}\` `;
|
||||
const alterColumns: string[] = [];
|
||||
const sql = `ALTER TABLE \`${schema}\`.\`${table}\` `;
|
||||
const alterColumnsAdd: string[] = [];
|
||||
const alterColumnsChange: string[] = [];
|
||||
const alterColumnsDrop: string[] = [];
|
||||
|
||||
// OPTIONS
|
||||
if ('comment' in options) alterColumns.push(`COMMENT='${options.comment}'`);
|
||||
if ('engine' in options) alterColumns.push(`ENGINE=${options.engine}`);
|
||||
if ('autoIncrement' in options) alterColumns.push(`AUTO_INCREMENT=${+options.autoIncrement}`);
|
||||
if ('collation' in options) alterColumns.push(`COLLATE='${options.collation}'`);
|
||||
if ('comment' in options) alterColumnsChange.push(`COMMENT='${options.comment}'`);
|
||||
if ('engine' in options) alterColumnsChange.push(`ENGINE=${options.engine}`);
|
||||
if ('autoIncrement' in options) alterColumnsChange.push(`AUTO_INCREMENT=${+options.autoIncrement}`);
|
||||
if ('collation' in options) alterColumnsChange.push(`COLLATE='${options.collation}'`);
|
||||
|
||||
// ADD FIELDS
|
||||
additions.forEach(addition => {
|
||||
const typeInfo = this.getTypeInfo(addition.type);
|
||||
const length = typeInfo.length ? addition.enumValues || addition.numLength || addition.charLength || addition.datePrecision : false;
|
||||
|
||||
alterColumns.push(`ADD COLUMN \`${addition.name}\`
|
||||
alterColumnsAdd.push(`ADD COLUMN \`${addition.name}\`
|
||||
${addition.type.toUpperCase()}${length ? `(${length}${addition.numScale ? `,${addition.numScale}` : ''})` : ''}
|
||||
${addition.unsigned ? 'UNSIGNED' : ''}
|
||||
${addition.zerofill ? 'ZEROFILL' : ''}
|
||||
@@ -898,18 +900,18 @@ export class MySQLClient extends AntaresCore {
|
||||
let type = addition.type;
|
||||
|
||||
if (type === 'PRIMARY')
|
||||
alterColumns.push(`ADD PRIMARY KEY (${fields})`);
|
||||
alterColumnsAdd.push(`ADD PRIMARY KEY (${fields})`);
|
||||
else {
|
||||
if (type === 'UNIQUE')
|
||||
type = 'UNIQUE INDEX';
|
||||
|
||||
alterColumns.push(`ADD ${type} \`${addition.name}\` (${fields})`);
|
||||
alterColumnsAdd.push(`ADD ${type} \`${addition.name}\` (${fields})`);
|
||||
}
|
||||
});
|
||||
|
||||
// ADD FOREIGN KEYS
|
||||
foreignChanges.additions.forEach(addition => {
|
||||
alterColumns.push(`ADD CONSTRAINT \`${addition.constraintName}\` FOREIGN KEY (\`${addition.field}\`) REFERENCES \`${addition.refTable}\` (\`${addition.refField}\`) ON UPDATE ${addition.onUpdate} ON DELETE ${addition.onDelete}`);
|
||||
alterColumnsAdd.push(`ADD CONSTRAINT \`${addition.constraintName}\` FOREIGN KEY (\`${addition.field}\`) REFERENCES \`${addition.refTable}\` (\`${addition.refField}\`) ON UPDATE ${addition.onUpdate} ON DELETE ${addition.onDelete}`);
|
||||
});
|
||||
|
||||
// CHANGE FIELDS
|
||||
@@ -917,7 +919,7 @@ export class MySQLClient extends AntaresCore {
|
||||
const typeInfo = this.getTypeInfo(change.type);
|
||||
const length = typeInfo.length ? change.enumValues || change.numLength || change.charLength || change.datePrecision : false;
|
||||
|
||||
alterColumns.push(`CHANGE COLUMN \`${change.orgName}\` \`${change.name}\`
|
||||
alterColumnsChange.push(`CHANGE COLUMN \`${change.orgName}\` \`${change.name}\`
|
||||
${change.type.toUpperCase()}${length ? `(${length}${change.numScale ? `,${change.numScale}` : ''})` : ''}
|
||||
${change.unsigned ? 'UNSIGNED' : ''}
|
||||
${change.zerofill ? 'ZEROFILL' : ''}
|
||||
@@ -933,53 +935,56 @@ export class MySQLClient extends AntaresCore {
|
||||
// CHANGE INDEX
|
||||
indexChanges.changes.forEach(change => {
|
||||
if (change.oldType === 'PRIMARY')
|
||||
alterColumns.push('DROP PRIMARY KEY');
|
||||
alterColumnsChange.push('DROP PRIMARY KEY');
|
||||
else
|
||||
alterColumns.push(`DROP INDEX \`${change.oldName}\``);
|
||||
alterColumnsChange.push(`DROP INDEX \`${change.oldName}\``);
|
||||
|
||||
const fields = change.fields.map(field => `\`${field}\``).join(',');
|
||||
let type = change.type;
|
||||
|
||||
if (type === 'PRIMARY')
|
||||
alterColumns.push(`ADD PRIMARY KEY (${fields})`);
|
||||
alterColumnsChange.push(`ADD PRIMARY KEY (${fields})`);
|
||||
else {
|
||||
if (type === 'UNIQUE')
|
||||
type = 'UNIQUE INDEX';
|
||||
|
||||
alterColumns.push(`ADD ${type} \`${change.name}\` (${fields})`);
|
||||
alterColumnsChange.push(`ADD ${type} \`${change.name}\` (${fields})`);
|
||||
}
|
||||
});
|
||||
|
||||
// CHANGE FOREIGN KEYS
|
||||
foreignChanges.changes.forEach(change => {
|
||||
alterColumns.push(`DROP FOREIGN KEY \`${change.oldName}\``);
|
||||
alterColumns.push(`ADD CONSTRAINT \`${change.constraintName}\` FOREIGN KEY (\`${change.field}\`) REFERENCES \`${change.refTable}\` (\`${change.refField}\`) ON UPDATE ${change.onUpdate} ON DELETE ${change.onDelete}`);
|
||||
alterColumnsChange.push(`DROP FOREIGN KEY \`${change.oldName}\``);
|
||||
alterColumnsChange.push(`ADD CONSTRAINT \`${change.constraintName}\` FOREIGN KEY (\`${change.field}\`) REFERENCES \`${change.refTable}\` (\`${change.refField}\`) ON UPDATE ${change.onUpdate} ON DELETE ${change.onDelete}`);
|
||||
});
|
||||
|
||||
// DROP FIELDS
|
||||
deletions.forEach(deletion => {
|
||||
alterColumns.push(`DROP COLUMN \`${deletion.name}\``);
|
||||
alterColumnsDrop.push(`DROP COLUMN \`${deletion.name}\``);
|
||||
});
|
||||
|
||||
// DROP INDEX
|
||||
indexChanges.deletions.forEach(deletion => {
|
||||
if (deletion.type === 'PRIMARY')
|
||||
alterColumns.push('DROP PRIMARY KEY');
|
||||
alterColumnsDrop.push('DROP PRIMARY KEY');
|
||||
else
|
||||
alterColumns.push(`DROP INDEX \`${deletion.name}\``);
|
||||
alterColumnsDrop.push(`DROP INDEX \`${deletion.name}\``);
|
||||
});
|
||||
|
||||
// DROP FOREIGN KEYS
|
||||
foreignChanges.deletions.forEach(deletion => {
|
||||
alterColumns.push(`DROP FOREIGN KEY \`${deletion.constraintName}\``);
|
||||
alterColumnsDrop.push(`DROP FOREIGN KEY \`${deletion.constraintName}\``);
|
||||
});
|
||||
|
||||
sql += alterColumns.join(', ');
|
||||
const alterQueryes = [];
|
||||
if (alterColumnsAdd.length) alterQueryes.push(sql+alterColumnsAdd.join(', '));
|
||||
if (alterColumnsChange.length) alterQueryes.push(sql+alterColumnsChange.join(', '));
|
||||
if (alterColumnsDrop.length) alterQueryes.push(sql+alterColumnsDrop.join(', '));
|
||||
|
||||
// RENAME
|
||||
if (options.name) sql += `; RENAME TABLE \`${schema}\`.\`${table}\` TO \`${schema}\`.\`${options.name}\``;
|
||||
if (options.name) alterQueryes.push(`RENAME TABLE \`${schema}\`.\`${table}\` TO \`${schema}\`.\`${options.name}\``);
|
||||
|
||||
return await this.raw(sql);
|
||||
return await this.raw(alterQueryes.join(';'));
|
||||
}
|
||||
|
||||
async duplicateTable (params: { schema: string; table: string }) {
|
||||
|
@@ -1579,7 +1579,7 @@ export class PostgreSQLClient extends AntaresCore {
|
||||
if (args.tabUid && isPool)
|
||||
this._runningConnections.set(args.tabUid, (connection as pg.PoolClient & { processID: number }).processID);
|
||||
|
||||
if (args.schema && args.schema !== 'public')
|
||||
if (args.schema)
|
||||
await this.use(args.schema, connection);
|
||||
|
||||
for (const query of queries) {
|
||||
|
@@ -327,7 +327,7 @@ const schemaItems = computed(() => {
|
||||
return [];
|
||||
});
|
||||
const filename = computed(() => {
|
||||
const date = moment().format('YYYY-MM-DD');
|
||||
const date = moment().format('YYYY-MM-DD_HH-mm-ss');
|
||||
return `${props.selectedSchema}_${date}.${options.value.outputFormat}`;
|
||||
});
|
||||
const dumpFilePath = computed(() => `${basePath.value}/${filename.value}`);
|
||||
|
@@ -44,7 +44,7 @@
|
||||
</button>
|
||||
</div>
|
||||
<div class="form-group mt-4">
|
||||
<label class="form-switch d-inline-block disabled" @click.prevent="toggleAllowPrerelease">
|
||||
<label class="form-switch d-inline-block" @click.prevent="toggleAllowPrerelease">
|
||||
<input type="checkbox" :checked="allowPrerelease">
|
||||
<i class="form-icon" /> {{ t('message.includeBetaUpdates') }}
|
||||
</label>
|
||||
|
@@ -104,7 +104,7 @@
|
||||
class="tab-link"
|
||||
:class="{'badge': element.isChanged}"
|
||||
>
|
||||
<i class="mdi mdi-tune-vertical-variant mdi-18px mr-1" />
|
||||
<i class="mdi mdi-wrench-cog mdi-18px mr-1" />
|
||||
<span :title="`${t('word.settings').toUpperCase()}: ${t(`word.${element.elementType}`)}`">
|
||||
{{ cutText(element.elementName, 20, true) }}
|
||||
<span
|
||||
@@ -121,7 +121,7 @@
|
||||
class="tab-link"
|
||||
:class="{'badge': element.isChanged}"
|
||||
>
|
||||
<i class="mdi mdi-tune-vertical-variant mdi-18px mr-1" />
|
||||
<i class="mdi mdi-wrench-cog mdi-18px mr-1" />
|
||||
<span :title="`${t('word.settings').toUpperCase()}: ${t(`word.view`)}`">
|
||||
{{ cutText(element.elementName, 20, true) }}
|
||||
<span
|
||||
@@ -241,7 +241,7 @@
|
||||
:class="{'badge': element.isChanged}"
|
||||
@dblclick="openAsPermanentTab(element)"
|
||||
>
|
||||
<i class="mdi mdi-18px mdi-tune-vertical-variant mr-1" />
|
||||
<i class="mdi mdi-18px mdi-wrench-cog mr-1" />
|
||||
<span :title="`${t('word.settings').toUpperCase()}: ${t(`word.${element.elementType}`)}`">
|
||||
<span class=" text-italic">{{ cutText(element.elementName, 20, true) }}</span>
|
||||
<span
|
||||
@@ -258,7 +258,7 @@
|
||||
class="tab-link"
|
||||
:class="{'badge': element.isChanged}"
|
||||
>
|
||||
<i class="mdi mdi-18px mdi-tune-vertical-variant mr-1" />
|
||||
<i class="mdi mdi-18px mdi-wrench-cog mr-1" />
|
||||
<span :title="`${t('word.settings').toUpperCase()}: ${t(`word.${element.elementType}`)}`">
|
||||
{{ cutText(element.elementName, 20, true) }}
|
||||
<span
|
||||
@@ -331,8 +331,8 @@
|
||||
</li>
|
||||
</template>
|
||||
</Draggable>
|
||||
<WorkspaceEmptyState v-if="!workspace.tabs.length" @new-tab="addQueryTab" />
|
||||
<template v-for="tab of workspace.tabs" :key="tab.uid">
|
||||
<WorkspaceEmptyState v-if="!draggableTabs.length" @new-tab="addQueryTab" />
|
||||
<template v-for="tab of draggableTabs" :key="tab.uid">
|
||||
<WorkspaceTabQuery
|
||||
v-if="tab.type ==='query'"
|
||||
:tab-uid="tab.uid"
|
||||
|
@@ -8,14 +8,14 @@
|
||||
class="context-element"
|
||||
@click="openTableSettingTab"
|
||||
>
|
||||
<span class="d-flex"><i class="mdi mdi-18px mdi-tune-vertical-variant text-light pr-1" /> {{ t('word.settings') }}</span>
|
||||
<span class="d-flex"><i class="mdi mdi-18px mdi-wrench-cog text-light pr-1" /> {{ t('word.settings') }}</span>
|
||||
</div>
|
||||
<div
|
||||
v-if="selectedTable && selectedTable.type === 'view' && customizations.viewSettings"
|
||||
class="context-element"
|
||||
@click="openViewSettingTab"
|
||||
>
|
||||
<span class="d-flex"><i class="mdi mdi-18px mdi-tune-vertical-variant text-light pr-1" /> {{ t('word.settings') }}</span>
|
||||
<span class="d-flex"><i class="mdi mdi-18px mdi-wrench-cog text-light pr-1" /> {{ t('word.settings') }}</span>
|
||||
</div>
|
||||
<div
|
||||
v-if="selectedTable && selectedTable.type === 'table' && customizations.tableDuplicate"
|
||||
|
@@ -293,7 +293,7 @@ const inputProps = computed(() => {
|
||||
let timeMask = '##:##:##';
|
||||
const precision = props.fields[editingField.value].length;
|
||||
|
||||
for (let i = 0; i < precision; i++)
|
||||
for (let i = 0; i < Number(precision); i++)
|
||||
timeMask += i === 0 ? '.#' : '#';
|
||||
|
||||
if (HAS_TIMEZONE.includes(editingType.value))
|
||||
@@ -309,7 +309,7 @@ const inputProps = computed(() => {
|
||||
let datetimeMask = '####-##-## ##:##:##';
|
||||
const precision = props.fields[editingField.value].length;
|
||||
|
||||
for (let i = 0; i < precision; i++)
|
||||
for (let i = 0; i < Number(precision); i++)
|
||||
datetimeMask += i === 0 ? '.#' : '#';
|
||||
|
||||
if (HAS_TIMEZONE.includes(editingType.value))
|
||||
@@ -582,14 +582,16 @@ const typeFormat = (val: string | number | Date | number[], type: string, precis
|
||||
return val;
|
||||
|
||||
let datePrecision = '';
|
||||
for (let i = 0; i < precision; i++)
|
||||
for (let i = 0; i < Number(precision); i++)
|
||||
datePrecision += i === 0 ? '.S' : 'S';
|
||||
|
||||
return moment(val).isValid() ? moment(val).format(`YYYY-MM-DD HH:mm:ss${datePrecision}`) : val;
|
||||
}
|
||||
|
||||
if (BLOB.includes(type)) {
|
||||
const buff = Buffer.from(val as string);
|
||||
if (typeof val === 'string') return val;
|
||||
|
||||
const buff = Buffer.from(val as unknown as ArrayBuffer);
|
||||
if (!buff.length) return '';
|
||||
|
||||
const hex = buff.toString('hex').substring(0, 8).toUpperCase();
|
||||
|
@@ -89,7 +89,7 @@
|
||||
<span>{{ t('message.insertRow', 2) }}</span>
|
||||
</button>
|
||||
|
||||
<div class="dropdown table-dropdown pr-2">
|
||||
<div class="dropdown table-dropdown">
|
||||
<button
|
||||
:disabled="isQuering"
|
||||
class="btn btn-dark btn-sm dropdown-toggle mr-0 pr-0"
|
||||
@@ -114,6 +114,18 @@
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="divider-vert py-3" />
|
||||
|
||||
<button
|
||||
class="btn btn-dark btn-sm"
|
||||
:disabled="isQuering"
|
||||
:title="t('word.settings')"
|
||||
@click="openTableSettingTab()"
|
||||
>
|
||||
<i class="mdi mdi-24px mdi-cog" />
|
||||
<!-- <span>{{ t('word.settings') }}</span> -->
|
||||
</button>
|
||||
</div>
|
||||
<div class="workspace-query-info">
|
||||
<div
|
||||
@@ -231,7 +243,7 @@ const workspacesStore = useWorkspacesStore();
|
||||
|
||||
const { dataTabLimit: limit } = storeToRefs(settingsStore);
|
||||
|
||||
const { changeBreadcrumbs, getWorkspace } = workspacesStore;
|
||||
const { changeBreadcrumbs, getWorkspace, newTab } = workspacesStore;
|
||||
|
||||
const pageSelect: Ref<HTMLInputElement> = ref(null);
|
||||
const tabUid = ref('data');
|
||||
@@ -428,6 +440,22 @@ const hasApproximately = computed(() => {
|
||||
results.value[0].rows.length < approximateCount.value;
|
||||
});
|
||||
|
||||
const openTableSettingTab = () => {
|
||||
newTab({
|
||||
uid: workspace.value.uid,
|
||||
elementName: props.table,
|
||||
schema: props.schema,
|
||||
type: isTable.value ? 'table-props' : 'view-props',
|
||||
elementType: isTable.value ? 'table' : 'view'
|
||||
});
|
||||
|
||||
changeBreadcrumbs({
|
||||
schema: props.schema,
|
||||
table: isTable.value ? props.table : null,
|
||||
view: !isTable.value ? props.table : null
|
||||
});
|
||||
};
|
||||
|
||||
watch(() => props.schema, () => {
|
||||
if (props.isSelected) {
|
||||
page.value = 1;
|
||||
|
@@ -1,7 +1,7 @@
|
||||
export const frFR = {
|
||||
word: {
|
||||
edit: 'Editer',
|
||||
save: 'Sauver',
|
||||
save: 'Sauvegarder',
|
||||
close: 'Fermer',
|
||||
delete: 'Effacer',
|
||||
confirm: 'Confirmer',
|
||||
@@ -23,10 +23,10 @@ export const frFR = {
|
||||
general: 'Général',
|
||||
themes: 'Thèmes',
|
||||
update: 'Mise à jour',
|
||||
about: 'À propos de',
|
||||
language: 'Langage',
|
||||
about: 'À propos',
|
||||
language: 'Langue',
|
||||
version: 'Version',
|
||||
donate: 'Faire une donation',
|
||||
donate: 'Faire une don',
|
||||
run: 'Éxécuter',
|
||||
schema: 'Schéma',
|
||||
results: 'Résultats',
|
||||
@@ -44,11 +44,11 @@ export const frFR = {
|
||||
collation: 'Langage',
|
||||
clear: 'Effacer',
|
||||
options: 'Options',
|
||||
autoRefresh: 'Auto-rafraîchissemnt',
|
||||
autoRefresh: 'Auto-rafraîchissement',
|
||||
indexes: 'Indexs',
|
||||
foreignKeys: 'Clés étrangères',
|
||||
length: 'Longueur',
|
||||
unsigned: 'non signé',
|
||||
unsigned: 'Non signé',
|
||||
default: 'Par défaut',
|
||||
comment: 'Commentaire',
|
||||
key: 'Clé | Clés',
|
||||
@@ -60,7 +60,7 @@ export const frFR = {
|
||||
approximately: 'Approximativement',
|
||||
total: 'Total',
|
||||
table: 'Table',
|
||||
discard: 'Jeter',
|
||||
discard: 'Annuler',
|
||||
stay: 'Rester',
|
||||
author: 'Auteur',
|
||||
light: 'Clair',
|
||||
@@ -95,7 +95,6 @@ export const frFR = {
|
||||
upload: 'Téléverser',
|
||||
browse: 'Naviguer',
|
||||
faker: 'Imposteur',
|
||||
sshTunnel: 'Tunnel SSH',
|
||||
content: 'Contenu',
|
||||
cut: 'Couper',
|
||||
copy: 'Copier',
|
||||
@@ -106,8 +105,9 @@ export const frFR = {
|
||||
Database: 'Base de données',
|
||||
scratchpad: 'Bloc-notes',
|
||||
array: 'Tableau',
|
||||
changelog: 'Log de changement',
|
||||
changelog: 'Journal des modifications',
|
||||
Format: 'Format',
|
||||
sshTunnel: 'Tunnel SSH',
|
||||
structure: 'Structure',
|
||||
small: 'Petit',
|
||||
medium: 'Moyen',
|
||||
@@ -119,9 +119,9 @@ export const frFR = {
|
||||
duplicate: 'Dupliquer',
|
||||
routine: 'Routine',
|
||||
new: 'Nouveau',
|
||||
history: 'Passé',
|
||||
history: 'Historique',
|
||||
select: 'Sélectionner',
|
||||
passphrase: 'Phrase',
|
||||
passphrase: 'Phrase secrète',
|
||||
filter: 'Filtre',
|
||||
change: 'Changement',
|
||||
views: 'Vues',
|
||||
@@ -140,7 +140,20 @@ export const frFR = {
|
||||
rollback: 'Retour arrière',
|
||||
connectionString: 'Chaîne de connexion',
|
||||
contributors: 'Contributeurs',
|
||||
shortcuts: 'Raccourcis'
|
||||
pin: 'Épingler',
|
||||
unpin: 'Désépingler',
|
||||
console: 'Console',
|
||||
shortcuts: 'Raccourcis',
|
||||
folder: 'Dossier | Dossiers',
|
||||
appearance: 'Apparence',
|
||||
color: 'Couleur',
|
||||
label: 'Libellé',
|
||||
icon: 'Icône',
|
||||
resultsTable: 'Table des résultats',
|
||||
ddl: 'DDL',
|
||||
none: 'Aucun',
|
||||
singleQuote: 'Simple guillemets',
|
||||
doubleQuote: 'Double guillemets'
|
||||
},
|
||||
message: {
|
||||
appWelcome: 'Bienvenue dans le client SQL Antares!',
|
||||
@@ -148,7 +161,7 @@ export const frFR = {
|
||||
addConnection: 'Ajouter une connexion',
|
||||
createConnection: 'Créer une connexion',
|
||||
createNewConnection: 'Créer une nouvelle connexion',
|
||||
askCredentials: 'Demander des informations d\'identification',
|
||||
askCredentials: 'Demander les informations d\'identification',
|
||||
testConnection: 'Tester la connexion',
|
||||
editConnection: 'Modifier la connexion',
|
||||
deleteConnection: 'Supprimer la connexion',
|
||||
@@ -164,7 +177,7 @@ export const frFR = {
|
||||
updateDownloaded: 'Mise à jour téléchargée',
|
||||
restartToInstall: 'Redémarrer Antares pour installer',
|
||||
unableEditFieldWithoutPrimary: 'Impossible de modifier un champ sans clé primaire dans le jeu de résultats',
|
||||
editCell: 'Editer la cellule',
|
||||
editCell: 'Éditer la cellule',
|
||||
deleteRows: 'Effacer la ligne | Effacer {count} lignes',
|
||||
confirmToDeleteRows: 'Confirmez-vous la suppression d\'une ligne ? | Confirmez-vous la suppression de {count} lignes ?',
|
||||
notificationsTimeout: 'Délai d\'attente pour les notifications',
|
||||
@@ -194,7 +207,7 @@ export const frFR = {
|
||||
deleteTable: 'Supprimer une table',
|
||||
emptyConfirm: 'Confirmez-vous que vous souhaitez vider la table ?',
|
||||
unsavedChanges: 'Modifications non sauvegardées',
|
||||
discardUnsavedChanges: 'Vous avez des modifications non sauvegardées. En fermant cet onglet, ces modifications seront supprimées',
|
||||
discardUnsavedChanges: 'Vous avez des modifications non sauvegardées. En fermant cet onglet, ces modifications seront supprimées.',
|
||||
thereAreNoIndexes: 'Il n\'y a pas d\'index',
|
||||
thereAreNoForeign: 'Il n\'y a pas de clés étrangères',
|
||||
createNewForeign: 'Créer une nouvelle clé étrangère',
|
||||
@@ -214,7 +227,7 @@ export const frFR = {
|
||||
createNewView: 'Créer une nouvelle vue',
|
||||
deleteTrigger: 'Effacer un déclencheur',
|
||||
createNewTrigger: 'Créer un nouveau déclencheur',
|
||||
currentUser: 'utilisateur courant',
|
||||
currentUser: 'utilisateur actuel',
|
||||
routineBody: 'Corps de la routine',
|
||||
dataAccess: 'Accès aux données',
|
||||
thereAreNoParameters: 'Il n\'y a pas de paramètre',
|
||||
@@ -231,13 +244,13 @@ export const frFR = {
|
||||
enableSsl: 'Activer le SSL',
|
||||
manualValue: 'Valeur manuelle',
|
||||
tableFiller: 'Remplisseur de table',
|
||||
fakeDataLanguage: 'Language de données fausses',
|
||||
fakeDataLanguage: 'Langue des fausses données',
|
||||
searchForElements: 'Rechercher des éléments',
|
||||
selectAll: 'Tout sélectionner',
|
||||
queryDuration: 'Temps de requêtage',
|
||||
queryDuration: 'Temps de requête',
|
||||
includeBetaUpdates: 'Inclure les mises à jour beta',
|
||||
setNull: 'Définir comme NULL',
|
||||
processesList: 'List des processus',
|
||||
processesList: 'Liste des processus',
|
||||
processInfo: 'Information sur le processus',
|
||||
manageUsers: 'Organisation des utilisateurs',
|
||||
createNewSchema: 'Créer un nouveau schéma',
|
||||
@@ -249,10 +262,10 @@ export const frFR = {
|
||||
dataTabPageSize: 'Taille de la page de l\'onglet données',
|
||||
enableSsh: 'Activer le SSH',
|
||||
pageNumber: 'Numéro de la page',
|
||||
duplicateTable: 'Copier la table',
|
||||
duplicateTable: 'Dupliquer la table',
|
||||
noOpenTabs: 'Il n\'y a pas d\'onglet ouvert, naviguer vers la barre gauche ou :',
|
||||
noSchema: 'Pas de schéma',
|
||||
restorePreviousSession: 'Restorer une session précédente',
|
||||
noSchema: 'Aucun schéma',
|
||||
restorePreviousSession: 'Restaurer la session précédente',
|
||||
runQuery: 'Lancer la requête',
|
||||
thereAreNoTableFields: 'Il n\'y a pas de champ table',
|
||||
newTable: 'Nouvelle table',
|
||||
@@ -264,7 +277,7 @@ export const frFR = {
|
||||
newTriggerFunction: 'Nouvelle fonction de déclencheur',
|
||||
thereIsNoQueriesYet: 'Il n\'y a pas encore de requête',
|
||||
searchForQueries: 'Rechercher des requêtes',
|
||||
killProcess: 'tuer un processus',
|
||||
killProcess: 'Terminer un processus',
|
||||
closeTab: 'Fermer un onglet',
|
||||
exportSchema: 'Exporter un schéma',
|
||||
importSchema: 'Importer un schéma',
|
||||
@@ -278,7 +291,7 @@ export const frFR = {
|
||||
goToDownloadPage: 'Aller vers la page de téléchargement',
|
||||
readOnlyMode: 'Mode lecture seule',
|
||||
killQuery: 'Terminer une requête',
|
||||
insertRow: 'Insérer un ligne | Insérer des lignes',
|
||||
insertRow: 'Insérer une ligne | Insérer des lignes',
|
||||
commitMode: 'Mode insertion directe',
|
||||
autoCommit: 'Insertion directe automatique',
|
||||
manualCommit: 'Insertion directe manuelle',
|
||||
@@ -286,17 +299,71 @@ export const frFR = {
|
||||
importQueryErrors: 'Attention : {n} erreurs se sont produites | Attention: {n} erreurs sont apparues',
|
||||
executedQueries: '{n} requêtes ont été exécutées | {n} requêtes exécutées',
|
||||
outputFormat: 'Format de sortie',
|
||||
singleFile: 'Seul fichier avec l\'extension {ext}',
|
||||
singleFile: 'Fichier seul avec l\'extension {ext}',
|
||||
zipCompressedFile: 'Fichier compréssé avec l\'extension {ext}',
|
||||
disableBlur: 'Désactiver le floue',
|
||||
disableBlur: 'Désactiver le flou',
|
||||
untrustedConnection: 'Connexion non approuvée',
|
||||
missingOrIncompleteTranslation: 'Traduction manquante ou incomplète?',
|
||||
findOutHowToContribute: 'Trouver comment contribuer',
|
||||
disableScratchpad: 'Désactiver le bloc-notes'
|
||||
disableFKChecks: 'Désactiver les vérifications de clé étrangère',
|
||||
allConnections: 'Toutes les connexions',
|
||||
searchForConnections: 'Rechercher des connexions',
|
||||
disableScratchpad: 'Désactiver le bloc-notes',
|
||||
reportABug: 'Signaler un bug',
|
||||
nextTab: 'Onglet suivant',
|
||||
previousTab: 'Onglet précédent',
|
||||
selectTabNumber: 'Sélectionner l\'onglet numéro {param}',
|
||||
toggleConsole: 'Activer/Désactiver la console',
|
||||
addShortcut: 'Ajouter un raccourci',
|
||||
editShortcut: 'Modifier un raccourci',
|
||||
deleteShortcut: 'Supprimer un raccourci',
|
||||
restoreDefaults: 'Restaurer les valeurs par défaut',
|
||||
restoreDefaultsQuestion: 'Voulez-vous vraiment restaurer les valeurs par défaut?',
|
||||
registerAShortcut: 'Enregistrer un raccourci',
|
||||
invalidShortcutMessage: 'Combinaison invalide, continuez l\'insertion',
|
||||
shortcutAlreadyExists: 'Ce raccourci existe déjà',
|
||||
saveContent: 'Sauvegarder le contenu',
|
||||
openAllConnections: 'Ouvrir toutes les connexions',
|
||||
openSettings: 'Ouvrir les paramètres',
|
||||
openScratchpad: 'Ouvrir le bloc-notes',
|
||||
runOrReload: 'Exécuter ou rafraîchir',
|
||||
formatQuery: 'Formater la requête',
|
||||
queryHistory: 'Historique de requête',
|
||||
clearQuery: 'Effacer la requête',
|
||||
openFilter: 'Ouvrir le filtre',
|
||||
nextResultsPage: 'Page de résultats suivante',
|
||||
previousResultsPage: 'Page de résultats précédente',
|
||||
fillCell: 'Remplir la cellule',
|
||||
editFolder: 'Editer le dossier',
|
||||
folderName: 'Nom du dossier',
|
||||
deleteFolder: 'Supprimer le dossier',
|
||||
editConnectionAppearance: 'Editer l\'apparence de la connexion',
|
||||
executeSelectedQuery: 'Exécuter la requête sélectionnée',
|
||||
defaultCopyType: 'Type de copie par défaut',
|
||||
showTableSize: 'Afficher la taille de la table dans la barre latérale',
|
||||
showTableSizeDescription: 'MySQL/MariaDB seulement. Activer cette option peut affecter les performances du schéma sur plusieurs tables.',
|
||||
searchForSchemas: 'Rechercher des shémas',
|
||||
switchSearchMethod: 'Changer la méthode de recherche',
|
||||
noResultsPresent: 'Aucun résultat présent',
|
||||
sqlExportOptions: 'Options d\'export SQL',
|
||||
targetTable: 'Table cible',
|
||||
phpArray: 'Tableau PHP',
|
||||
closeAllTabs: 'Fermer tous les onglets',
|
||||
closeOtherTabs: 'Fermer les autres onglets',
|
||||
closeTabsToLeft: 'Fermer les onglets à gauche',
|
||||
closeTabsToRight: 'Fermer les onglets à droite',
|
||||
switchDatabase: 'Changer la base de données',
|
||||
csvExportOptions: 'Options d\'export CSV',
|
||||
csvFieldDelimiter: 'Délimiteur de champ',
|
||||
csvLinesTerminator: 'Fin de ligne',
|
||||
csvStringDelimiter: 'Séparateur',
|
||||
csvIncludeHeader: 'Inclure l\'en-tête',
|
||||
scratchPadDefaultValue: '# COMMENT SOUTENIR ANTARES\n\n- [ ] Laissez une etoile à Antares [GitHub repo](https://github.com/antares-sql/antares)\n- [ ] Envoyez vos avis et conseils\n- [ ] Signalez les bugs\n- [ ] Si vous l\'appréciez, partagez Antares avec des amis\n\n# A PROPOS DU BLOC-NOTES\n\nCeci est un bloc-notes où vous pouvez sauvegarder vos **notes personnelles**. Il supporte le format `markdown`, mais vous êtes libre d\'utiliser du texte standard.\nCe contenu est juste un modèle, vous pouvez a tout moment l\'effacer pour le remplacer par vos notes.\n'
|
||||
},
|
||||
faker: {
|
||||
address: 'Adresse',
|
||||
commerce: 'Commerce',
|
||||
company: 'Companie',
|
||||
company: 'Entreprise',
|
||||
database: 'Base de données',
|
||||
date: 'Date',
|
||||
finance: 'Finance',
|
||||
@@ -324,7 +391,7 @@ export const frFR = {
|
||||
county: 'Département',
|
||||
country: 'Pays',
|
||||
countryCode: 'Code du pays',
|
||||
state: 'Etat',
|
||||
state: 'État',
|
||||
stateAbbr: 'Abréviation de l\'état',
|
||||
latitude: 'Latitude',
|
||||
longitude: 'Longitude',
|
||||
@@ -344,11 +411,11 @@ export const frFR = {
|
||||
suffixes: 'Suffixes',
|
||||
companyName: 'Nom de la société',
|
||||
companySuffix: 'Suffixe de la société',
|
||||
catchPhrase: 'Phrase de rappel',
|
||||
catchPhrase: 'Phrase d\'accroche',
|
||||
bs: 'BS',
|
||||
catchPhraseAdjective: 'Adjectif de la phrase de rappel',
|
||||
catchPhraseDescriptor: 'Descripteur de la phrase de rappel',
|
||||
catchPhraseNoun: 'Nom de la phrase de rappel',
|
||||
catchPhraseAdjective: 'Adjectif de la phrase d\'accroche',
|
||||
catchPhraseDescriptor: 'Descripteur de la phrase d\'accroche',
|
||||
catchPhraseNoun: 'Nom de la phrase d\'accroche',
|
||||
bsAdjective: 'Adjectif BS',
|
||||
bsBuzz: 'BS buzz',
|
||||
bsNoun: 'Nom BS',
|
||||
@@ -357,6 +424,7 @@ export const frFR = {
|
||||
collation: 'Langue',
|
||||
engine: 'Moteur',
|
||||
past: 'Passé',
|
||||
now: 'Maintenant',
|
||||
future: 'Future',
|
||||
between: 'Entre',
|
||||
recent: 'Récent',
|
||||
@@ -364,7 +432,7 @@ export const frFR = {
|
||||
month: 'Mois',
|
||||
weekday: 'Jour de la semaine',
|
||||
account: 'compte',
|
||||
accountName: 'Nom du compte',
|
||||
accountName: 'Nom de compte',
|
||||
routingNumber: 'Numéro de la routing',
|
||||
mask: 'Masque',
|
||||
amount: 'Montant',
|
||||
@@ -394,12 +462,12 @@ export const frFR = {
|
||||
avatar: 'Avatar',
|
||||
email: 'mail',
|
||||
exampleEmail: 'Exemple de mail',
|
||||
userName: 'Nom utilisateur',
|
||||
userName: 'Nom d\'utilisateur',
|
||||
protocol: 'Protocole',
|
||||
url: 'Url',
|
||||
domainName: 'Nom du domaine',
|
||||
domainSuffix: 'Suffixe du domaine',
|
||||
domainWord: 'Mot domaine',
|
||||
domainWord: 'Mot de domaine',
|
||||
ip: 'Ip',
|
||||
ipv6: 'Ipv6',
|
||||
userAgent: 'Agent utilisateur',
|
||||
@@ -419,7 +487,7 @@ export const frFR = {
|
||||
lastName: 'Nom de famille',
|
||||
middleName: 'Deuxième prénom',
|
||||
findName: 'Nom complet',
|
||||
jobTitle: 'Nom du poste',
|
||||
jobTitle: 'Nom du travail',
|
||||
gender: 'Sexe',
|
||||
prefix: 'Préfixe',
|
||||
suffix: 'Suffixe',
|
||||
|
@@ -147,7 +147,12 @@ export const ptBR = {
|
||||
appearance: 'Aparência',
|
||||
color: 'Cor',
|
||||
label: 'Rótulo',
|
||||
icon: 'Icone'
|
||||
icon: 'Icone',
|
||||
resultsTable: 'Resultados da tabela',
|
||||
ddl: 'DDL',
|
||||
none: 'Nenhum',
|
||||
singleQuote: 'Aspas simples',
|
||||
doubleQuote: 'Aspas duplas'
|
||||
},
|
||||
message: {
|
||||
appWelcome: 'Bem vindo ao Antares SQL Client!',
|
||||
@@ -253,6 +258,7 @@ export const ptBR = {
|
||||
deleteSchema: 'Apagar schema',
|
||||
markdownSupported: 'Markdown suportado',
|
||||
plantATree: 'Plante uma árvore',
|
||||
dataTabPageSize: 'Tamanho da guia DADOS',
|
||||
enableSsh: 'Habilitar SSH',
|
||||
pageNumber: 'Número de página',
|
||||
duplicateTable: 'Duplicar tabela',
|
||||
@@ -330,7 +336,28 @@ export const ptBR = {
|
||||
editFolder: 'Editar Pasta',
|
||||
folderName: 'Nome da pasta',
|
||||
deleteFolder: 'Apagar Pasta',
|
||||
editConnectionAppearance: 'Editar aparência da conexão'
|
||||
editConnectionAppearance: 'Editar aparência da conexão',
|
||||
executeSelectedQuery: 'Executar consulta selecionada',
|
||||
defaultCopyType: 'Padrão do tipo de cópia',
|
||||
showTableSize: 'Exibir tamanho da tabela na barra lateral',
|
||||
showTableSizeDescription: 'Apenas MySQL/MariaDB. Habilitar essa opcão pode afetar o desempenho no banco com muitas tabelas.',
|
||||
searchForSchemas: 'Procurar banco',
|
||||
switchSearchMethod: 'Alterar o modo da pesquisa',
|
||||
noResultsPresent: 'Nenhum resultado presente',
|
||||
sqlExportOptions: 'Opções de exportação do SQL',
|
||||
targetTable: 'Tabela de destino',
|
||||
phpArray: 'Array PHP',
|
||||
closeAllTabs: 'Fechar todas as guias',
|
||||
closeOtherTabs: 'Fechar outras guias',
|
||||
closeTabsToLeft: 'Fechar guias a esquerda',
|
||||
closeTabsToRight: 'Fechar guias a direita',
|
||||
switchDatabase: 'Alterar banco de dados',
|
||||
csvExportOptions: 'Opções de exportação do CSV',
|
||||
csvFieldDelimiter: 'Delimitador do campo',
|
||||
csvLinesTerminator: 'Delimitador da linha',
|
||||
csvStringDelimiter: 'Delimitador da String',
|
||||
csvIncludeHeader: 'Incluir cabeçalho',
|
||||
scratchPadDefaultValue: '# COMO AJUDAR O ANTARES\n\n- [ ] Deixe sua estrela para o Antares [GitHub repo](https://github.com/antares-sql/antares)\n- [ ] Envie sugestões e avisos\n- [ ] Relate bugs\n- [ ] Se você gostar, compartilhe o Antares com amigos\n\n# SOBRE O BLOCO DE NOTAS\n\nEsse é o bloco de notas para salvar suas **notas pessoais**. ele suporta o formato `markdown`, porém você é livre para usar qualquer texto.\nEsse conteúdo é apenas um texto, fique a vontade para limpar e obter mais espaço para suas notas.\n'
|
||||
},
|
||||
faker: {
|
||||
address: 'Endereço',
|
||||
|
@@ -1 +1,8 @@
|
||||
<svg height="32" viewBox="0 0 45.025 44.217" width="32" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><clipPath id="a"><path d="m0 0h191.356v57.344h-191.356z"/></clipPath><path clip-path="url(#a)" d="m75.198 5.328c-1.872.047-2.977.863-3.34 2.42.48.418 1.126.6 1.77.572 1.415-.06 2.817-1.138 2.42-2.965-.298-.025-.582-.035-.85-.027m9.642-5.328h-.167c-1.335.043-1.542.767-4.425 1.477-2.912.717-5.725.028-8.86 1.344-9.363 3.927-11.358 17.472-19.868 22.279-6.36 3.593-12.512 5.188-18.28 6.995-3.792 1.188-7.552 2.556-10.988 5.516-2.667 2.3-3.4 4.085-6.177 6.97-2.835 2.933-11.553-2.258-15.8 1.54a.84.84 0 0 0 .014 1.253c.92.805 2.67 2.722 4.336 3.314-.528 1-3.513 3.946-2.904 5.42.64 1.55 8.04.497 14.88-3.633 3.185-1.924 5.723-4.696 10.685-5.357 6.42-.855 13.817.55 21.25 1.62-1.103 3.286-3.315 5.473-5.088 8.1-.55.592 1.103.658 2.986.3 3.4-.838 5.832-1.513 8.4-3 3.143-1.83 3.62-6.52 7.474-7.534 1.864 2.865 6.5 3.83 10.074 2.3.198-.084.392-.177.582-.275.43-.375.178-.813-.086-1.135a6.21 6.21 0 0 1 -.362-.364c-2.012-2.162-2.472-7.266-1.58-9.748 1.017-2.824 2.022-7.343 3.046-11.075 1.1-4 1.506-9.063 2.837-11.106 2.002-3.072 4.215-4.127 6.136-5.86s3.68-3.42 3.62-7.384c-.028-1.223-.629-1.927-1.735-1.957m.204 4.163c-.397 2.734-2.144 4.237-4.208 5.687-1.8 1.27-3.794 2.493-5.07 4.477-1.305 2.03-2.134 8.985-4.16 15.852-1.68 5.698-4.184 11.335-8.467 14.05-.278.176-.645.015-.704-.3-.3-1.592-.24-4.5-.734-3.56-.62 1.77-1.322 3.458-2.143 5.027-2.52 4.816-6.166 8.505-12.057 9.95a.53.53 0 0 1 -.552-.82c2.718-3.77 5.15-7.825 5.447-14.014.025-.534-.646-.778-.983-.364-1.284 1.583-1.6 5.347-3.477 6.506-1.474.16-2.967.16-4.47.07-6.17-.37-12.502-2.226-18.274-.373-3.93 1.262-8.057 4.85-11.386 6.293-3.912 1.686-5.766 3.286-10.706 3.176-.505-.68 2.062-3.623 2.934-4.893.278-.407-.317-.835-.874-1.1-1.338-.614-2.68-2.28-4.107-2.93.183-.337.83-.674 1.187-.88 3.24-1.88 11.832 2.124 14.14-.143 1.425-1.398 2.385-2.626 3.353-4.05.94-1.38 2.368-2.838 3.847-4.047a31.3 31.3 0 0 1 1.94-1.435c2.52-1.724 3.907-1.852 7.17-3.064 4.152-1.544 9.293-2.898 13.747-4.6 2.752-1.053 5.744-2.35 8.183-4.17.58-.432 1.127-.893 1.634-1.386 6.964-6.8 8.345-18.766 19.2-19.882 1.314-.135 2.248-.192 3.228-.223 1.096-.03 2.18-.3 3.263-.818.334-.146 2.324-1.35 2.996-.768.448.388.115 2.492.086 2.72" fill="#fff" transform="matrix(.52012 0 0 .52012 0 7.19564)"/></svg>
|
||||
<svg height="32" viewBox="0 0 45.025 44.217" width="32" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg"><g
|
||||
transform="matrix(0.13871016,0,0,0.13871016,1.6658507,8.5440648)"><path
|
||||
d="m 299.2,3.87 a 4.36,4.36 0 0 0 -2.92,-1 c -2.9,0 -6.65,2 -8.66,3 -0.35,0.18 -0.62,0.33 -0.81,0.41 A 27.32,27.32 0 0 1 276,9.06 c -3.86,0.12 -7.19,0.35 -11.5,0.79 -25.66,2.64 -37.05,22.28 -48.06,41.27 -6,10.33 -12.18,21 -20.67,29.28 a 55,55 0 0 1 -5.59,4.75 c -8.78,6.54 -19.81,11.17 -28.43,14.47 -8.26,3.15 -17.28,6 -26,8.74 -8,2.51 -15.51,4.88 -22.44,7.46 -3.13,1.16 -5.79,2.05 -8.13,2.83 -6.31,2.1 -10.87,3.62 -17.51,8.16 -2.59,1.78 -5.19,3.7 -7,5.14 a 73.49,73.49 0 0 0 -13.87,14.63 87.05,87.05 0 0 1 -11.6,14 c -1.4,1.37 -3.89,2 -7.62,2 -4.37,0 -9.67,-0.9 -15.28,-1.86 -5.77,-1 -11.75,-2 -16.87,-2 -4.17,0 -7.35,0.68 -9.74,2.06 0,0 -4,2.34 -5.69,5.36 l 1.66,0.76 a 34.33,34.33 0 0 1 7.1,5.1 35.39,35.39 0 0 0 7.37,5.25 6.61,6.61 0 0 1 2.27,1.51 c -0.7,1 -1.73,2.35 -2.8,3.76 -5.92,7.74 -9.37,12.63 -7.39,15.29 a 6.15,6.15 0 0 0 3,0.7 c 12.9,0 19.82,-3.35 28.59,-7.59 2.54,-1.23 5.16,-2.5 8.16,-3.8 5.12,-2.22 10.64,-5.77 16.48,-9.52 7.74,-5 15.74,-10.12 23.49,-12.6 a 63.71,63.71 0 0 1 19.71,-2.77 c 8.23,0 16.83,1.1 25.15,2.16 6.21,0.8 12.63,1.62 18.93,2 2.45,0.15 4.72,0.22 6.92,0.22 a 77.2,77.2 0 0 0 8.83,-0.47 l 0.7,-0.24 c 4.42,-2.72 6.49,-8.55 8.5,-14.19 1.29,-3.62 2.37,-6.88 4.05,-9 a 2.1,2.1 0 0 1 0.34,-0.28 0.41,0.41 0 0 1 0.5,0.08 c 0,0 0,0 0,0.16 -1.06,22.05 -9.9,36.05 -18.88,48.49 l -6,6.43 c 0,0 8.39,0 13.16,-1.84 17.42,-5.22 30.58,-16.69 40.15,-35 a 148.57,148.57 0 0 0 6.32,-14.45 c 0.16,-0.41 1.68,-1.16 1.53,1 0,0.63 -0.09,1.33 -0.14,2 v 0 c 0,0.44 -0.06,0.88 -0.08,1.32 -0.25,3 -1,9.57 -1,9.57 l 5.38,-2.88 c 13,-8.23 23,-24.74 30.56,-50.48 3.16,-10.71 5.47,-21.36 7.51,-30.75 2.44,-11.24 4.55,-20.94 7,-24.69 3.78,-5.88 9.55,-9.86 15.13,-13.72 l 2.28,-1.58 c 7,-4.93 14,-10.62 15.54,-21.22 v -0.24 c 1.2,-7.82 0.25,-9.83 -0.82,-10.76 z"
|
||||
transform="translate(0,-2.9)"
|
||||
style="fill:#ffffff" />
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.0 KiB |
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 5.0 KiB |
@@ -16,7 +16,7 @@ export type ApplicationTheme = 'light' | 'dark';
|
||||
export const useSettingsStore = defineStore('settings', {
|
||||
state: () => ({
|
||||
locale: settingsStore.get('locale', 'en-US') as AvailableLocale,
|
||||
allowPrerelease: settingsStore.get('allow_prerelease', true) as boolean,
|
||||
allowPrerelease: settingsStore.get('allow_prerelease', false) as boolean,
|
||||
explorebarSize: settingsStore.get('explorebar_size', null) as number,
|
||||
notificationsTimeout: settingsStore.get('notifications_timeout', 5) as number,
|
||||
showTableSize: settingsStore.get('show_table_size', false) as boolean,
|
||||
|
@@ -233,7 +233,7 @@ export const useWorkspacesStore = defineStore('workspaces', {
|
||||
|
||||
const selectedTab = cachedTabs.length
|
||||
? connection.database
|
||||
? cachedTabs.filter(tab => tab.type === 'query' || tab.database === connection.database)[0].uid
|
||||
? cachedTabs.filter(tab => tab.type === 'query' || tab.database === connection.database)[0]?.uid
|
||||
: cachedTabs[0].uid
|
||||
: null;
|
||||
|
||||
|
Reference in New Issue
Block a user