Demonstrations of MariaDB patterns.
Demonstrates discrete records (order_items
) while supporting inserting a record with a count (order_items_qty
.quantity
).
Combines BLACKHOLE
engine with a BEFORE INSERT
trigger to transparently insert order_items_qty
.quantity
number of records into order_items
.
Note that order_items_qty
should match the schema of order_items
with one new field, order_items_qty.quantity
.
git clone https://github.com/acrois/mariadb-examples
docker compose up -d
docker compose down --remove-orphans --rmi local -v