New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve sqlitemodel helpers #380

Merged
merged 4 commits into from Feb 19, 2018

Conversation

Projects
None yet
1 participant
@tanner0101
Copy link
Member

tanner0101 commented Feb 16, 2018

Narrows the scope of SQLiteModel helper protocol to make it more useful.

Both struct and class models may now be defined much more concisely.

struct Foo: SQLiteModel {
    var id: Int?
    var name: String
}

final class Bar: SQLiteModel {
    var id: Int?
    var name: String
}

@tanner0101 tanner0101 added this to the 3.0.0 milestone Feb 16, 2018

@tanner0101 tanner0101 self-assigned this Feb 16, 2018

tanner0101 added some commits Feb 19, 2018

@tanner0101 tanner0101 modified the milestones: 3.0.0, 3.0.0-beta.3 Feb 19, 2018

@tanner0101 tanner0101 merged commit 085acf0 into beta Feb 19, 2018

1 check passed

ci/circleci: linux Your tests passed on CircleCI!
Details

@tanner0101 tanner0101 deleted the sqlite-model-helper branch Feb 19, 2018

@tanner0101 tanner0101 added this to Done in Vapor 3 Feb 19, 2018

twof added a commit to gwynne/VaporNation that referenced this pull request Feb 26, 2018

Tweaks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment