Sha256: df0fb2c3ffa16b77e1e613b371bd7ffd4f8f16f49e3511fcf00cd66d4c5d7eef
Contents?: true
Size: 528 Bytes
Versions: 2
Compression:
Stored size: 528 Bytes
Contents
#-- # Customize the standard Sqlite3 resultset to make # more compatible with Og. #++ module SQLite3 # :nodoc: all class ResultSet # :nodoc: all alias_method :blank?, :eof? def each_row each do |row| yield(row, 0) end end def first_value val = self.next[0] close return val end alias_method :fields, :columns end class SQLException # :nodoc: all def table_already_exists? # gmosx: any idea how to better test this? self.to_s =~ /table .* already exists/i end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
og-0.41.0 | lib/og/adapter/sqlite/override.rb |
og-0.40.0 | lib/og/adapter/sqlite/override.rb |