I am trying to figure out the best way to do this and granted I am not sure my 
architecture is the most sane or sensible way to handle it.  I am trying to 
build my DB interface and I want to allow the system to deal with numerous 
types of data stores.  So I have a config file that is read and gets the 
information needed.  So to pseudo lay it out:

(define (query-db where-clause))

(define (db-type)
  (cond
    [(=? db-conf '(mysql)) (????)]) ;something to redefine how query-db 
actually works.
)

Maybe this is silly as in query-db I can just do a conditional for each type.  
But then I have to do a conditional for each DB action, connect, drop, query, 
update, etc.  I was thinking loading the conditional and redefining place 
holders would be a more elegant solution.  I don't know just spit balling with 
a different design pattern here.

Ken

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to