Week 21
News
Hello friends, Vapor 3.0.5 has been tagged. Quite a few improvements and new features. Fluent just keeps getting better and better.
New Features
Add DatabaseQueryable protocol
Adds a new protocol DatabaseQueryable
which represents an object capable of executing a generic query.
Add AlterTable
to PostgreSQLQuery
Adds support for ALTER TABLE
query to PostgreSQLQuery
.
Serialize migrations + convenience methods
- SchemaSupporting CRUD methods now use conn.fluentOperation to ensure they run serialized.
- MigrationConfig now exposes methods for running the migrations.
Add CREATE and DROP INDEX queries
Adds SQLCreateIndex
and SQLDropIndex
protocols (and subprotocols). Related to vapor/sql#16 and vapor/fluent#515
Deletes MigrationLog migration when reverting all
- Running revert all migrations now deletes the fluent (MigrationLog) entity as well.
- Builder.filter(custom:) is the new name for the generic filter accepting overload to prevent ambiguity
- Fixes vapor/fluent-mysql#107
- Fixes vapor/fluent-mysql#120
Allow positioning of columns during ALTER TABLE
Allows ALTER TABLE `listings` ADD `client_id` INT NULL DEFAULT NULL AFTER `object_no`;
. Implements vapor/fluent-mysql#41
Data Type improvements
Adds conveniences for creating instances of MySQLDataType. Fixes some serialization bugs.
Fixes vapor/mysql#185 and vapor/mysql#186
SQL protocols 2.0
Add groupBy
support
NIO
Current version 1.8.0
Community Contributions
Ability to set custom createdAt/updatedAt on create
Set createdAt
/ updatedAt
fields with custom values when seeding a DB.
Added PostgreSQLStringModel
Conform Decimal to ReflectionDecodable
Tagged releases
Current Version 3.0.5
- DatabaseKit 1.2.0
- SQLite 3.0.0 RC 4.1
- MySQL 3.0.0 RC 4.3
- PostgreSQL 1.0.0 RC 4.2
- Fluent 3.0.0 RC 4
- Fluent SQLite 3.0.0 RC 4
- Fluent MySQL 3.0.0 RC 4
- Fluent PostgreSQL 1.0.0 RC 4
- Core 3.4.1
- SQL 2.0.0 Beta 3
Articles
Deploying a Vapor App to Heroku
Brought to you by @anapaix
Deploying a Vapor App to Heroku
Awesome Vapor: Enhanced
Brought to you by @Cellane
Want to know more or get inspired?
- Check out what we are working on now. You might see something you can collaborate with Issues
- Check out more Vapor awesomeness Awesome Vapor
- Some more Vapor learning material Vapor School
- Great resources from our community Vapor Forum
- Vapor’s Core team had published an early access book on Vapor through RW here
- Paul Hudson had also updated his Server Side Swift with Vapor book here
- Also the RW’s Vapor Video Course Server Side Swift with Vapor - Video Course
- Vapor Forum Vapor Forum
- Vapor Forum @swift.org Vapor@swift.org
- Mohammad Azam’s course on Udemy “Mastering Server Side Swift Using Vapor 3”
- Mihaela Mihaljevic’s Vapor 3 Tutorials
- Martin Lasek’s Vapor Short Tutorials
Take action
There are many ways you can contribute with Vapor
- Star the project in GitHub
- Follow us on Twitter
- Follow us on Medium
- Become a backer
- Become a sponsor
- Come and talk to us