Posted 10 January 2012 - 12:36 AM
I was wondering if it would be possible to port that to work with SQLite databases ? I had a quick look at the source, but I guess this is a bit over my level...
I know it is more difficult to get SQLite's databases metadata, but even with less functionality, your script would be very useful !
Posted 10 January 2012 - 03:48 AM
If you edit
and set the appropriate line to sqllite, it should work !
(should be line 55)
$db['default']['dbdriver'] = 'sqllite';
According to the doco, it should also work with :
['dbdriver'] The database type. ie: mysql. Currently supported: mysql, mysqli, postgre, odbc, mssql, sqlite, oci8
Having said that, there are several internal database calls that grocery_CRUD uses to determine the layout of tables and types of fields - any one of these _may_ be a source of incompatibility, but it does look OK from here. (Havent actually tried to use SQLLite yet)
Have a read of this thread for more info on what may be needed to get it working thoroughly with other databases :
Try that and let us know how it goes.
Posted 10 January 2012 - 07:44 AM
You can though try to use the set_model function to use your custom model for sqllite, without changing the actual core of grocery_CRUD. There is still not anyone yet to have this model to send it to you or have a link of it.
And to create it, its really easy. Just follow the ERRORS
Posted 10 January 2012 - 02:24 PM
Also tagged with one or more of these keywords: sqlite
I have a question →
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users