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