-
Notifications
You must be signed in to change notification settings - Fork 7
Development
Dmitry Romanov edited this page Apr 21, 2018
·
5 revisions
-
Create MySQL database for the test purposes
mysql -u root -p
CREATE SCHEMA test_rcdb; CREATE USER test_rcdb; GRANT ALL PRIVILEGES ON test_rcdb.* TO 'test_rcdb'@'localhost';
-
Set RCDB_MYSQL_TEST_CONNECTION environment variable
export RCDB_MYSQL_TEST_CONNECTION="mysql://test_rcdb@localhost/test_rcdb"
-
run create_test_database.py
python $RCDB_HOME/python/tests/create_test_database.py $RCDB_MYSQL_TEST_CONNECTION
-
Run
test_all_rcdb
The database schema is pretty simple. One could divide tables in four conceptual groups:
-
runs
table. That is where a run numbers are stored. - File storage. Each file has many to many relationship with run numbers.
- Conditions. Name-value pairs are stored there
- Meta. Logs and SQL DB schema version
Getting started & basic usage:
- Installation
- Select values tutorial (python)
- Query syntax
- Add data (python)
- CLI Basics
RCDB Explained:
- Connection
- DB and APIs structure
- SQL examples
- Creating condition types
- Adding condition values
- Saving files
- SQLAlchemy
- Logging
- Performance
Command line tools:
DAQ: