Brian J. Cardiff
8c0313a306
add Connection#last_inserted_id
...
extract QueryMethods modules and use it in Database and Connection
"add" finalize methods, but they cause GC warnings
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
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
Brian J. Cardiff
cc1545a58e
db driver registration
2016-02-25 22:25:54 -03:00