-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Swift 2 #154
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
Swift 2 #154
Conversation
499826c to
f5f8d13
Compare
8e21274 to
894cc84
Compare
|
Good job! 👍 |
|
Any news about when |
|
I have tried to include this WIP into a simple Project that onle wirtes a console line on a click. I cannot compile the project as it shows errors imidiately. Should this work be know or should I keep my hands of the WIP and wait for a master version. I wanted to prepare myself for swift 2.0 |
|
@Silve2611 It should work, for the most part, but errors aren't surfaced in the most helpful way yet. Can you paste the code/errors failing in question? |
|
Since i have made the update everything is working fine. Thank you for the great work! |
|
May be a good idea to tag a release for the current Swift 1.2 version. That way when the Swift 2.0 version comes out you can do a major version bump and those who haven't made the transition can select the Swift 1.2 version until they've updated their code. |
b311414 to
9868767
Compare
2a8c985 to
fb7128e
Compare
fb7128e to
62fbf7c
Compare
Swift 2 is an opportunity to revamp the SQLite.swift API alongside the changes the latest version brings to the table. This mostly includes error handling and protocol extensions (most helpful for the expression layer), but also lets us rethink the general project structure. Signed-off-by: Stephen Celis <stephen@stephencelis.com>
…6 language changes Converted to Swift 2.0 for XCode 7.0 Beta 6. Compiles but does not pass tests.
Signed-off-by: Stephen Celis <stephen@stephencelis.com>
We should use guard-let wherever we have an early exit and can manage. Let the compiler enforce our requirements. Signed-off-by: Stephen Celis <stephen@stephencelis.com>
252b1ab to
723e19b
Compare
Let's update the deploy targets and ensure that newer symbols aren't referenced. Signed-off-by: Stephen Celis <stephen@stephencelis.com>
|
Hi I migrated to your swift 2.0 branch. How I have to migrate following coe to your optimised API? magazines.filter(contains(favoritMagazines, DbMagazine.COLUMN_ID)) ? thx |
|
@cwack-letsdev Protocol extensions have made the following possible (and preferable): magazines.filter(favoriteMagazines.contains(DbMagazine.COLUMN_ID)) |
We need a new screen shot, and with it we can bring a simpler set of instructions to the table. Signed-off-by: Stephen Celis <stephen@stephencelis.com>
Signed-off-by: Stephen Celis <stephen@stephencelis.com>
|
Merging! A few things to do but things should be relatively stable. |

This is a work in progress with much to do. It's an ambitious update that adds support for Swift 2 features along with some project file restructuring needed to support Carthage, and API restructuring needed to decouple database connections from the query builder and support database names.
It will address #133, #30, #77.
Old code has momentarily been deleted and functionality with it. This PR will not work with your existing code at the moment. See Tests and read the Source for new behavior.
Must-haves:
asc,desc,aliasNice-to-haves:
func forEach(Element -> Void) throwsfor lazy iteration