[squeak-dev] ConfigurationOfSQLite3 working & lessons learned

Sean P. DeNigris sean at clipperadams.com
Thu May 20 15:14:13 UTC 2010


There was an off-list discussion about this between Torsten, Hannes, Andreas,
and myself.  I've posted the summary here for your perusal...

SQLLite3: "I consider ConfigurationOfSQLite3 to be very useful. A kind of
generalised platform independent ini file to store application
specific data - one of the  ways to connect Squeak to the outside
world.

http://www.sqlite.org/about.html
'SQLite is very carefully tested prior to every release and has a
reputation for being very reliable. Most of the SQLite source code is
devoted purely to testing and verification.'" - Hannes

Status:
ConfigurationOfSQLite3 is working and part of the Configurations package -
thanks to Torsten & Hannes
SQLite3 tests all green on Mac - I fixed, Torsten included it

Lessons learned:
* plugins - if required by configuration:
  - best - add a pre or post-load doit to the ConfigurationOf (per Torsten,
see below)
  - simplest - add a class comment to the ConfigurationOf (per Hannes)
* ConfigBrowser - only picks up MetacelloConfiguration subclasses (per
Andreas)

Automatically installing a plugin with pre & post-load dots (by Torsten):
    This could be automated using Metacello without any problem. Just
    add a doit in the ConfigurationOfSQLite3.

    One can create a SAR (Squeak archive, which is nothing more like a 
    simple ZIP with a specific folder structure) to provide the libraries 
    for the OS platforms.

    In the configuration you can add a pre- or postload doit
    (simple method that is called while loading) via:

    spec preLoadDoIt: #preloadForSQLite3;
	postLoadDoIt: #postloadForSQLite3;


    In such a custom method you can instruct Installer/Gofer to download  
    and install the SAR.

    If you look at the old SqueakMap you will find an example: 
        "Free Type Plus (plugins installer)" which points to

   
http://map.squeak.org/accountbyid/46dcf6af-067d-43e3-9fc9-d7010e067153/files/FreeTypePluginInstaller2.sar

    If you download it, rename it to ZIP you will see that it contains
    the libraries for freetype and a SAR preamble to extract the plugins
    at the

       SmalltalkImage current vmPath

    location depending on operating system. 

    So it is doable without much effort but requires several platforms 
    to test...

Sean


-- 
View this message in context: http://forum.world.st/ConfigurationOfSQLite3-working-lessons-learned-tp2224709p2224709.html
Sent from the Squeak - Dev mailing list archive at Nabble.com.



More information about the Squeak-dev mailing list