jennifer v0.6.1 Release Notes
Release Date: 2018-09-07 // over 5 years ago-
๐ Changelog
General
- โ adds
Time::Span
to supported types
QueryBuilder
- ๐ allows listing any
SQLNode
instance in SELECT clause (like raw sql or functions) - removes redundant
SQLNode#sql_args_count
- โ adds
SQLNode#filterable?
function which presents if node has filterable sql parameter - ๐จ refactors
Condition#sql_arg
- โ adds
Function
base abstract class for defining custom sql functions - adds
lower
,upper
,current_timestamp
,current_date
,current_time
,now
,concat
,abs
,ceil
,floor
,round
- โ adds
Join#filterable?
andQuery#filterable?
- raise
AmbiguousSQL
when%
symbol is found in the raw SQL (except%s
)
Model
- replaces mapping option
numeric_converter
with newconverter
- โ adds
NumericToFloat64Converter
andJSONConverter
- now
#to_h
and#to_str_h
use field getter methods - โ remove
puts
fromJSONConverter#from_db
Adapter
- propagate native
DB::Error
instead of wrapping it intoBadQuery
- ๐ manually release a connection when an exception occurs under the transaction
Config
- set default
max_pool_size
to 1 and warn about danger of setting differentmax_pool_size
,max_idle_pool_size
andinitial_pool_size
Migration
- โ adds
Migration::TableBuilder::CreateForeignKey
&Migration::TableBuilder::DropForeignKey
- adds
Migration::Base#add_foreign_key
&Migration::Base#drop_foreign_key
- adds
Migration::TableBuilder::ChangeTable#add_foreign_key
&Migration::TableBuilder::ChangeTable#drop_foreign_key
Exceptions
- โ add
AmbiguousSQL
- is raised when forbidden%
symbol is used in the raw SQL
- โ adds