Kitura / Swift-Kuery-ORM

An ORM for Swift, built on Codable
Apache License 2.0
212 stars 30 forks source link

feat: IdentifiedModel Protocol #59

Closed EnriqueL8 closed 5 years ago

EnriqueL8 commented 6 years ago

The IdentifiedModel Protocol enables the user to have the ID embedded within the Model. The ID will get populated with Auto Incrementing value in the database.

Do Not Merge - depends on: https://github.com/IBM-Swift/Swift-Kuery-PostgreSQL/pull/54 https://github.com/IBM-Swift/Swift-Kuery-SQLite/pull/15

codecov-io commented 6 years ago

Codecov Report

:exclamation: No coverage uploaded for pull request base (next@f80fa06). Click here to learn what that means. The diff coverage is 18.96%.

Impacted file tree graph

@@           Coverage Diff           @@
##             next      #59   +/-   ##
=======================================
  Coverage        ?   33.21%           
=======================================
  Files           ?        6           
  Lines           ?     1144           
  Branches        ?        0           
=======================================
  Hits            ?      380           
  Misses          ?      764           
  Partials        ?        0
Flag Coverage Δ
#SwiftKueryORM 33.21% <18.96%> (?)
Impacted Files Coverage Δ
Sources/SwiftKueryORM/IdentifiedModel.swift 0% <0%> (ø)
Sources/SwiftKueryORM/TableInfo.swift 65.07% <78.57%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update f80fa06...42da6de. Read the comment docs.

kilnerm commented 5 years ago

Optional ID fields were added under https://github.com/IBM-Swift/Swift-Kuery-ORM/pull/104.

A further identified model will be considered during the work on complex relations.