All pastes #563234 Raw Edit

Something

public text v1 · immutable
·published 2007-06-13 01:36 UTC
rendered paste body
alias open.db { 
  ; Opens a database and displays the status after.
  if (!$sqlite_is_valid_conn(%iwwf.db)) {
    set -e %iwwf.db $sqlite_open(iwwf.sql)
    if (%iwwf.db) { echo -a Database opened successfully. }
    else { echo -a Error opening database: %sqlite_errstr } 
  }
}