Subject | Re: [Firebird-Architect] Re: embedding Lua as procedural language |
---|---|
Author | Jim Starkey |
Post date | 2008-12-22T23:19:01Z |
Adriano dos Santos Fernandes wrote:
based, so it should be easy. Basically build a C++ class that
implements Connection, ResultSet, and probably MetaDataResultSet for
JavaScript. The rest of like fall off a log.
the best way for a specific application.
Jim Starkey
President, NimbusDB, Inc.
978 526-1376
> Roman Rokytskyy wrote:Don't know -- it's never come up.
>
>>> JavaScript may take longer, unless you already know how to embed
>>> them.
>>>
>>>
>> Embedding Rhino (JavaScript engine in Java, Mozilla) is a matter of 1-2
>> days of implementation incl. the usage scenario:
>>
>> var results = connection.execute("select first_name, last_name from
>> people where town=?", "Manchester");
>>
>> while (results.next())
>> doSomething(results.first_name, results.last_name);
>>
>> delete results;
>>
> What about javax.script package?
>
> With some small (that I already plan) additions to FB Java Engine, itThat's the plan. The SQL engine in Netfrastructure and Nimbus is JDBC
> will be possible to implement an engine in Java that interfaces with
> javax.script engines.
>
> Would it be possible (and good) to directly call JDBC methods from
> Javascript functions?
>
based, so it should be easy. Basically build a C++ class that
implements Connection, ResultSet, and probably MetaDataResultSet for
JavaScript. The rest of like fall off a log.
> Certainly will not be the fast things, but easy enough to support and ifThere are an infinite ways to implement anything. The art is picking
> desired, reimplemented in different ways.
>
the best way for a specific application.
>--
>
Jim Starkey
President, NimbusDB, Inc.
978 526-1376