2015-11-28 12:56:33 +00:00
|
|
|
# crystal-sqlite3 [![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-11-28 13:07:42 +00:00
|
|
|
### shard.yml
|
2015-03-12 21:21:33 +00:00
|
|
|
|
2015-11-28 13:07:42 +00:00
|
|
|
```yml
|
|
|
|
dependencies:
|
|
|
|
sqlite3:
|
|
|
|
github: manastech/crystal-sqlite3
|
2015-03-12 21:21:33 +00:00
|
|
|
```
|
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
|
|
|
|
```
|