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