Skip to content

Commit 35348ed

Browse files
committed
Renamed querydbn to querydbs
1 parent 262c786 commit 35348ed

19 files changed

+71
-71
lines changed

contrib/make/src

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ LIB_A = lib$(LIB).a
88

99
# executables
1010
DFW = dfw
11-
BFW = bfti bfwreaddirplus2db gufi_dir2trace gufi_dir2index gufi_stat gufi_trace2index gufi_query querydbn
11+
BFW = bfti bfwreaddirplus2db gufi_dir2trace gufi_dir2index gufi_stat gufi_trace2index gufi_query querydbs
1212
BFW_MYSQL = bfmi.mysql
1313
ifneq ("$(CXX)", "false")
1414
CXX_TOOLS =

contrib/make/test

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ TESTDST = $(TESTDIR).gufi
66

77
SUBDIRECTORIES = regression unit
88

9-
FILES = bfwi bfti bfq bfwreaddirplus2db querydbn dfw listschemadb listtablesdb groupfilespacehogusesummary userfilespacehogusesummary groupfilespacehog userfilespacehog oldbigfiles
9+
FILES = bfwi bfti bfq bfwreaddirplus2db querydbs dfw listschemadb listtablesdb groupfilespacehogusesummary userfilespacehogusesummary groupfilespacehog userfilespacehog oldbigfiles
1010

1111
# these are trashable files and dirs produced by the test/run* tests
1212
TEST_PRODUCTS = testout.* outdb* outq.* core.* bfwreaddirplusdb* $(TESTDIR) $(TESTDST) testbwrpdb

examples/groupfilespacehog

+4-4
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@
6363
SCRIPT="$BASH_SOURCE" # Must be at the top
6464
DIR=`dirname $SCRIPT`
6565
BFQ=$DIR/../src/gufi_query
66-
QUERYDBN=$DIR/../src/querydbn
66+
QUERYDBS=$DIR/../src/querydbs
6767

68-
#echo "running groupfilespacehog bfq is $BFQ and querydbn is $QUERYDBN"
68+
#echo "running groupfilespacehog bfq is $BFQ and querydbs is $QUERYDBS"
6969
echo "query to create db insert recs from entry query into out db group file space hog"
7070
rm -f outdb*
7171
$BFQ -E "insert into sument select gidtogroup(gid, 0), count(*), sum(size) from entries where type='f' group by gid;" -n $2 -O outdb -I "create table sument (groupname text, totfiles int64, totsize int64);" $1
7272
#ls -l
73-
#$EPATH/querydbn outdb "select groupname, totfiles, totsize from vsument group by groupname;" 0 1 1 $2 sument
74-
$QUERYDBN -NV outdb sument "select groupname, sum(totfiles), sum(totsize) from vsument group by groupname;" outdb.*
73+
#$EPATH/querydbs outdb "select groupname, totfiles, totsize from vsument group by groupname;" 0 1 1 $2 sument
74+
$QUERYDBS -NV outdb sument "select groupname, sum(totfiles), sum(totsize) from vsument group by groupname;" outdb.*

examples/groupfilespacehogusesummary

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@
6363
SCRIPT="$BASH_SOURCE" # Must be at the top
6464
DIR=`dirname $SCRIPT`
6565
BFQ=$DIR/../src/gufi_query
66-
QUERYDBN=$DIR/../src/querydbn
66+
QUERYDBS=$DIR/../src/querydbs
6767

6868
echo "query to create db insert recs from entry query into out db group file space hog use group summary"
6969
rm -f outdb*
7070
$BFQ -E "insert into sumsum select gidtogroup(gid, 0), totfiles, totsize from vsummarygroup;" -n $2 -O outdb -I "create table sumsum (groupname text, totfiles int64, totsize int64);" $1
71-
$QUERYDBN -NV outdb sumsum "select groupname, sum(totfiles), sum(totsize) from vsumsum group by groupname;" outdb.*
71+
$QUERYDBS -NV outdb sumsum "select groupname, sum(totfiles), sum(totsize) from vsumsum group by groupname;" outdb.*

examples/oldbigfiles

+3-3
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ SCRIPT="$BASH_SOURCE" # Must be at the top
6464
DIR=`dirname $SCRIPT`
6565
SCR=$DIR/../examples
6666
BFQ=$DIR/../src/gufi_query
67-
QUERYDBN=$DIR/../src/querydbn
67+
QUERYDBS=$DIR/../src/querydbs
6868

6969
echo "query to create db insert recs from entry query into out db old big files"
7070
rm -f outdb*
7171
# if you want to be fancy then use date functions to provide this in user readable date/time
72-
$BFQ -E "insert into sument select uidtouser(uid, 0), path(''), name, size, mtime from entries where type='f'and size>4;" -n $2 -O outdb -I "create table sument (username text, pathname text, name text, size int64, mtime int64);" $1
73-
$QUERYDBN -NV outdb sument "select username, pathname,name,size,mtime from vsument order by size;" outdb.*
72+
$BFQ -E "insert into sument select uidtouser(uid, 0), path(), name, size, mtime from entries where type='f'and size>4;" -n $2 -O outdb -I "create table sument (username text, pathname text, name text, size int64, mtime int64);" $1
73+
$QUERYDBS -NV outdb sument "select username, pathname,name,size,mtime from vsument order by size;" outdb.*

examples/userfilespacehog

+3-3
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@
6363
SCRIPT="$BASH_SOURCE" # Must be at the top
6464
DIR=`dirname $SCRIPT`
6565
BFQ=$DIR/../src/gufi_query
66-
QUERYDBN=$DIR/../src/querydbn
66+
QUERYDBS=$DIR/../src/querydbs
6767

6868
EPATH=..
6969
echo "query to create db insert recs from entry query into out db user file space hog"
7070
rm -f outdb*
7171
$BFQ -E "insert into sument select uidtouser(uid, 0), count(*), sum(size) from entries where type='f' group by uid;" -n $2 -O outdb -I "create table sument (username text, totfiles int64, totsize int64);" $1
72-
#$EPATH/querydbn outdb "select username, totfiles, totsize from vsument group by username;" 0 1 1 $2 sument
73-
$QUERYDBN -NV outdb sument "select username, sum(totfiles), sum(totsize) from vsument group by username;" outdb.*
72+
#$EPATH/querydbs outdb "select username, totfiles, totsize from vsument group by username;" 0 1 1 $2 sument
73+
$QUERYDBS -NV outdb sument "select username, sum(totfiles), sum(totsize) from vsument group by username;" outdb.*

examples/userfilespacehogusesummary

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@
6363
SCRIPT="$BASH_SOURCE" # Must be at the top
6464
DIR=`dirname $SCRIPT`
6565
BFQ=$DIR/../src/gufi_query
66-
QUERYDBN=$DIR/../src/querydbn
66+
QUERYDBS=$DIR/../src/querydbs
6767

6868
echo "query to create db insert recs from entry query into out db user file space hog use user summary"
6969
rm -f outdb*
7070
$BFQ -E "insert into sumsum select uidtouser(uid, 0), totfiles, totsize from vsummaryuser;" -n $2 -O outdb -I "create table sumsum (username text, totfiles int64, totsize int64);" $1
71-
$QUERYDBN -NV outdb sumsum "select username, sum(totfiles), sum(totsize) from vsumsum group by username;" outdb.*
71+
$QUERYDBS -NV outdb sumsum "select username, sum(totfiles), sum(totsize) from vsumsum group by username;" outdb.*

src/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ set(C_SOURCES
199199
gufi_query.c
200200
gufi_stat.c
201201
parallel_rmr.c
202-
querydbn.c
202+
querydbs.c
203203
rollup.c
204204
unrollup.c
205205
)

src/querydbn.c src/querydbs.c

File renamed without changes.

test/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ foreach(TEST
9191
runlistschemadb
9292
runlisttablesdb
9393
runoldbigfiles
94-
runquerydbn
94+
runquerydbs
9595
runuidgidsummary
9696
runuidgidummary
9797
runuserfilespacehog

test/groupfilespacehogusesummary

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@
6565
SCRIPT="$BASH_SOURCE" # Must be at the top
6666
DIR=`dirname $SCRIPT`
6767
BFQ=$DIR/../bfq
68-
QUERYDBN=$DIR/../querydbn
68+
QUERYDBS=$DIR/../querydbs
6969

7070
echo "query to create db insert recs from entry query into out db group file space hog use group summary"
7171
rm -f outdb*
7272
$BFQ -E "insert into sumsum select gidtogroup(gid), totfiles, totsize from vsummarygroup;" -n $2 -O outdb -I "create table sumsum (groupname text, totfiles int64, totsize int64);" $1
73-
$QUERYDBN -NV outdb $2 "select groupname, sum(totfiles), sum(totsize) from vsumsum group by groupname;" sumsum
73+
$QUERYDBS -NV outdb $2 "select groupname, sum(totfiles), sum(totsize) from vsumsum group by groupname;" sumsum

test/gufitest.py

+30-30
Original file line numberDiff line numberDiff line change
@@ -608,8 +608,8 @@ def cflatloadbfwi():
608608
if (exit_code!=0):
609609
exit(exit_code)
610610
################################### test cflatloadbfwi end ############################################
611-
################################### test cbfqbftiquerydbn ############################################
612-
def cbfqbftiquerydbn():
611+
################################### test cbfqbftiquerydbs ############################################
612+
def cbfqbftiquerydbs():
613613
global dcnt
614614
global fcnt
615615
global fsz
@@ -637,10 +637,10 @@ def cbfqbftiquerydbn():
637637
############################
638638
# do some bfq tests now
639639
print "testing bfq tot dirs %d tot files %d tot bytes %d tot files with xattrs %d tot links %d" % (dcnt,fcnt,fsz,xcnt,lcnt)
640-
of="%s/cbfqbftiquerydbnout" % (top)
641-
of1="%s/cbfqbftiquerydbnout1" % (top)
642-
oft="%s/cbfqbftiquerydbnout.0" % (top)
643-
oft1="%s/cbfqbftiquerydbnout1.0" % (top)
640+
of="%s/cbfqbftiquerydbsout" % (top)
641+
of1="%s/cbfqbftiquerydbsout1" % (top)
642+
oft="%s/cbfqbftiquerydbsout.0" % (top)
643+
oft1="%s/cbfqbftiquerydbsout1.0" % (top)
644644
###### num file test #####
645645
print "+++++++++ test to see if gufi agrees totfiles=%d" % (fcnt)
646646
os.system('%s/%s/bfq -n1 -p -E "select name from entries where type=\'f\';" -o %s %s' % (tdir,gdir,of,'gt/d0'))
@@ -682,23 +682,23 @@ def cbfqbftiquerydbn():
682682
else:
683683
print "xattr count match xcnt %d numl %d" % (xcnt,numl)
684684
###### end num dir test #####
685-
###### sum of file sizes test uses querydbn #####/os
686-
print "+++++++++ test to see if bfq creating output db per thread and use querydbn to aggregate total size=%d" % (fsz)
685+
###### sum of file sizes test uses querydbs #####/os
686+
print "+++++++++ test to see if bfq creating output db per thread and use querydbs to aggregate total size=%d" % (fsz)
687687
os.system('%s/%s/bfq -n 2 -p -E "insert into sument select size from entries where type=\'f\'and size>0;" -I "create table sument (sz int64);" -O outdb %s' % (tdir,gdir,'gt/d0'))
688688
#os.system('%s/%s/bfq -n 1 -p -E "insert into sument select size from entries where type=\'f\'and size>0;" -I "create table sument (sz int64);" -O outdb %s' % (tdir,gdir,'gt/d0'))
689-
os.system('%s/%s/querydbn -V outdb 2 "select sum(sz) from vsument" sument > querydbnout' % (tdir,gdir))
690-
#os.system('%s/%s/querydbn -V outdb 1 "select sum(sz) from vsument" sument > querydbnout' % (tdir,gdir))
691-
os.system('cat querydbnout');
692-
proc=subprocess.Popen('head -1 querydbnout',stdout=subprocess.PIPE,shell=True)
689+
os.system('%s/%s/querydbs -V outdb 2 "select sum(sz) from vsument" sument > querydbsout' % (tdir,gdir))
690+
#os.system('%s/%s/querydbs -V outdb 1 "select sum(sz) from vsument" sument > querydbsout' % (tdir,gdir))
691+
os.system('cat querydbsout');
692+
proc=subprocess.Popen('head -1 querydbsout',stdout=subprocess.PIPE,shell=True)
693693
for line in proc.stdout:
694694
csz=line.split('|')[0]
695695
sz=string.atoi(csz)
696696
if (sz!=fsz):
697-
print "error: file size total from querydbn %d real file size total %d" % (sz,fsz)
697+
print "error: file size total from querydbs %d real file size total %d" % (sz,fsz)
698698
exit()
699699
else:
700-
print "good news: file size total from querydbn %d real file size total %d" % (sz,fsz)
701-
###### end sum of file sizes test uses querydbn #####
700+
print "good news: file size total from querydbs %d real file size total %d" % (sz,fsz)
701+
###### end sum of file sizes test uses querydbs #####
702702
###### tree directory use test #####
703703
####?????????????????????? need to fix bfq so that it doesnt print an error if a dir doesnt have a tree summary
704704
#### select name from sqlite_master where type='table' and name='treesummary'; should do the trick
@@ -713,7 +713,7 @@ def cbfqbftiquerydbn():
713713
else:
714714
print "good news: using tree summary examined %d directories and not using tree summary examined %d directories" % (numl,numl1)
715715
###### end tree directory use test #####
716-
################################## test cbfqbftiquerydbn end ############################################
716+
################################## test cbfqbftiquerydbs end ############################################
717717
################################### test cincr3modf ############################################
718718
def cbfwiinsrc():
719719
testn="correctness bfwi in src tree"
@@ -881,16 +881,16 @@ def fbfwreaddirplus2db():
881881
os.system('%s/runbfwreaddirplus2db %s > %s' % (tdir,'d0',testfull))
882882
outlines=flines(testfull,normlines,1,1)
883883
################################### func fquerydb end ############################################
884-
################################### func fquerydbn ############################################
885-
def fquerydbn():
886-
testf='fquerydbn'
884+
################################### func fquerydbs ############################################
885+
def fquerydbs():
886+
testf='fquerydbs'
887887
normlines=5
888888
testfull='%s/%s' % (funcout,testf)
889-
testn="functional querydbn"
889+
testn="functional querydbs"
890890
cleanstart(testn,1)
891-
os.system('%s/runquerydbn %s %s > %s' % (tdir,'gt/d0','2',testfull))
891+
os.system('%s/runquerydbs %s %s > %s' % (tdir,'gt/d0','2',testfull))
892892
outlines=flines(testfull,normlines,1,1)
893-
################################### func fquerydbn end ############################################
893+
################################### func fquerydbs end ############################################
894894
################################### func fgroupfilespacehog ############################################
895895
def fgroupfilespacehog():
896896
testf='fgroupfilespacehog'
@@ -1015,7 +1015,7 @@ def runallc():
10151015
cflatloaddfw()
10161016
cflatloadfinddfw()
10171017
cflatloadbfwi()
1018-
cbfqbftiquerydbn()
1018+
cbfqbftiquerydbs()
10191019
cbfwiinsrc()
10201020
cbfwrp2dbfullinsrc()
10211021
cbfwrdp2dbincrinsrc()
@@ -1028,7 +1028,7 @@ def runallf():
10281028
fdfw()
10291029
fquerydb()
10301030
fbfwreaddirplus2db()
1031-
fquerydbn()
1031+
fquerydbs()
10321032
fgroupfilespacehog()
10331033
fgroupfilespacehogusesummary()
10341034
fuserfilespacehog()
@@ -1053,7 +1053,7 @@ def usage():
10531053
print "cflatloaddfw - correctness flat load using bfwi -u from dfw"
10541054
print "cflatloadfinddfw - correctness flat load using bfwi -u from find dfw"
10551055
print "cflatloadbfwi - correctness flat load using bfwi -u from bfwi"
1056-
print "cbfqbftiquerydbn - correctness bfq and bfti and querydnb"
1056+
print "cbfqbftiquerydbs - correctness bfq and bfti and querydnb"
10571057
print "cbfwiinsrc - correctness bfwi putting index in src tree"
10581058
print "cbfwrp2dbfullinsrc - correctness bfwreaddirplus2db full gufi tree build in src tree"
10591059
print "cbfwrdp2dbincrinsrc - correctness bfwreaddirplus2db incr gufi tree update in src tree"
@@ -1063,7 +1063,7 @@ def usage():
10631063
print "fdfw - functional dfw"
10641064
print "fquerydb - functional querydb"
10651065
print "freaddirplus2db - functional readdirplus2db"
1066-
print "fquerydbn - functional querydbn"
1066+
print "fquerydbs - functional querydbs"
10671067
print "fgroupfilespacehog - functional groupfilespacehog"
10681068
print "fgroupfilespacehogusesummary - functional groupfilespacehogusesummary"
10691069
print "fuserfilespacehog - functional userfilespacehog"
@@ -1123,8 +1123,8 @@ def usage():
11231123
cflatloadbfwi()
11241124
print "+_+_+_+_+_+_+_+_+_ end test %s +_+_+_+_+_+_+_+_+" % (sys.argv[1])
11251125
exit(0)
1126-
elif (sys.argv[1] == 'cbfqbftiquerydbn'):
1127-
cbfqbftiquerydbn()
1126+
elif (sys.argv[1] == 'cbfqbftiquerydbs'):
1127+
cbfqbftiquerydbs()
11281128
print "+_+_+_+_+_+_+_+_+_ end test %s +_+_+_+_+_+_+_+_+" % (sys.argv[1])
11291129
exit(0)
11301130
elif (sys.argv[1] == 'cbfwiinsrc'):
@@ -1169,9 +1169,9 @@ def usage():
11691169
fbfwreaddirplus2db()
11701170
print "+_+_+_+_+_+_+_+_+_ end test %s +_+_+_+_+_+_+_+_+" % (sys.argv[1])
11711171
exit(0)
1172-
elif (sys.argv[1] == 'fquerydbn'):
1172+
elif (sys.argv[1] == 'fquerydbs'):
11731173
os.system('mkdir %s' % (funcout))
1174-
fquerydbn()
1174+
fquerydbs()
11751175
print "+_+_+_+_+_+_+_+_+_ end test %s +_+_+_+_+_+_+_+_+" % (sys.argv[1])
11761176
exit(0)
11771177
elif (sys.argv[1] == 'fgroupfilespacehog'):

test/regression/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ set(SH_AND_EXPECTED
7676
gufi_dir2trace
7777
gufi_trace2index
7878
gufi_query
79-
querydbn
79+
querydbs
8080
)
8181

8282
# .sh, .py, and .expected

test/regression/querydbn.expected test/regression/querydbs.expected

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
gufi_query -n 2 -O outdb -I "CREATE TABLE out(name TEXT, size INT64)" -E "INSERT INTO out SELECT path(summary.name) || '/' || pentries.name, pentries.size FROM summary, pentries WHERE (pentires.type=='f') AND (summary.inode == pentries.pinode)" .
33

44
# Query all per-thread result databse files at once
5-
querydbn -NV outdb "out" "SELECT name, size FROM vout ORDER BY size ASC, name ASC" outdb.*
5+
querydbs -NV outdb "out" "SELECT name, size FROM vout ORDER BY size ASC, name ASC" outdb.*
66
name|size|
77
empty_file|0|
88
.hidden|1|

test/regression/querydbn.sh test/regression/querydbs.sh

+6-6
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ ROOT="$(dirname ${ROOT})"
6969
ROOT="$(dirname ${ROOT})"
7070

7171
BFQ="${ROOT}/src/gufi_query"
72-
QUERYDBN="${ROOT}/src/querydbn"
72+
QUERYDBS="${ROOT}/src/querydbs"
7373
OUTDB="outdb"
7474
TABLE="out"
7575
THREADS="2"
@@ -88,10 +88,10 @@ trap cleanup EXIT
8888

8989
cleanup
9090

91-
OUTPUT="querydbn.out"
91+
OUTPUT="querydbs.out"
9292

9393
function replace() {
94-
echo "$@" | sed "s/${BFQ//\//\\/}/gufi_query/g; s/${QUERYDBN//\//\\/}/querydbn/g; s/${INDEXROOT//\//\\/}\\///g; s/${INDEXROOT//\//\\/}/./g; s/[[:space:]]*$//g"
94+
echo "$@" | sed "s/${BFQ//\//\\/}/gufi_query/g; s/${QUERYDBS//\//\\/}/querydbs/g; s/${INDEXROOT//\//\\/}\\///g; s/${INDEXROOT//\//\\/}/./g; s/[[:space:]]*$//g"
9595
}
9696

9797
(
@@ -101,12 +101,12 @@ output=$(${BFQ} -n ${THREADS} -O "${OUTDB}" -I "CREATE TABLE ${TABLE}(name TEXT,
101101
echo "${output}"
102102

103103
replace "# Query all per-thread result databse files at once"
104-
replace "${QUERYDBN} -NV outdb \"${TABLE}\" \"SELECT name, size FROM v${TABLE} ORDER BY size ASC, name ASC\" outdb.*"
105-
output=$(${QUERYDBN} -NV outdb "${TABLE}" "SELECT name, size FROM v${TABLE} ORDER BY size ASC, name ASC" outdb.*)
104+
replace "${QUERYDBS} -NV outdb \"${TABLE}\" \"SELECT name, size FROM v${TABLE} ORDER BY size ASC, name ASC\" outdb.*"
105+
output=$(${QUERYDBS} -NV outdb "${TABLE}" "SELECT name, size FROM v${TABLE} ORDER BY size ASC, name ASC" outdb.*)
106106
replace "${output}"
107107
echo
108108

109109
) | tee "${OUTPUT}"
110110

111-
diff ${ROOT}/test/regression/querydbn.expected "${OUTPUT}"
111+
diff -b ${ROOT}/test/regression/querydbs.expected "${OUTPUT}"
112112
rm "${OUTPUT}"

test/runbfwreaddirplus2db

+4-4
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
SCRIPT="$BASH_SOURCE" # Must be at the top
6666
DIR=`dirname $SCRIPT`
6767
BFWREADDIRPLUS2DB=$DIR/../src/bfwreaddirplus2db
68-
QUERYDBN=$DIR/../src/querydbn
68+
QUERYDBS=$DIR/../src/querydbs
6969

7070

7171
# NOTE: The destination GUFI-tree is optional
@@ -182,10 +182,10 @@ echo ""
182182
sqlite3 -line bfwreaddirplusdb.1 'select * from readdirplus;'
183183
echo ""
184184

185-
# run querydbn to union all the db's together into one table
186-
echo " run querydbn to union all the db's together into one table"
185+
# run querydbs to union all the db's together into one table
186+
echo " run querydbs to union all the db's together into one table"
187187
echo ""
188-
$QUERYDBN -N -V -p bfwreaddirplusdb 2 "select * from vreaddirplus" readdirplus
188+
$QUERYDBS -N -V -p bfwreaddirplusdb 2 "select * from vreaddirplus" readdirplus
189189

190190
# run to create output db
191191
echo

test/runbfwreaddirplus2db.orig

+4-4
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
SCRIPT="$BASH_SOURCE" # Must be at the top
6666
DIR=`dirname $SCRIPT`
6767
BFWREADDIRPLUS2DB=$DIR/../bfwreaddirplus2db
68-
QUERYDBN=$DIR/../querydbn
68+
QUERYDBS=$DIR/../querydbs
6969

7070

7171
# NOTE: The destination GUFI-tree is optional
@@ -183,10 +183,10 @@ echo ""
183183
sqlite3 -line bfwreaddirplusdb.1 'select * from readdirplus;'
184184
echo ""
185185

186-
# run querydbn to union all the db's together into one table
187-
echo " run querydbn to union all the db's together into one table"
186+
# run querydbs to union all the db's together into one table
187+
echo " run querydbs to union all the db's together into one table"
188188
echo ""
189-
$QUERYDBN -N -V -p bfwreaddirplusdb 2 "select * from vreaddirplus" readdirplus
189+
$QUERYDBS -N -V -p bfwreaddirplusdb 2 "select * from vreaddirplus" readdirplus
190190

191191
# run to create output db
192192
echo

test/runquerydbn test/runquerydbs

+4-4
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@
6767
SCRIPT="$BASH_SOURCE" # Must be at the top
6868
DIR=`dirname $SCRIPT`
6969
BFQ=$DIR/../src/gufi_query
70-
QUERYDBN=$DIR/../src/querydbn
70+
QUERYDBS=$DIR/../src/querydbs
7171

72-
echo "query to create db insert recs from entry query into out db big files and run querydbn"
72+
echo "query to create db insert recs from entry query into out db big files and run querydbs"
7373
rm -f outdb*
7474
# if you want to be fancy then use date functions to provide this in user readable date/time
75-
$BFQ -E "insert into sument select uidtouser(uid, 5), path(''), name, size, mtime from entries where type='f'and size>4;" -n $2 -O outdb -I "create table sument (username text, pathname text, name text, size int64, mtime int64);" $1
76-
$QUERYDBN -NV outdb sument "select username, pathname, name, size, mtime from vsument order by size;" outdb.*
75+
$BFQ -E "insert into sument select uidtouser(uid, 5), path(), name, size, mtime from entries where type='f'and size>4;" -n $2 -O outdb -I "create table sument (username text, pathname text, name text, size int64, mtime int64);" $1
76+
$QUERYDBS -NV outdb sument "select username, pathname, name, size, mtime from vsument order by size;" outdb.*

test/runtests

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ tar -xf ${TAR} -C ${TREE}
9393
${TESTS}/runbfwi ${TREE} ${INDEX}
9494
${TESTS}/runbfti ${INDEX}
9595
${TESTS}/runbfq ${INDEX}
96-
${TESTS}/runquerydbn ${INDEX} 2
96+
${TESTS}/runquerydbs ${INDEX} 2
9797
${TESTS}/runbfwreaddirplus2db ${INDEX}
9898
${TESTS}/rundfw ${INDEX}
9999

0 commit comments

Comments
 (0)