Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/laysakura/mysqlite-storage-engine

MySQL storage engine that reads/writes SQLite database files.
https://github.com/laysakura/mysqlite-storage-engine

Last synced: 17 days ago
JSON representation

MySQL storage engine that reads/writes SQLite database files.

Awesome Lists containing this project

README

        

* MySQLite Storage Engine
MySQLite Storage Engine is a MySQL storage engine that aims to read/write SQLite database files.
Currently it does not fully work.

** Current feature
- Fullscan support
- Some CPU-intensive queries like GROUP BY and ORDER BY are faster than SQLite.

** Installation
Checked with:
- CentOS release 5.9 (Final)
- gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-54)

*** Build MariaDB with MySQLite
#+BEGIN_SRC sh
$ cd mariadb-%VERSION%/storage
$ git clone git://github.com/laysakura/MySQLite-Storage-Engine.git mysqlite
$ cd ..
$ cmake # Use -DCMAKE_INSTALL_PREFIX=/path/to/basedir -DMYSQL_DATADIR=/path/to/datadir if necessary
$ make && make install
#+END_SRC

*** Launch mysqld
#+BEGIN_SRC sh
$ /path/to/basedir/scripts/mysql_install_db # Use --basedir=/path/to/basedir --datadir=/path/to/datadir if necessary
$ ~/local/mariadb-10.0.2/bin/mysqld --defaults-file=/path/to/my.cnf
#+END_SRC

*** Install MySQLite
#+BEGIN_SRC sh
$ cd mariadb-%VERSION%/storage/mysqlite
$ mysql --defaults-file=/path/to/my.cnf -uroot < support-files/install.sql
#+END_SRC

*** Test MySQLite
Create database and user before running tests if necessary.
#+BEGIN_SRC sh
$ DB=user_db CNF=/path/to/my.cnf DBI_USER=user DBI_PASSWORD=password ./run_tests.pl
#+END_SRC
*Currently, t/05 and t/06 do not pass.*