Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > ANN: Sequel 0.1.4 Released - ODBC adapter and more

Reply
Thread Tools

ANN: Sequel 0.1.4 Released - ODBC adapter and more

 
 
Sharon Rosner
Guest
Posts: n/a
 
      05-25-2007
Sequel version 0.1.4 has just been released. This release adds an ODBC
adapter, handling of multi-line SQL statements and improvements to the
schema DSL.

ODBC adapter
------------
Sequel now includes an ODBC adapter which uses the odbc gem directly.

require 'sequel/odbc'
DB = Sequel.open 'odbc:/my_dsn'
# etc...

Multi-line SQL statements
-------------------------
Database#<< can now accept strings and arrays of strings containing
multiple SQL statements, line breaks and comments, making it easy to
work with schema files and database dump files. e.g.:

DB << IO.read('schema')

You can also split a string into separate SQL statements (also
stripped of comments and line breaks):

IO.read('schema').split_sql #=> array of statements

Improvements to Schema DSL
--------------------------
The schema generator DSL is improved to support data types as methods,
so instead of writing:

DB.create_table :items do
column :name, :text
column rice, :decimal
end

You can now write:

DB.create_table :items do
text :name
decimal rice
end

======================

Sequel documentation:
<http://sequel.rubyforge.org>

Join the Sequel-talk group:
<http://groups.google.com/group/sequel-talk>

Install the gem:
sudo gem install sequel

Or check out the source and install manually:
svn co http://ruby-sequel.googlecode.com/svn/trunk sequel
cd sequel
rake install


 
Reply With Quote
 
 
 
 
Gregory Brown
Guest
Posts: n/a
 
      05-25-2007
On 5/25/07, Sharon Rosner <> wrote:
> Sequel version 0.1.4 has just been released. This release adds an ODBC
> adapter, handling of multi-line SQL statements and improvements to the
> schema DSL.


Nice work Sharon! I'll try wrapping this with a Ruport plugin soon.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
keep gettting errors using Sequel ODBC::Error: 37000 (170) Junkone Ruby 0 05-25-2011 04:11 PM
64 bit ODBC and a 32 bit ODBC Harrysmithsteven@gmail.com Windows 64bit 5 07-16-2008 02:34 PM
ANN: Sequel 0.0.19 Released and Sequel discussion list Sharon Rosner Ruby 0 04-16-2007 09:48 AM
ERROR [HY000] [Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x8fc Thread 0x934 DBC 0x437b94 Jet'. ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr bazzer ASP .Net 1 03-24-2006 04:20 PM
ERROR [HY000] [Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x8fc Thread 0x934 DBC 0x437b94 Jet'. ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr bazzer ASP .Net 0 03-24-2006 02:22 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57