Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id D8467632C1D; Fri, 30 Jan 2009 09:02:22 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 79717-01-6; Fri, 30 Jan 2009 09:02:15 -0400 (AST) X-Greylist: delayed 00:09:49.810607 by SQLgrey-1.7.6 X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.eba.si (eba.si [194.249.173.77]) by mail.postgresql.org (Postfix) with ESMTP id 86249632C30; Fri, 30 Jan 2009 09:02:13 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by mail.eba.si (Postfix) with ESMTP id 0A733328652; Fri, 30 Jan 2009 13:52:20 +0100 (CET) X-Virus-Scanned: amavisd-new at site Received: from mail.eba.si ([127.0.0.1]) by localhost (192.168.0.10 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3cHmEQZ9+W+J; Fri, 30 Jan 2009 13:52:15 +0100 (CET) Received: from [192.168.0.101] (vertex.eba.si [192.168.0.101]) by mail.eba.si (Postfix) with ESMTP id 882DD870006; Fri, 30 Jan 2009 13:52:15 +0100 (CET) Message-ID: <4982F7FB.5020202@eba.si> Date: Fri, 30 Jan 2009 13:52:11 +0100 From: "Miha D. Puc" User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: Reg Me Please CC: pgsql-general@postgresql.org, pgsql-interfaces@postgresql.org Subject: Re: [INTERFACES] PGSQL and Javascript References: <200901301240.37112.regmeplease@gmail.com> <200901301309.47273.regmeplease@gmail.com> <264855a00901300424v789e00a6gc59ba5dd90c33c24@mail.gmail.com> <200901301343.39689.regmeplease@gmail.com> In-Reply-To: <200901301343.39689.regmeplease@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200901/1088 X-Sequence-Number: 143173 Well you can add you own objects to Spidermonkey via its c api. So you can implement something like Database object in c using libq and access it from your script. Regards, Miha Reg Me Please pravi: > I already have a JS interpreter (spidermonkey) but there is no PGSQL > interfacing API! > This'd be why I'm asking. > > On Friday 30 January 2009 13:24:59 Sean Davis wrote: > >> On Fri, Jan 30, 2009 at 7:09 AM, Reg Me Please wrote: >> >>> I'd like to write part of the application in Javascript, server side, not >>> in >>> the web page. >>> >> I missed your point. Do a google search for javascript interpreters in the >> language of your choice. For example, there is Rhino for java. >> >> Sean >> >> >>> On Friday 30 January 2009 12:53:05 Allan Kamau wrote: >>> >>>> May be Javascript + JDBC not sure. >>>> >>>> But the question is why would you want to do so? >>>> Javascript can be read easily by the user having the javascript >>>> running on their browser. JDBC or any other database connecting client >>>> will want to some how authenticate the user in most cases the >>>> username, password and maybe remote IP is used. This mean that your >>>> javascript will probably contain username and password in order to use >>>> JDBC to connect to the DB, is this favourable? >>>> >>>> Allan. >>>> >>>> On Fri, Jan 30, 2009 at 1:40 PM, Reg Me Please >>>> >>> wrote: >>> >>>>> Hello all. >>>>> >>>>> Is there a way to directly access PGSQL from a Javascript >>>>> application? With no application server intervention, I mean. >>>>> Just like libq allows access from C/C++. >>>>> >>>>> -- >>>>> Fahrbahn ist ein graues Band >>>>> weisse Streifen, grüner Rand >>>>> >>>>> -- >>>>> Sent via pgsql-general mailing list (pgsql-general@postgresql.org) >>>>> To make changes to your subscription: >>>>> http://www.postgresql.org/mailpref/pgsql-general >>>>> >>> -- >>> Fahrbahn ist ein graues Band >>> weisse Streifen, grüner Rand >>> >>> -- >>> Sent via pgsql-interfaces mailing list (pgsql-interfaces@postgresql.org) >>> To make changes to your subscription: >>> http://www.postgresql.org/mailpref/pgsql-interfaces >>> > > > > -- __________________________________________________________ Miha D. Puc EBA, agencija za elektronsko poslovanje, d.o.o., Ljubljana Teslova ulica 30 SI-1000 Ljubljana e-mail: miha.puc@eba.si internet: www.eba.si GSM: +386 (0)40 620 408 TEL: +386 (0)1 477 66 60 __________________________________________________________