No commit activity in last 3 years
No release in over 3 years
Rack session store for Sequel
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

>= 0
>= 0
 Project Readme

rack-session-sequel

Rack session store for Sequel

http://github.com/migrs/rack-session-sequel

Build Status

Installation

gem install rack-session-sequel

Usage

Simple (In-Memory Sequel Database)

use Rack::Session::Sequel

Specify DB URI (see Connecting to a database)

use Rack::Session::Sequel, 'sqlite://blog.db'

Set Sequel DB instance

DB = Sequel.connect('sqlite://blog.db')
use Rack::Session::Sequel, DB

With some config

use Rack::Session::Sequel, :db => DB, :expire_after => 600
use Rack::Session::Sequel, :db_uri => 'sqlite://blog.db', :expire_after => 600

Specify session table name

use Rack::Session::Sequel, :db => DB, :table_name => :tbl_session

About Sequel

License

rack-session-sequel is Copyright (c) 2012 Masato Igarashi(@migrs) and distributed under the MIT license.