【codeigniter】codeigniter3でsqlite3を使うよ!
application/config/database.php
<?php $active_group = 'sqlite'; $query_builder = TRUE; $db['sqlite'] = array( 'dsn' => 'sqlite:'.APPPATH.'sqlite/db.sqlite', 'hostname' => '', 'username' => '', 'password' => '', 'database' => '', 'dbdriver' => 'pdo', 'dbprefix' => '', 'pconnect' => FALSE, 'db_debug' => (ENVIRONMENT !== 'production'), 'cache_on' => FALSE, 'cachedir' => '', 'char_set' => 'utf8', 'dbcollat' => 'utf8_general_ci', 'swap_pre' => '', 'autoinit' => TRUE, 'encrypt' => FALSE, 'compress' => FALSE, 'stricton' => FALSE, 'failover' => array(), 'save_queries' => TRUE ); ?>
で動いた。
<?php 'dsn' => 'sqlite:'.APPPATH.'sqlite/db.sqlite', ?>
の
<?php 'dsn' => 'sqlite:' ?>
に気づくまでめっちゃ長かった!