ColdPress: SQL Server or MySQL or ORM?
Sep 16, 2009 General
In developing ColdPress I’ve come to the point where I need to start building in my database support. If I were building this guy with ColdFusion 9 or some other ORM tools, like transfer then I wouldn’t worry so much about what database engine I used. However since I want this to be as framework-less (word?) as possible I’ve shied away from transfer, coldspring or mach-ii.So my first thought was to develop using SQL server since I have a feeling that’s going to cover a wide spectrum of the ColdFusion audience. Then I thought about using MySQL to make it truly open source (ie: open source app using open source DB) but then decided that might limit the reach of the product.
Now granted, I’m planning to add in multiple database support after the launch, but just to get to the launch point I’m debating which way to go.
I could use Transfer, but I’m wondering if that’s putting to many requirements on the app? ie: Requirements of Coldpress + the Requirements of Transfer = Requirements of the App
Anyone care to way in on this? I have a feeling I know where this is going to go, but I’m curious what my wide range (read: 3) of readers thing.



September 16th, 2009 at 8:24 pm
September 16th, 2009 at 9:26 pm
September 16th, 2009 at 9:27 pm
September 17th, 2009 at 6:15 am
September 17th, 2009 at 9:15 am
September 17th, 2009 at 10:41 am
How is putting the requirement of having Transfer in the app any worse than having the requirement of a specific database?
If you choose a specific database engine, then your requirements will REALLY be
ColdPress + Specific RDBMS
Seems to me that you will be making more difficult for people to use the product if you write it to a specific DB. I can assure you that if it only works with MS SQL that it would never be adopted where I work, nor would I use it for my personal site or any side work.
Even using Transfer will not eliminate all of your cross DB issues. Unlike Hibernate, Transfer will NOT create your DB schema and tables for you, so you will still need a specific create script for each engine.
Finally, as Ben said. If you write your data access layer correctly, then you should need to worry. Try not to use SQL that is specific to certain DBs. Then you only nee dot worry about having specific create scripts for the application.
September 17th, 2009 at 12:09 pm
It doesn’t require ORM syntax, runs on a wide selection of CFML engines, has a small footprint, and supports more databases than Transfer.
Oh yeah, and it *can* create the database schema for you - as well as manage adding any missing tables or columns (handy for upgrades). So no need for SQL scripts.
http://datamgr.riaforge.org/
September 17th, 2009 at 1:14 pm