Hi ! I just discovered your fabulous work ! It's really awesome !
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 !


4 replies to this topic
#1
Posted 10 January 2012 - 12:36 AM
#2
Posted 10 January 2012 - 03:48 AM
grocery_CRUD is built on top of CodeIgniter ... which in turn provides the actual database drivers for a range of different DBs - including SQLite.
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 :
http://www.grocerycr...__fromsearch__1
Try that and let us know how it goes.
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 :
http://www.grocerycr...__fromsearch__1
Try that and let us know how it goes.
#3
Posted 10 January 2012 - 07:44 AM
With SQLLite doesn't work completely.
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
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

#4
Posted 10 January 2012 - 02:24 PM
I was wondering it will work great if we use some custom model in codeigniter, i have made it with SQLServer 2005 before, with some line of code in grocery_crud library it will work
Also tagged with one or more of these keywords: sqlite
Support →
I have a question →
Database Syntax error Codeigniter Grocery Crud with SQLiteStarted by spsuresh54, 27 Jun 2020 ![]() |
|
![]() |
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users