Sha256: 92533a74baa7ff875e368503d366513ee91f9a68b0b2ed516d45fbae0031fcbc

Contents?: true

Size: 547 Bytes

Versions: 19

Compression:

Stored size: 547 Bytes

Contents

#
# $Id: sql.rb,v 1.3 2006/03/27 20:25:02 francis Exp $
#
# parts extracted from Jim Weirichs DBD::Pg
#

require "dbi/utils"
require "time"

module DBI
    # the SQL package contains assistance for DBDs and generally will not be
    # needed outside of them.
    module SQL
        # Helper to determine if the statement is a query. Very crude and
        # should not be relied on for accuracy.
        def self.query?(sql)
            sql =~ /^\s*select\b/i
        end
    end # module SQL
end # module DBI

require 'dbi/sql/preparedstatement'

Version data entries

19 entries across 19 versions & 3 rubygems

Version Path
ydbi-0.6.0 lib/dbi/sql.rb
ydbi-0.5.9 lib/dbi/sql.rb
ydbi-0.5.8 lib/dbi/sql.rb
ydbi-0.5.7 lib/dbi/sql.rb
ydbi-0.5.6 lib/dbi/sql.rb
ydbi-0.5.5 lib/dbi/sql.rb
ydbi-0.5.4 lib/dbi/sql.rb
ydbi-0.5.3 lib/dbi/sql.rb
ydbi-0.5.2 lib/dbi/sql.rb
ydbi-0.5.1 lib/dbi/sql.rb
ydbi-0.5.0 lib/dbi/sql.rb
rails-dbi-0.1.2 lib/dbi/sql.rb
rails-dbi-0.1.1 lib/dbi/sql.rb
rails-dbi-0.1.0 lib/dbi/sql.rb
dbi-0.4.5 lib/dbi/sql.rb
dbi-0.4.4 lib/dbi/sql.rb
dbi-0.4.3 lib/dbi/sql.rb
dbi-0.4.2 lib/dbi/sql.rb
dbi-0.4.1 lib/dbi/sql.rb