[squeak-dev] SQLite in Squeak Smalltalk

Edwin Ancaer eancaer at gmail.com
Fri Feb 10 04:05:11 UTC 2017


Ben, Vaidotas,

thanks for helping me out. The version at http://smalltalkhub.com/#!/~
MilanVavra/SqueakSQLite3
is working, but only after I added the module: parameter in the api...
method definitions in the class, eg.

<cdecl: long 'sqlite3_open' (char* SqliteReference*) *module:
'libsqlite3.so.0'*>

I found the module: parameter http://wiki.squeak.org/squeak/2426.
Is this new for FFI in Squeak 5, or is there still something wrong with my
FFI settings?

Kind regards,

2017-02-09 13:08 GMT+00:00 Ben Coman <btc at openinworld.com>:

> On Thu, Feb 9, 2017 at 8:01 PM, Edwin Ancaer <eancaer at gmail.com> wrote:
> > Hello,
> >
> > I would like to use SQLite in a Squeak project. I currently use Squeak
> 5.1
> > on the raspberry Pi.
> >
> >  I found the 'List of SQLite / SQLite3 wrapper implementations' on the
> > squeak wiki. The most recent wrapper is NBSQLite3 (2014), but that seems
> to
> > be specific for Pharo.
>
> Yes. That would be Pharo only.  The NB is NativeBoost which was a
> Pharo 4 diversion for a high performance FFI, but was x86 only and
> made it harder to collaborate on the VM with Squeak folks.  Pharo 5
> FFI returned to the fold to use again the original-FFI & Alien, but
> with (IIUC) a layer called Unified FFI so NB syntax translates to
> original-FFI backend.
> (http://forum.world.st/UFFI-on-Squeak-td4895679.html)
>
> >  I installed the one before that, SQLite (2013),
> > reported as 'might be outdated'.
> >
> > After installation,all tests failed. It must have something to do with
> the
> > FFI settings, because when I add the location of the SQLite.so in the
> > module: parameter  off the cdel's of the external functions, there are
> just
> > 2 errors remaining.
> >
> > Before I start looking into this any further, I would like to ask if this
> > SQLite wrapper is the correct one to use?
>
> From a distance, this one from 2016 has potential...
> http://smalltalkhub.com/#!/~MilanVavra/SqueakSQLite3
>
> cheers -ben
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20170210/6add484f/attachment.html>


More information about the Squeak-dev mailing list