[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: luasql in luadist
- From: Peter Drahoš <drahosp@...>
- Date: Tue, 18 Feb 2014 17:10:27 +0100
On 18 Feb, 2014, at 16:52 , joao lobato <firstname.lastname@example.org> wrote:
> On 18/02/2014, Peter Drahoš <email@example.com> wrote:
>> On 18 Feb, 2014, at 16:22 , joao lobato <firstname.lastname@example.org> wrote:
>>> Hello list
>>> Does anyone know if it is possible to use luasql with an Oracle
>>> database, in Windows (7, if it matters), without building from source?
>>> In the the luadist directory tree, I see dlls for mysql, postgres and
>>> sqlite3, but not for the luasql module itself.
>>> I've downloaded the binaries package. `luadist list` shows
>>> luasql-2.3.0 as installed. In Lua, require 'luasql' returns the module
>>> not found error.
>>> Am I doing something wrong? Are there alternatives for my use case?
>>> Thanks in advance.
>> the luasql module is split into multiple “drivers”, each has its own package
>> in LuaDist. You can use the mysql driver as follows once you install
>> local sql = require “luasql.mysql”
>> This is well documented on the luasql project page.
>> The package is included in the current batteries release found on
>> luadist.org so you just need to download that.
>>  http://www.keplerproject.org/luasql/manual.html#drivers
> You are suggesting that I use "require 'luasql.mysql'" to talk to an
> Oracle 11g database? The same documentation suggests "require
> I concede that i missed that one, but I'd say that that isn't "well
> documented", no matter how "documented" it may be.
I misread your message and assumed you wanted to access mysql. While my suggestion was accurate the oic8 driver is currently not included in LuaDist. Please submit a module request for it here and I’ll see if it can be added quickly.
Description: Message signed with OpenPGP using GPGMail