Data Dictionary
You can use regular expressions or fragments of field names separated by spaces.
See examples
category title
finds records with fields like “category” and like “title”cust zip phone
finds records where there is customer information, zip code and phone numbers\bname\b phone
find exactly the field “name” ( boundary) and a field containing “phone”amount|rate
amount or rate (pipe = or)city(_id)?
find “city” maybe followed by “_id” (? = maybe)- see here for more on regular experssions
The Salika Database is a relational database sample (.db
) developed by MySQL
More info
This entry mimics a data dictionary tool I previously created with shiny
. A data dictionary displays metadata about the relationships between tables and columns within a database. While it isn’t hard to find which tables have which columns, it is a lot harder to identify tables that have columns x, y and z. An extra challenge is that columns might not have the same naming conventions across tables. This data dictionary evaluates word fragments and regular expressions to filter rows. At the same time, there is a custom rendering function to bold the matching text.
I wanted to write something that was generalizable to another person’s metadata and I wanted it to be under 100 lines of code. After seeing all the cool features in reactable
, I decided to try it out with quarto and a tiny bit of JS.
Jake Riley 11/29/2022