TomMalkin / SimQLe

The simplest way to use SQL in Python
MIT License
30 stars 5 forks source link

Add initial classes RecordSet, RecordScalar and Record #58

Closed TomMalkin closed 5 years ago

TomMalkin commented 5 years ago

Adding the classes RecordSet, RecordScalar and Record as the return types for ConnectionManager.record[set/scalar/].

Each assumes a different result type, and modifies data to match that type. For example, RecordScalar assumes only a datum is being received, and Record assumes just one record. Convenience functions around all 3 have been added.

The tests haven't been updated.

codecov-io commented 5 years ago

Codecov Report

Merging #58 into dev will not change coverage. The diff coverage is 100%.

Impacted file tree graph

@@         Coverage Diff         @@
##            dev    #58   +/-   ##
===================================
  Coverage   100%   100%           
===================================
  Files         5      8    +3     
  Lines       172    247   +75     
===================================
+ Hits        172    247   +75
Impacted Files Coverage Δ
simqle/recordset/__init__.py 100% <100%> (ø)
simqle/recordset/recordset.py 100% <100%> (ø)
simqle/__init__.py 100% <100%> (ø) :arrow_up:
simqle/recordset/exceptions.py 100% <100%> (ø)
simqle/connection_manager.py 100% <100%> (ø) :arrow_up:

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 b05b610...ab3029d. Read the comment docs.