Skip to content
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

Issue #25 Abstract mysql types. #33

Closed
wants to merge 14 commits into from
Closed

Conversation

kilnerm
Copy link
Contributor

@kilnerm kilnerm commented Aug 29, 2018

This PR adds a c wrapper which provides type consistency irrespective of the level of mysql plugin.

@kilnerm kilnerm self-assigned this Aug 29, 2018
@kilnerm kilnerm requested a review from djones6 August 29, 2018 14:44
@kilnerm kilnerm closed this Aug 29, 2018
@kilnerm kilnerm reopened this Aug 30, 2018
@@ -0,0 +1 @@
swift build -Xlinker -L/usr/local/lib -Xlinker -lmysqlclient -Xcc -I/usr/include/**
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this file and .swift-test-linux not the same? They have a different include path (/usr/include/** vs /usr/local/include/)

These files are a Package-Builder thing, not an SPM thing, right? Is there an SPM mechanism that relieves normal users from having to include the options?

osx_image: xcode9.4
sudo: required
env:
- SWIFT_SNAPSHOT=swift-4.2-DEVELOPMENT-SNAPSHOT-2018-06-04-a MYSQL_VER=5
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that Travis has an xcode10 image I think we can move up to a newer 4.2 snapshot

int wrapper_mysql_library_init(int argc, char **argv, char **groups)
{
return mysql_library_init(0, NULL, NULL);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to wrapper every mysql function? Can we not just wrapper the few where a conversion needs to happen?

@kilnerm
Copy link
Contributor Author

kilnerm commented Oct 8, 2018

This has been superseded by pull request 36

@kilnerm kilnerm closed this Oct 8, 2018
@kilnerm kilnerm deleted the issue_agnostic_version branch November 8, 2018 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants