Database creation

Post Reply
User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

Database creation

Post by Thunderstone »




I am preparing to run gw to create a secondary database for a specific purpose. In so doing, I would like to segregate the resultant database from the general database by physical location. My real question, knowing that what I want to achieve is possible already, is whether the resultant database would be named "db". In other words, if I want to create the database in the ../Rules directory, could the database be called Rules or is "db" going to be my target in the ../Rules directory?

Probably a simple answer, but I need to know without the trial and error. :-)

Thanks,

Dave LeBleu TNRCC, State of Texas



User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

Database creation

Post by Thunderstone »



The default search script expects all of the databases to reside in the
same subdirectory. That subdirectory is defined near the top of the
script in the init function. See the comments there. Each database
within that directory has a different name, the default being "db" if
none is specified on the search form. You may change the default
container subdirectory to anyplace you like. If you want to have your
databases scattered about under different subdirectories, you will have
to change how the search script finds it's database. Maybe something
like this (a non fully developed idea):

<switch $db>
<case "db"><$dbdir="/someplace/db">
<case "Rules"><$dbdir="/someotherplace/Rules">
<default>... do what the init function currently does ...
</switch>




Post Reply