-
Notifications
You must be signed in to change notification settings - Fork 46
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
Support a mysql backend #18
Labels
enhancement
New feature or request
Comments
pjenvey
added a commit
that referenced
this issue
Sep 11, 2018
w/ some initial calls and a test suite migrated from the sqlite version - prefers raw DQL (note: not DML) queries vs diesel's query builder for potential reuse for other backends (spanner) - TODO: further fleshing out of the types, likely wanting i64 or wrappers everywhere (as all spanner has is INT64) -- nor should the db layer be responsible for conversions from unsigned Issue #18
We're now dropping the raw strings requirement for the most part. Spanner in particular only supports DQL (SELECT statements) and some standard (mostly) DDL (CREATE/ALTER table). DML INSERT/UPDATE/DELETEs are not supported. Thus we'd only be able to share SELECT statements at best, and that's not necessarily guaranteed with spanner's many other differences. |
pjenvey
added a commit
that referenced
this issue
Sep 21, 2018
and a couple more db calls that utilize it Issue #18
pjenvey
added a commit
that referenced
this issue
Oct 2, 2018
prefer test fns returning Results (now that rust supports it) vs unwraps switch the CollectionCache to an Arc for convenience Issue #18
pjenvey
added a commit
that referenced
this issue
Oct 9, 2018
mysql stores a byte length prefix alongside its strings so PAYLOAD_SIZE shouldn't buy us anything Issue #18
pjenvey
added a commit
that referenced
this issue
Nov 10, 2018
Closed out in #51 |
pjenvey
added a commit
that referenced
this issue
Nov 20, 2018
also: - ensure db middleware rolls back errors that don't trigger the response method being called and rolling back for us - fix ttl handling (the come in as seconds not milliseconds) - add Debug to db traits Issue #18
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Create a Db trait that works w/ mysql. This will be used for users who want their own local syncstorage instances and either potentially to speak to Aurora OR as a local test suite database.
We'll use diesel to handle connection management and mapping sql results to rust structs.
Let's prefer raw sql query strings vs the diesel query builder for now. Our next db target might be Auorora but a database that could potentially reuse many of the mysql query strings but wouldn't be supported underneath diesel (it's still up in the air so let's prefer this route while we're figuring it out)
The text was updated successfully, but these errors were encountered: