Commit graph

9 commits

Author SHA1 Message Date
Brian J. Cardiff
44559f6f95 move spec and src files to a shardy way 2016-02-25 22:37:10 -03:00
Brian J. Cardiff
6a5b2a8758 assert connection is closed after db is used.
tidy up close methods
2016-02-25 22:27:35 -03:00
Brian J. Cardiff
67fe5c9aae leave a single scalar value returns DB::Any 2016-02-25 22:25:55 -03:00
Brian J. Cardiff
d01da912f7 code review notes
close / do_close in result_set
avoid closing statements
remove named arguments
refactor positioned arguments query
2016-02-25 22:25:55 -03:00
Brian J. Cardiff
683e6bdfa7 major db refactor for a better api.
`#query`, `#exec`, `#scalar`, `#scalar?` as main query methods from `Database`
blocks overrides that ensure statements are closed.
2016-02-25 22:25:54 -03:00
Brian J. Cardiff
e50cc4ec73 add specs for statement arguments
add support for blobs (i.e. Slice(UInt8) )
2016-02-25 22:25:54 -03:00
Brian J. Cardiff
1572062501 introduce database as driver wrapper.
expose list of types to support by the drivers implementors.
deal with nilable types with `#read?(T.class) : T?` methods.
change `#has_next` to `#move_next`
2016-02-25 22:25:54 -03:00
Brian J. Cardiff
c16dc42e96 allow result_set#each 2016-02-25 22:25:54 -03:00
Brian J. Cardiff
4dd0312934 prepare/exec a statement
dummy driver that parses the query
initial type support for result_sets
2016-02-25 22:25:54 -03:00