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

use string for mysql bigint #16

Merged
merged 1 commit into from
Mar 3, 2024
Merged

Conversation

yshrsmz
Copy link
Contributor

@yshrsmz yshrsmz commented Feb 26, 2024

resolve #15

package-lock.json Outdated Show resolved Hide resolved
@yshrsmz yshrsmz force-pushed the string-bignumbers branch from 2786a55 to d7474a6 Compare March 3, 2024 06:59
Copy link
Contributor Author

@yshrsmz yshrsmz left a comment

Choose a reason for hiding this comment

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

@kyleconroy I've updated the code to class-style driver. please take a look 🙏

@@ -146,17 +147,15 @@ ${query.text}`
)
);

const ctype = driver.columnType;
Copy link
Contributor Author

@yshrsmz yshrsmz Mar 3, 2024

Choose a reason for hiding this comment

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

we could do

const ctype = driver.columnType.bind(driver)

instead to preserve this in columnType(), but passing the driver directly is easier to understand.

@kyleconroy kyleconroy merged commit 1a42ab0 into sqlc-dev:main Mar 3, 2024
7 checks passed
@yshrsmz yshrsmz deleted the string-bignumbers branch March 4, 2024 05:54
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.

Support mapping BIGINT to string in MySQL
2 participants