slatekit / kiit

Kotlin Framework for Apps, APIs, CLIs, Jobs, Mobile and more...
https://www.kiit.dev
Apache License 2.0
112 stars 13 forks source link

DATA: Improved Service, Repo, Mapper, Query builder #306

Closed kishorereddy closed 3 years ago

kishorereddy commented 3 years ago

Overview

Misc improvements to the Repo pattern, Mapper, Query builder for custom finds, deletes

Ticket(s)

n/a

Links(s)

n/a

Dependencies

n/a

Design

  1. Service methods are now suspendable
  2. Service class support EntityServiceSync created for backward compatibility ( non suspendable version )
  3. Mapper moved to slatekit.data
  4. Mapper now has support for getting table column name from field name
  5. Mapper now has support for getting field type from field name
  6. Entity interfaces not used were removed
  7. Query component removed and replaced with Select, Update, Delete

Notes

  1. minor breaking change ( if using query builders for finds, deletes )

Pending

n/a

Tests

  1. A lot more tests added