Namespace

Methods

Files

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/
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.