SQLite ?
- Single Page
Posted 10 January 2012 - 00: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 !
Thanks !
Posted 10 January 2012 - 03:48 AM
If you edit
application/config/database.php
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 :
/topic/50-postgresql-and-grocery-crud/page__hl__postgresql__fromsearch__1
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 - 14:24 PM
Posted 05 July 2012 - 18:48 PM
/topic/651-suport-for-sqlite3/