File indexing completed on 2024-03-24 16:11:23

0001 #!/bin/bash
0002 
0003 # sqltest_int - fast parser testing using sqlite database (interactive)
0004 # Type sqltest_int for usage info.
0005 # Copyright (C) 2004-2016 Jaroslaw Staniek <staniek@kde.org>
0006 
0007 apppath=`realpath $0`
0008 appdir=`dirname $apppath`
0009 app=`basename $apppath`
0010 [ $# -lt 1 ] && echo "Usage: $app <sqlite-database-name> [-v] [other_options]" && \
0011  echo " -v    Verbose mode" && exit 1
0012 
0013 dbname=$1
0014 shift
0015 
0016 echo "Enter SQL Statement:"
0017 read
0018 
0019 "$appdir/sqltest" "$dbname" "$REPLY" $*