Logo da Alura
Data >

Course of Datomic: Schemas and Rules

Course summary

  • Use Upserts with partial data
  • Define Rule Sets and use Rule Composition
  • Learn quering with Find Specs
  • Learn about Schema Definition and how to validate them

Target Audience

Who already knows Datomic and would like to advance its use.

Related Content

Courses of Data

Already a student?

Start the course now

12h

To conclusion

38

Activities

241

Minutes of video

62

Students in this course

8.3

Grade for this course

Certificate of participation

Instructors

Detailed content

  1. Schemas and schemas

    • Recovering Previous Module's Files
    • A naive Sample Data Generator
    • Our First Schema Definition
    • Validating our Schema #1
    • Validating our Schema #2
    • Find specs and Schemas
    • DB Id Removal with Prewalk
  2. Problems with Upserts

    • Upserts and code hygiene
    • Upserts, Schemas and Concurrency
    • Upserts with partial data
    • With great powers come great responsibilities
  3. Maybe and optional keys

    • Tweaking the product-by-id function
    • Validating Empty Results
  4. Find specs

    • Tracking Items in Stock
    • The problem of relying on multiple argument arrity
    • Listing Products in Stock
    • Query for a Single Item in Stock
  5. Rules

    • Defining Rule Sets
    • Multiple Cases for the same Rule
    • Rule Composition

Don't study with us yet?

Invest in your career!

Start now