the SQL package contains assistance for DBDs and generally will not be needed outside of them.
Helper to determine if the statement is a query. Very crude and should not be relied on for accuracy.
[Source]
# File lib/dbi/sql.rb, line 16 def self.query?(sql) sql =~ /^\s*select\b/i end
[Validate]