Skip to content

Conversation

skuenzli
Copy link
Contributor

@skuenzli skuenzli commented Mar 2, 2025

No description provided.

* adjust epoch time in millis expression to be compatible with a default value for a MySQL BIGINT column
* DRY-out expression def
Update system schema to work with MySQL.

Create system schema during load of SystemDatabase because I could not determine the 'right' place to do it.

Port upsert-style statements to MySQL compatible versions. In particular:
* switch to MySQL on_duplicate_key_update from on_conflict_do_update
* replace use of .returning with a separate select because MySQL does not support RETURNING. Still.
…ySQL does not distinguish between schemas and databases.
Was querying the whole table and returning the firs trow
https://dev.mysql.com/doc/refman/8.4/en/insert-on-duplicate.html

> With ON DUPLICATE KEY UPDATE, the affected-rows value per row is 1 if the row is inserted as a new row, 2 if an existing row is updated, and 0 if an existing row is set to its current values.
@skuenzli skuenzli changed the title Hack in support for MySQL 8 Add support for MySQL 8 Mar 6, 2025
skuenzli added 12 commits March 10, 2025 14:43
…, and exceptions works on MySQL.

MySQL TEXT column supports a maximum length of 65,535 (216 − 1) characters. Less with multibyte characters.
https://dev.mysql.com/doc/refman/8.4/en/string-type-syntax.html
* Convert SystemSchema to an interface, of sorts
* Create function that defines the MySQL system schema and configures the SystemSchema object members appropriately
* Convert ApplicationSchema to an interface, of sorts
* Create function that defines the MySQL application schema and configures the ApplicationSchema object members appropriately
…r-mysql

Externalize db schema name for mysql
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.

1 participant