2010-11-01

SWFOX - "Creating database abstraction classes" session - by Steve Ellenoff

"imagine if your database application could switch from using foxpro tables, to microsoft sql server, mysql, or to postgresql, by simply changing one line in a configuration file? imagine further if this change could occur programmatically at run time, without having to write different code to handle each different back-end separately?"


the teaser text above drove me directly to steve ellenoff's session - creating database abstraction classes in vfp: switch your back-end with ease. my experience with databases is is really restrict, and i wanted to hear from an expert about the best techniques to work in different scenarios.


steve showed how he created his "data related abstraction class" - dac, that allows his application to switch from:



  • foxpro data to any remote sql server back-end easily.
  • any remote sql server back-end to foxpro data easily.
  • any remote sql server back-end to any other remote sql server easily.

the application could make this switch at development time or run time, even programmatically, without:




  • having to re-write the application or change any source code.


  • having to code the specifics of each back-end into the application.


  • the application should be able to support multiple back-ends all at the same time, even allowing the same exact form to work with different back-ends at the same time.

that's pretty cool! he showed us how these classes can create automatically the "select" statements to access vfp, sql server, mysql or postgree data automatically. it was really very good to see step by step how these classes do the job.


of course there are lots of differences between the databases, the field types, the access, the instructions, the language, etc. really impressive to see how he made something really complicated from my point of view to look so accessible. he provided his classes and many samples for me to start with, all super well documented in his 86 pages whitepaper! below is a diagram taken from the whitepaper that summarizes all of that:


 

thanks a lot steve, your session was great, and very helpful.

3 comments:

  1. Hi  Cesar,

    Where is the Download Link...?
    Hi Neeraj,
    There is no download link ! I'm just telling about the session !
    Regards
    Cesar

    ReplyDelete
  2. This is VERY interesting! Did he tell something about publish this techniques (e.g. a book)?

    ReplyDelete
  3. Hi,

    Is there any option to attend this (SWFOX) online in future? Is there any paid download link for this?
    Hi Naeem,
    I truly don't know. You should try to contact the conference organizers directly. At the Conference website you'll find the Contact informations: www.swfox.net

    ReplyDelete