On Mon, Oct 4, 2010 at 2:07 PM, nullPointer <epicfan@gmail.com> wrote:

I�m cannot connect a sample SQLite DB. I�m sure need some steps but I don�t
know exactly.
Really I have alway problems when I try execute some external to Smalltalk
image. Exists a document with global information of that?

I did install SQueakDBX (with problems for #and:and:and: deprecated method
of boolean),

How did you install SqueakDBX?� Becasue this should not happen.


Gofer new
��� squeaksource: 'MetacelloRepository';
��� package: 'ConfigurationOfSqueakDBX';
��� load.

((Smalltalk at: #ConfigurationOfSqueakDBX) project version: '1.3') load.

That will load and initialize all what it is needed in the image side.
but the system launch a error when I try create and open the
connection to DB.

You need the opendbx and sqlite libraries.
Everything is explained here: http://www.squeakdbx.org/Compiling%20and%20installing%20OpenDBX

or here http://www.squeakdbx.org/Compiling%20for%20different%20backends

Looking in SqueakSource appears too a SQLite project (
SQLite3-Core and SQLite3-Tests ) but I get the same error... I understand
the problem is for FFI... but I don�t understand what is the cause...

Is needed something more for run FFI?

As far as I can see in ConfigurationOfFFI you have to do:

��� (Smalltalk at: #ExternalType) initialize.
��� (Smalltalk at: #ExternalStructure) compileAllFields.
��� Smalltalk recreateSpecialObjectsArray



Thanks for the help.
--
View this message in context: http://forum.world.st/Newbie-question-Connection-to-SQLite-DB-tp2954195p2954195.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.

_______________________________________________
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project