Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
SqueakDBX - Installation
Last updated at 8:46 pm UTC on 22 August 2009

Installing SqueakDBX

Remember you can install if from Universe, SqueakMap or Monticello.

(If you are in pharo you can simply evaluate "ScriptLoader loadFFI")

If you don't install FFI before SqueakDBX we will have an error: sintax errror: OpenDBXUnix api calls apiBind: handle database: databaseName name: userName password: password method: method"




Installing SqueakDBX in Pharo


Since latest Pharo version 10418 SqueakDBX, Glorp and GlorpDBX loads easily in Pharo. The Cryptography package is not need any more as MD5 was Incorporated in Pharo.

You must have Installer installed in your image. If you use a Pharo it should be already installed, however in a core image, you should install it. The easier way is to just evaluate:

ScriptLoader new installingInstaller.

So, this is the summary to load this packages in Pharo:

SqueakDBX:

The loader will load not only SqueakDBX but also FFI.

Installer ss
project: 'SqueakDBX';
install: 'SqueakDBXPharoLoader'.

And then evaluate:

SqueakDBXPharoLoader loadSqueakDBX



Glorp:

This will apply the path to support underscore in selectors, load Glorp, the GlorpPharoAdaptor and the native PostgreSQL driver.

Installer ss
project: 'Glorp';
install: 'GlorpPharoLoader'.

And then evaluate:

GlorpPharoLoader loadGlorpWithNativePostgreSQLDriver



GlorpDBX:

This will apply the path to support underscore in selectors, load Glorp and the GlorpPharoAdaptor. Then it will apply the path to Glorp to support different database drivers (our refactor) and will load the SqueakDBX Glorp Driver and also will load SqueakDBX and FFI. You don't nee to explicitly download SqueakDBX in this case.

Installer ss
project: 'SqueakDBX';
install: 'SqueakDBXPharoLoader'.

And then evaluate:

SqueakDBXPharoLoader loadGlorpDBX