Release 0.9.0
Changelog
General
- add Crystal
0.34.0
support - add
Jennifer::Presentable
with abstract methods declarations (#attribute
,#errors
,#human_attribute_name
,#attribute_metadata
,#class_name
)
QueryBuilder
Query#initialize
now acceptAdapter::Base
as a second (optional) argumentOrderItem
is renamed toOrderExpression
to avoid possible name collisions
Model
- fix an issue with rendering
new_record
anddestroyed
system variables by#to_json
Resource.table_prefix
now returns underscored namespace name (if any) by defaultBase
includesJennifer::Presentable
- add
Translation#class_name
method to return underscored class name - add
Mapping#attribute_metadata
to return attribute metadata by it's name - remove
Base::primary_field_type
- Prevent compile time error with models named
Model
orRecord
View
- fix an issue with rendering
new_record
anddestroyed
system variables by#to_json
- remove
Base::primary_field_type
Adapter
- db connection is established on the first request no on adapter initialization
Adapter.adapter_class
raisesBaseException
if no validConfig.adapter
is specified.command_interface
,.create_database
,.drop_database
,.generate_schema
,.load_schema
,.db_connection
,.connection_string
,.database_exists?
now are instance methodsBase#initialize
now exceptsConfig
instance- respect host in
Jennifer::Postgres::CommandInterface#database_exists?
- escape connection URI segments
Config#logger
now isLog
instead ofLogger
- add read/write adapter segregation
- deprecate
.adapter
&.adapter_class
- remove
.query
,.exec
&.scalar
Config
.reset_config
invokes#initialize
instead of creating new instance
Migration
Base#schema_processor
is no more public apiRunner.create
andRunner.drop
now accept optionAdapter::Base
instance- pass
to_table
inTableBuilder::DropForeignKey#process
- fix
TableBuilder::CreateTable#reference
- now it takes into account given SQL type for the foreign key column - add
#add_reference
,#drop_reference
,#add_timestamps
toTableBuilder::CHangeTable
TableBuilder::CHangeTable#drop_index
also accepts single column name- remove deprecated
TableBuilder::CreateTable#index
overrides
Record
#initialize(DB::ResultSet)
is removed