SQLite query inside a Bash function
SQLite query inside a Bash function
Part of the workflow for building my website is the generation of a table in tab-separated column format (.tsv). The source data is found in four other .tsv files. I use an SQLite query to perform a 4-way join and write out the new table. For convenience, I wrote a script that encapsulates the query inside a Bash function. The example below illustrates this technique. repertoire() { pushd $CMM_SOURCES/_data sqlite3 <<EOS .headers on .mode tabs .import category.tsv category .import composition.tsv composition .import concert.tsv concert .import program.tsv program .once repertoire.tsv SELECT category.name AS category, composition.key, composition.composer, composition.name AS composition, concert.name AS concert FROM category, concert, composition, program WHERE julianday(concert.date) < julianday('now') AND composition.category = category.name AND program.key = composition.key AND program.date = concert.date ORDER BY category.sequence, composition.key ; EOS popd }
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Correct prediction on native model
Similar products
TensorFlowithInception as an OpenFaaS function
TensorFlow ImageNet/Inception as an OpenFaaS function
Added Supporting Function by Patreon to Pixela
Weighted Scoring Function for CodersBracket
Monglorious – Query MongoDB with Strings
Query the national alcoholic beverage retailing monopoly of Finland
MySQL / MariaDB Query Caching and Acceleration for cPanel
SQLite-S3-query – Python function to query a SQLite database on S3
Relaunch of function-plot – a powerful function plotter
Immediately-invoked generator function expression (IIGFE)