2015-03-12 21:21:33 +00:00
|
|
|
# crystal-sqlite3
|
|
|
|
|
2015-07-01 01:51:34 +00:00
|
|
|
[![Build Status](https://travis-ci.org/manastech/crystal-sqlite3.svg?branch=master)](https://travis-ci.org/manastech/crystal-sqlite3)
|
|
|
|
|
2015-03-12 21:21:33 +00:00
|
|
|
SQLite3 bindings for [Crystal](http://crystal-lang.org/).
|
|
|
|
|
2015-03-13 00:08:01 +00:00
|
|
|
**This is a work in progress.**
|
|
|
|
|
|
|
|
[Documentation](http://manastech.github.io/crystal-sqlite3/)
|
|
|
|
|
2015-03-12 21:21:33 +00:00
|
|
|
### Projectfile
|
|
|
|
|
|
|
|
```crystal
|
|
|
|
deps do
|
|
|
|
github "manastech/crystal-sqlite3"
|
|
|
|
end
|
|
|
|
```
|
2015-03-13 00:08:01 +00:00
|
|
|
|
|
|
|
### Usage
|
|
|
|
|
2015-07-01 01:51:34 +00:00
|
|
|
```crystal
|
2015-03-13 00:08:01 +00:00
|
|
|
require "sqlite3"
|
|
|
|
|
|
|
|
db = SQLite3::Database.new( "data.db" )
|
|
|
|
db.execute("select * from table") do |row|
|
|
|
|
p row
|
|
|
|
end
|
|
|
|
db.close
|
|
|
|
```
|