Add pubkey deletion parser

main
SleepingCrows 2024-09-17 01:26:23 -04:00
parent 6a5ea5a329
commit 2fba530042
1 changed files with 3 additions and 0 deletions

3
Ditto/massdelete.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
#generate a list of delete statements, based on pubkeys. raw text, one pubkey per line from source file.
while read -r line; do printf "delete FROM public.nostr_events WHERE pubkey='$line';\n" >> banlist.sql ; done < "$1"