like I would like a database plug in that I can instantiate into a model so that it creates the sql table or tables with all the correct data types set for me, so I really would not have to use php my admin at all or even know sql to make a database. The plug in will create the db on the way I am using my data in my model.
All I would have to do is make a model and then this plug in will build my database schema based on the model so I don’t have write any sql at all is that plausible
like in my models constructor I would say:
$this->load->library(‘db_schema’,‘schema_set_up’);
then I would have a private function that would specifiy data type and sets like this
function _schema_set_up() {
$this->db_schema->CharField('feild_name',max_length=200);
$this->db_schema->IntegerField('feild_name');
}
then at the start of a new project I can call the db_schema class to build a database from the private function that I would declare in my model