Create/Alter/Delete Tables?
Posted: Fri Oct 11, 2013 11:48 pm
Developers are often required to work with DBMSs that they have little or no expertise in, and that is where db libraries like SQL Yoga really come handy. Many libraries, however, seem to expect that the tables in the database will already exist - or leave it up to the developer to create and modify them by some other means. That seems to me to defeat the purpose of the library.
While being able to do CRUD operations is crucial, the developer can get away with using basic, standard SQL for most of these queries - and the knowledge required of the underlying DBMS is negligible. Creating and editing tables and fields, however, does require the developer to know the nitty-gritty of how things work behind the scenes - which is what we want to avoid - like: what data types are supported, when are indexes needed, how to setup foreign keys, etc.
Does SQL Yoga provide a database-agnostic way of creating, altering and deleting tables (and defining fields)?
While being able to do CRUD operations is crucial, the developer can get away with using basic, standard SQL for most of these queries - and the knowledge required of the underlying DBMS is negligible. Creating and editing tables and fields, however, does require the developer to know the nitty-gritty of how things work behind the scenes - which is what we want to avoid - like: what data types are supported, when are indexes needed, how to setup foreign keys, etc.
Does SQL Yoga provide a database-agnostic way of creating, altering and deleting tables (and defining fields)?