aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-12-12 13:30:36 +0000
committerMatthew Lemon <y@yulqen.org>2024-12-12 13:30:36 +0000
commitc75080fd3a563891256751effe552e7721cb906e (patch)
treebbf3ee14d69a302bdb4626c5b3204ca349e3eb83
parent209d2f0b87eccc32a83c5ef409e9444346c4b8ab (diff)
Tweaks a select func
-rwxr-xr-xtjp.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/tjp.sh b/tjp.sh
index 88b0595..8b6eaa7 100755
--- a/tjp.sh
+++ b/tjp.sh
@@ -39,10 +39,14 @@ list_personal_entries() {
}
# Function to select all MOD entries
+# list_MOD_entries() {
+# psql -h "$HOST" -U "$USER" -d "$DB" -c "\x" -c "SELECT * FROM journal_entries WHERE type = 1;"
+# }
list_MOD_entries() {
- psql -h "$HOST" -U "$USER" -d "$DB" -c "\x" -c "SELECT * FROM journal_entries WHERE type = 1;"
+ psql -h "$HOST" -U "$USER" -d "$DB" -c "\x" -c "SELECT id, date_added, entry, comment, meeting_id FROM journal_entries WHERE type = 1;"
}
+
# Function to list all MOD contacts
list_MOD_contacts() {
psql -h "$HOST" -U "$USER" -d "$DB_CONTACTS" -c "SELECT id, first_name, last_name, email, phone, contact_comments FROM contacts WHERE contact_type = 3;"