ConditionsDbSchema

From Mu2eWiki
Revision as of 22:11, 24 October 2018 by Rlc (talk | contribs) (Created page with "==Introduction== A database '''schema''' is the design of the tables and functions, etc, and their interactions. Here we describe the conditions database in some detail. We...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Introduction

A database schema is the design of the tables and functions, etc, and their interactions. Here we describe the conditions database in some detail.

We are using postgres databases. In postgres, the word "schema" is also used to refer to a what is essentially a folder, or a way to group database tables and assign permssions as a group. We have several of this type of schema, one for each detector subsystem (trk,cal,crv) plus one for the interval of validity structure (val) and one for test tables (tst). A table can be referred to as schema.name, for example, we have an example table in the tst schema, tst.calib1.

Lower Level

Starting with tst.calib1, we have a conceptual content like:

Item Quantity Price
Bread 0.3 kg $0.65
Butter 0.125 kg $1.25
Total $1.90


Upper Level