2023-03-19 16:00:37 -04:00
|
|
|
#!/bin/bash
|
2023-06-17 07:24:35 -04:00
|
|
|
#
|
|
|
|
# This script has been created as part of the Blueprint source code
|
|
|
|
# and may be intergrated directly into the core in the future.
|
2023-03-19 16:00:37 -04:00
|
|
|
|
2023-11-24 14:02:33 -05:00
|
|
|
FLDR=".blueprint/extensions/blueprint/private/db/database"
|
2023-11-20 17:47:10 -05:00
|
|
|
|
|
|
|
# dbAdd "database.record"
|
2023-11-23 08:19:50 -05:00
|
|
|
dbAdd() { echo "* ${1};" >> $FLDR; }
|
2023-11-20 17:47:10 -05:00
|
|
|
|
|
|
|
# dbValidate "database.record"
|
2023-11-23 08:19:50 -05:00
|
|
|
dbValidate() { grep -Fxq "* ${1};" $FLDR > /dev/null; }
|
2023-11-20 17:47:10 -05:00
|
|
|
|
|
|
|
# dbRemove "database.record"
|
2023-11-24 14:02:33 -05:00
|
|
|
dbRemove() { sed -i "s/* ${1};//g" $FLDR > /dev/null; }
|