Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fg2Xr-0004xN-Lk for pgsql-general@arkaria.postgresql.org; Thu, 19 Jul 2018 06:36:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fg2Xp-0006TS-Kr for pgsql-general@arkaria.postgresql.org; Thu, 19 Jul 2018 06:36:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fg2Xo-0006TL-O6 for pgsql-general@lists.postgresql.org; Thu, 19 Jul 2018 06:36:09 +0000 Received: from m50-110.126.com ([123.125.50.110]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fg2Xh-00069n-HG for pgsql-general@postgresql.org; Thu, 19 Jul 2018 06:36:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=From:Message-Id:Mime-Version:Subject:Date; bh=1uiXj qYMj2Y48QZPRnV7UOxf5k7vVBmF4QR4KAmiYjo=; b=RS9bLW902JNQXnbkD2rd8 sefIE+j0JoApbG7w6deAJcW9zhEDfR+lHRc3uXuM+GiVPAAam6Wy1rH6OMgrEL/Z xpIQQTomCGic56o+Kztpq5BXTADqtJB7ASGujpsHcUVO6dI0Pj3p9JFOPjWUitt5 e8oYUIVSGGlWQ2JnNXvXcY= Received: from [192.168.7.51] (unknown [124.133.18.218]) by smtp4 (Coremail) with SMTP id jdKowAB3tqJGMVBboj5_AA--.4571S3; Thu, 19 Jul 2018 14:35:53 +0800 (CST) From: Chris Message-Id: Content-Type: multipart/alternative; boundary="Apple-Mail=_7A767D62-D07C-4FAF-A5D8-1033FCD271FD" Mime-Version: 1.0 (Mac OS X Mail 11.4 \(3445.8.2\)) Subject: Re: Do we need yet another IDE (SQL development assistant) for PostgreSQL? Date: Thu, 19 Jul 2018 14:35:50 +0800 In-Reply-To: <87601e4y9x.fsf@gmail.com> Cc: Dmitry Igrishin , cjgunzel@gmail.com, pgsql-general@postgresql.org To: Tim Cross References: <874lh0qh8g.fsf@gmail.com> <87601e4y9x.fsf@gmail.com> X-Mailer: Apple Mail (2.3445.8.2) X-CM-TRANSID: jdKowAB3tqJGMVBboj5_AA--.4571S3 X-Coremail-Antispam: 1Uf129KBjvJXoWxZw13WF48Zw4xXFWfZry3twb_yoW5Gr15pF W3WrW7Kr4kG34vy3yDXw1xAF48ArZ3CrnxJr98G3yUZ345WryqvrnFqF4qvanrZr109342 vrW5KrW7Cas0yaUanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07j8_-kUUUUU= X-Originating-IP: [124.133.18.218] X-CM-SenderInfo: h1xd065hix4txwhuqiyswou0bp/1tbi5AqILlpD5fcdywAAsV List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Apple-Mail=_7A767D62-D07C-4FAF-A5D8-1033FCD271FD Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Dmitry=EF=BC=8C I think this a wonderful idea, but it will be tough. Share my = experience: =E2=80=94dbeaver:=20 It is for multi-platform so it is just for use, no particular = function, also there is more bugs(our company had changed some of them). dbeaver is likely the most open source app form pg now, I know = more people use it. =E2=80=94pgadmin4: I don=E2=80=99t like web client for database, I used it and it = is good for there is simple monitor-windows. For now, I used jetbrains=E2=80=99s product:datagrip, it is also coded = by java,but is better for dbeaver. Best Wishes, Chris > =E5=9C=A8 2018=E5=B9=B47=E6=9C=8817=E6=97=A5=EF=BC=8C=E4=B8=8A=E5=8D=886= :21=EF=BC=8CTim Cross =E5=86=99=E9=81=93=EF=BC=9A >=20 >=20 > Dmitry Igrishin > writes: >=20 >> =D0=BF=D0=BD, 16 =D0=B8=D1=8E=D0=BB. 2018 =D0=B3. =D0=B2 1:14, Tim = Cross : >>=20 >>>=20 >>> Your idea to make it integrate with user's preferred editor is a = good >>> idea as editors are like opinions and certain anatomical parts - >>> everyone has one! Finding an appropriate API to do this will be a >>> challenge. >>>=20 >> I see two options here: the core of the tool acts as a long-lived = server or >> as a short-lived >> console application which communicates with the editor's plugin via >> stdin/stdout. >> Btw, what the text editor do you prefer? :-) >>=20 >=20 > Most of the time, I use Emacs on either Linux or macOS. With the = support > it has for running a psql process, it works pretty well for most > things. There are pretty reasonable packages for writing SQL and > 'static' completion. Getting things setup can take a bit of effort, = but > once it is working, it tends to work pretty well. >=20 > The two areas where it lacks are dynamic completion i.e. completing on > objects the user has created such as table names and column > names/function names etc. and decent result formatting.=20 >=20 >>>=20 >>> I seem to remember reading somewhere that Oracle was going to remove >>> swing from the core java library. I've always been a little = disappointed >>> with Java UIs and found they don't give the cross-platform support = that >>> Java originally promised, plus OSX/macOS has not made Java as = welcome as >>> it use to be. If you do choose Java, it will need to work under = openJDK >>> as this is what most Linux users will have installed. >>>=20 >> For now, the possible options for the GUI part are Qt, wxWidgets or = FLTK, >> or even Electron. >=20 > I would look at either Qt or even Electron (I believe visual code is > written using Electron, which is the other editor I use from time to > time). >=20 > There was an Emacs project called Eclaim (I think) which interfaced = with > Eclipse services in order to provide dynamic completion when doing > Java. That could be worth checking out for ideas to borrow. >=20 > Tim >=20 > --=20 > Tim Cross --Apple-Mail=_7A767D62-D07C-4FAF-A5D8-1033FCD271FD Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi = Dmitry=EF=BC=8C

I = think this a wonderful idea, but it will be tough. Share my = experience:
=E2=80=94dbeaver: 
= It is for multi-platform so it is just for use, no particular = function, also there is more bugs(our company had changed some of = them).
dbeaver is likely the most open = source app form pg now, I know more people use it.
=E2=80=94pgadmin4:
I don=E2=80= =99t like web client for database, I used it and it is good for there is = simple monitor-windows.
For now, I used = jetbrains=E2=80=99s product:datagrip, it is also coded by java,but is = better for dbeaver.

Best Wishes,
Chris


=E5=9C=A8 = 2018=E5=B9=B47=E6=9C=8817=E6=97=A5=EF=BC=8C=E4=B8=8A=E5=8D=886:21=EF=BC=8C= Tim Cross <theophilusx@gmail.com> =E5=86=99=E9=81=93=EF=BC=9A
=

Dmitry Igrishin <dmitigr@gmail.com> writes:

=D0=BF=D0= =BD, 16 =D0=B8=D1=8E=D0=BB. 2018 =D0=B3. =D0=B2 1:14, Tim Cross <theophilusx@gmail.com>:


Your idea = to make it integrate with user's preferred editor is a good
idea as editors are like opinions and certain anatomical = parts -
everyone has one! Finding an appropriate API to do = this will be a
challenge.

I see two options here: the core of the tool = acts as a long-lived server or
as a short-lived
console application which communicates with the editor's = plugin via
stdin/stdout.
Btw, what the text = editor do you prefer? :-)


Most of the time, I use Emacs on = either Linux or macOS. With the support
it has for running a psql process, it works pretty well for = most
things. There = are pretty reasonable packages for writing SQL and
'static' completion. Getting = things setup can take a bit of effort, but
once it is working, it tends to work pretty well.

The two areas where it lacks are = dynamic completion i.e. completing on
objects the user has created such as table names and = column
names/function = names etc. and decent result formatting. 


I seem to = remember reading somewhere that Oracle was going to remove
swing from the core java library. I've always been a little = disappointed
with Java UIs and found they don't give the = cross-platform support that
Java originally promised, plus = OSX/macOS has not made Java as welcome as
it use to be. If = you do choose Java, it will need to work under openJDK
as = this is what most Linux users will have installed.

For now, the possible options for the GUI part = are Qt, wxWidgets or FLTK,
or even Electron.

I would look at either Qt or even Electron (I believe visual = code is
written using = Electron, which is the other editor I use from time to
time).

There was an Emacs project = called Eclaim (I think) which interfaced with
Eclipse services in order to = provide dynamic completion when doing
Java. That could be worth checking out for ideas to = borrow.

Tim

-- 
Tim = Cross

= --Apple-Mail=_7A767D62-D07C-4FAF-A5D8-1033FCD271FD--