Skip to content

Commit 1e8d792

Browse files
committed
database - preliminary support for sqlite
* currently sqlite is not supported cos we have a SUBSTRING function that we need to change * related to https://gitlab.com/codeigniterpower/codeigniter-currencylib/-/issues/15 * related to commit 3cd0a59
1 parent 3cd0a59 commit 1e8d792

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,7 @@
3131
*.gif binary
3232
*.ico binary
3333
*.mo binary
34+
*.sqlite binary
35+
*.dbsqlite binary
36+
*.db binary
37+

cweb/elcurrencyweb/config/database.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,15 @@
8282
'encrypt' => FALSE, 'compress' => FALSE, 'stricton' => FALSE, 'failover' => array(), 'save_queries' => TRUE
8383
);
8484

85+
// $db['elcurrencydb'] = array(
86+
// 'dsn' => 'sqlite:'.APPPATH.'/elcurrencydb.db',
87+
// 'database' => '',
88+
// 'hostname' => '', 'username' => '', 'password' => '',
89+
// 'dbdriver' => 'pdo', 'dbprefix' => '', 'pconnect' => FALSE, 'db_debug' => (ENVIRONMENT !== 'production'),
90+
// 'cache_on' => FALSE, 'cachedir' => '', 'char_set' => 'utf8', 'dbcollat' => 'utf8_general_ci', 'swap_pre' => '',
91+
// 'encrypt' => FALSE, 'compress' => FALSE, 'stricton' => FALSE, 'failover' => array(), 'save_queries' => TRUE
92+
// );
93+
8594
$db['default'] = $db['elcurrencydb'];
8695
// db default is at the end, after definition of "elsistemadb"
8796

cweb/elcurrencyweb/elcurrencydb.db

76 KB
Binary file not shown.

0 commit comments

Comments
 (0)