Skip to content

acrois/mariadb-patterns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

MariaDB Examples

Demonstrations of MariaDB patterns.

Orders

Discrete Invoice Items with Quantity

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.

Development

Clone

git clone https://github.com/acrois/mariadb-examples

Start

docker compose up -d

Cleanup

docker compose down --remove-orphans --rmi local -v

About

MariaDB example SQL patterns

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published