Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

seejee/sqlite-pure-ruby

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pure-sqlite: A SQLite implementation in 100% ruby.

At the moment, this library only reads the 100 byte header and the schema page so that a list of tables can be retrieved.

To get the list of tables:

require 'PureSQLite'

PureSQLite::Database.open(filename) do |db|
  db.tables
end

For information about the file format itself, please see the following link:

http://www.sqlite.org/fileformat.html

This library works makes extensive use of Ruby's String#unpack method to read from a valid SQLite database file. The hierarchy of decoded objects looks like:

File -> Header -> N Pages -> N Cells -> 1 Database Record -> N Data Fields

About

SQLite client in 100% Ruby

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.