SwatDB
Loading...
Searching...
No Matches
testingconfig.h
1// TODO: change this to be an autogenerated .h file from a system-wide
2// config that also sets variables in Makefiles
3//
4
5
6#ifndef _SWATDB_TESTINGCONFIG_H_
7#define _SWATDB_TESTINGCONFIG_H_
8
9
10/*
11 * installation-specific definitions for creating and finding
12 * DB file
13 * path to swatdb directory containing saved DB relation and index files:
14 * used by swatdb/create_relation and by relops test code
15 * (static is a bit of a kludge to avoid name conflicts...since this is
16 * const string, sharing a single global is not an issue here)
17 */
18
19/*
20 * database files and indicies for testing code are stored here
21 * default location for DB files built by createrelation.cpp
22 *
23 * right now relopsmgr also puts result files here
24 * TODO: change where result files go for student testsing
25 */
26//static std::string testdb_path = "/home/skeim1/scratch/swatdb/";
27static std::string testdb_path = "/scratch/newhall/swatdb/";
28
29/*
30 * this is the location of the names file that is used by createrelation.cpp
31 * (default is in SwatDB code base in same location as createrelation.cpp)
32 * For students to create relations, they need to run createrelation.cpp
33 * with a different testdb_path for destination files and a differen
34 * namefile_path from the SwatDB installation
35 */
36static std::string namefile_path = "names.txt";
37
38/*
39 * test DB .db file for code testing (used by relops)
40 *
41 * metadata file is stored here, associated with DB files in testdb_path
42 *
43 */
44//static std::string testdb_file_path = "/home/skeim1/SwatDB/swatdb/tables.db";
45static std::string testdb_file_path = "/home/newhall/private/Classes/cs44/CS44Repos/SwatDB/swatdb/tables.db";
46//static std::string testdb_file_path = "/scratch/newhall/swatdb/tables.db";
47static std::string smalldb_file_path = "/home/newhall/private/Classes/cs44/CS44Repos/SwatDB/swatdb/small.db";
48//static std::string testdb_file_path = "/scratch/newhall/swatdb/tables.db";
49
50/*
51 * DB .db file updated and used by the swatdb cli (command line interface)
52 *
53 * path to relops mgr is in the local repo
54 *
55 * where cli (command line interface) creates its copy of tables.db
56 */
57//static std::string cli_db_file_path = "/home/skeim1/SwatDB/relops/relopsmgr/";
58static std::string cli_db_file_path = "/home/newhall/private/Classes/cs44/CS44Repos/SwatDB/relops/relopsmgr/tables.db";
59
60 /*
61 * Top Level Directory for everything in the git repository
62 *
63 * path to the local repo
64 */
65//static std::string top_dir = "/home/skeim1/SwatDB/";
66static std::string top_dir = "/home/newhall/private/Classes/cs44/SwatDB/";
67
68
69#endif