mirror of
https://gitea.invidious.io/iv-org/shard-crystal-sqlite3.git
synced 2024-08-15 00:53:26 +00:00
28 lines
546 B
Markdown
28 lines
546 B
Markdown
# crystal-sqlite3 [![Build Status](https://travis-ci.org/manastech/crystal-sqlite3.svg?branch=master)](https://travis-ci.org/manastech/crystal-sqlite3)
|
|
|
|
SQLite3 bindings for [Crystal](http://crystal-lang.org/).
|
|
|
|
**This is a work in progress.**
|
|
|
|
[Documentation](http://manastech.github.io/crystal-sqlite3/)
|
|
|
|
### shard.yml
|
|
|
|
```yml
|
|
dependencies:
|
|
sqlite3:
|
|
github: manastech/crystal-sqlite3
|
|
```
|
|
|
|
### Usage
|
|
|
|
```crystal
|
|
require "sqlite3"
|
|
|
|
db = SQLite3::Database.new( "data.db" )
|
|
db.execute("select * from table") do |row|
|
|
p row
|
|
end
|
|
db.close
|
|
```
|