Tasks: connect a source
Who does this: a data steward, with the quality-steward policyPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer.. Anyone
with quality-analyst or auditor sees the sourcesSource A database the organisation already runs. Quality Data reads it and never writes to it. and their tables but
cannot change them. The first time through is in
Getting started: data steward; this
page is the fuller account.
Which databases can be connected
Section titled “Which databases can be connected”Today a sourceSource A database the organisation already runs. Quality Data reads it and never writes to it. can be a PostgreSQL, MySQL or SQLStructured Query Language The standard language for querying databases; the platform turns each rule into SQL for the engine that runs it. Server database. Quality Data reads tables; spreadsheets and files cannot be a source yet.
The Engine list in the form also shows oracle and openedge. They are
not ready yet: a source of either kind cannot be read today.
What to ask your database administrator
Section titled “What to ask your database administrator”- The server’s name or address, and its port if it is not the usual one (5432 for PostgreSQL, 3306 for MySQL, 1433 for SQLStructured Query Language The standard language for querying databases; the platform turns each rule into SQL for the engine that runs it. Server).
- The database name.
- A user and password that can read the tables you want to measure. Ask for a read-only user: Quality Data never writes, but a user that cannot write makes that certain.
- That the database accepts connections from the servers Quality Data runs on, including its workersWorker A program that runs on its own beside the application and does the heavy work: listing a source's tables, mapping a table, copying a cut and evaluating it. Mapping and cuts need at least one., which are the ones that connect.
- For SQLStructured Query Language The standard language for querying databases; the platform turns each rule into SQL for the engine that runs it. Server, any extra connection settings the server needs, such as how to encrypt the connection; they go in Options.
Each cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. reads the whole table it measures, so a large table means a heavier read: agree with the administrator on a quiet hour for scheduled cuts.
What Quality Data does with a source
Section titled “What Quality Data does with a source”It reads, and only when asked:
- the list of schemas, tables and columns, with their types, when the source is saved and each time someone lists it again;
- a sample of a table when it is mapped, of which it keeps counts, never values;
- the whole table at each cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment., copied into its own store, the lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources.;
- a page of records when someone opens a table’s Records.
It never writes, changes or deletes anything in the source. Removing a source or a datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. in Quality Data leaves the database as it was.
How credentials are kept
Section titled “How credentials are kept”The user and password are stored sealed (encrypted) in Quality Data’s own database. Nobody sees them again, not even an administrator: editing the sourceSource A database the organisation already runs. Quality Data reads it and never writes to it. shows them empty. They never appear in logs or notices. A workerWorker A program that runs on its own beside the application and does the heavy work: listing a source's tables, mapping a table, copying a cut and evaluating it. Mapping and cuts need at least one. receives them only for the job that needs them.
When you change the password, the previous one is kept as well: if the source still refuses the new one, a cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. tries the previous one. This lets your database administrator change the password without stopping the cuts for a moment. Every change of credentials is recorded in the audit trailAudit trail The record of who did what and when: changes, runs, and every view of a source's values. Read with the auditor policy., never their value.
To add a source
Section titled “To add a source”- In the Explorer, in the side bar, choose + beside Sources (New source).
- Type a Name: lowercase letters, digits and
_, starting with a letter, such ascustomers_db. It cannot be changed later. - In Engine, pick the entry that starts with
postgres,mysqlorsqlserver. - Fill in Server, Database, User and Password, and
Port if it is not the usual one. Fields marked
*are required; the form lists those still missing. - Choose Save.
You should see the source in the Explorer, under Sources. Open it: Quality Data connects at once and lists its tables. The source shows its database, then its schemas and tables, and a line that says how many tables it read and when.
To check the connection
Section titled “To check the connection”There is no separate test button: listing the tables is the test. Open the sourceSource A database the organisation already runs. Quality Data reads it and never writes to it. in the Explorer and choose List again. The line under the source goes through Connecting to the source…, Reviewing its schemas…, Reading the columns… and Loading the tables…, then says how many tables it read and when.
If the listing cannot connect, it tries again by itself, three times in all, and says so (Retrying, attempt 2 of 3…). After the last attempt it shows the reason: see Problems.
Open a table to see its columns and their types. A table no datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. reads yet is marked not read, and one that has disappeared from the source, gone. To find a table among many, type part of its name in Filter by schema, table or column.
To look at a table’s records
Section titled “To look at a table’s records”Choose Records beside a table. Pick what to Read (the first or last 1,000, or all of them 1,000 at a time) and, if you want, a column to Order by, then Read. The records come straight from the sourceSource A database the organisation already runs. Quality Data reads it and never writes to it., as they are now, every value masked. With permission to see personal dataPersonal data Values from a source about a person. They are shown whole only to policies that allow View personal data, such as quality-analyst; anyone else sees them masked, and every whole view is recorded in the audit trail., Show values shows them whole with a purpose and, if you want, a reference, and each page shown is recorded in the audit trailAudit trail The record of who did what and when: changes, runs, and every view of a source's values. Read with the auditor policy. (To show values whole).
To edit a source
Section titled “To edit a source”- Open the source in the Explorer and choose Edit.
- Change what you need. The user and password show empty with Stored: leave it empty to keep it.: leave them empty to keep them, or type new ones.
- Choose Save.
Quality Data lists the tables again with the new settings. The next cutsCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. of every datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. that reads the source use them.
To remove a source
Section titled “To remove a source”- Open the source in the Explorer and choose Delete.
- In Delete the source …, read the warning and choose Delete.
The source and its credentials, the previous version too, are gone. A source cannot be removed while a datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. reads it: remove those datasets first, as Map a table into a dataset explains, or keep the source.
Problems
Section titled “Problems”| What you see | What it means and what to do |
|---|---|
| No + beside Sources, and no Edit or Delete | Your policiesPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. do not let you manage sources. Ask your administrator for quality-steward. |
| The source did not accept the connection: check its server, port and credentials. | The server could not be reached, or refused the user. Check the fields with Edit. If they are right, ask the database administrator whether the workersWorker A program that runs on its own beside the application and does the heavy work: listing a source's tables, mapping a table, copying a cut and evaluating it. Mapping and cuts need at least one. can reach the server and the user can sign in. |
| The tables could not be read. Check the source’s connection, and refresh. | The listing gave up after three attempts. Fix what the message before it says, then List again. |
| The source’s catalog could not be read. or The listing could not finish. | The list of tables could not be read. Check with the database administrator that the user can see the schemas, then List again. If it persists, tell whoever supports your installation. |
| Its tables have not been read yet. | Nobody has listed the source. Choose List again. |
| Only the first ones are shown: search for the one you need. | The source has more tables than the Explorer shows. Type part of the name in the filter. |
| The name is not valid., The port is not valid., … is missing. | The form refused a field. Fix it and save again. |
| A SQLStructured Query Language The standard language for querying databases; the platform turns each rule into SQL for the engine that runs it. Server source was saved, but a message says its catalog was not created | Quality Data could not prepare the connection to it. Choose Save again to retry. |
| It cannot be deleted: these datasets read it: … | Remove the datasetsDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. named, or keep the source. |
| On deleting, a message says the source’s catalog was not dropped | Nothing was deleted. Try again. |
| Could not load. Try again., and the Explorer stays empty | The installation cannot measure data yet. Tell your administrator. |
Where next
Section titled “Where next”Government Data · Guide v0.8.1