PGSQL GENERAL 34 RE POSTGRESQL AND JAVASCRIPT
From: esoteric@no-spam (Geoffrey)
Subject: Re: postgresql and javascript
Date: Fri, 10 Dec 2004 14:12:01 -0500


Chris Smith wrote:
> RobertD.Stewart@no-spam wrote:
> >> Does anyone know how to connect javascript to a postgresql >> database > > > You can't connect javascript to any sort of database.

Actually you can, with server side javascript, although I don't know if it supports postgresql. It does support odbc.

-- Until later, Geoffrey
---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings







From: esoteric@no-spam (Geoffrey)
Subject: Re: postgresql and javascript
Date: Sat, 11 Dec 2004 20:50:44 -0500

Chris Travers wrote:
> Geoffrey wrote:
> >> Chris Smith wrote:
>>
>>> RobertD.Stewart@no-spam wrote:
>>>
>>>> Does anyone know how to connect javascript to a postgresql >>>> database >>>
>>>
>>>
>>>
>>> You can't connect javascript to any sort of database.
>>
>>
>>
>> Actually you can, with server side javascript, although I don't know >> if it supports postgresql. It does support odbc.
>>
> Javascript is simply designed for lightweight scripting against a > pre-existing object set provided by the host program.

I wouldn't recommend it, but we did have a full database implementation strictly using server side javascript. It was a time reporting system and it worked okay. The server side stuff seemed to be quite a load on the server though. We are using to connect to an existing Oracle database. Nothing else, html and server side javascript.

-- Until later, Geoffrey
---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match