class SQLite3::Database

def readonly?

A helper to check before performing any operation
Returns +true+ if the database has been open in readonly mode
def readonly?
  @readonly
end