# A day at the bakery, one query per line.
# Run it from the repo root once you've finished the levels:
#     python3 -m cakedb.cli examples/demo_queries.txt

# Level 1: an order comes in, then changes its mind about the flavour.
SET order-1042 flavour lemon
SET order-1042 tiers 3
SET order-1042 flavour chocolate
GET order-1042 flavour
DELETE order-1042 tiers
DELETE order-1042 tiers

# Level 2: what's on the order?
SET order-1042 filling fudge
SET order-1042 topper fondant-rose
SCAN order-1042
SCAN_BY_PREFIX order-1042 f

# Level 3: a fresh order whose "status" only lasts while it proofs.
SET_AT order-2001 flavour carrot 100
SET_AT_WITH_TTL order-2001 status proofing 100 30
GET_AT order-2001 status 129
GET_AT order-2001 status 130
SCAN_AT order-2001 130

# Level 4: back up, change things, then roll back.
SET_AT_WITH_TTL order-2001 status baking 140 60
BACKUP 150
SET_AT order-2001 flavour beetroot 160
RESTORE 300 155
SCAN_AT order-2001 300
GET_AT order-2001 status 349
GET_AT order-2001 status 350
