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

refactor(data-types): convert mariadb data-types to TS #14240

Closed
wants to merge 1 commit into from

Conversation

wbourne0
Copy link
Member

Note: This is a child PR of #13799 - it should only be merged into that branch when both this pr and that pr have been approved.

(note: omitted the PR checklist as it isn't really relevant here)

Description Of Change

converts mariadb-specific data-types to TS.

Also refactors the data-types to work with the (proposed) format from the master pr, #13799.

@wbourne0 wbourne0 added type: refactor For issues and PRs. Things that improve the code readability, maintainability, testability, etc. type: typescript For issues and PRs. Things that involve typescript, such as typings and intellisense. dialect: mariadb For issues and PRs. Things that involve MariaDB (and do not involve all dialects). labels Mar 12, 2022
@wbourne0 wbourne0 self-assigned this Mar 12, 2022
@wbourne0 wbourne0 closed this Mar 12, 2022
@wbourne0 wbourne0 force-pushed the typeify-maraiadb-data-types branch from c0a341a to 210279c Compare March 12, 2022 05:22
Refactors mariadb-specific dialect types to be TS and to work with the new
DataTypes format.
@wbourne0 wbourne0 reopened this Mar 12, 2022
Copy link
Member

@WikiRik WikiRik left a comment

Choose a reason for hiding this comment

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

Looks good. I have one suggestion though.

Also; in the js file we have

BaseTypes.ABSTRACT.prototype.dialectTypes = 'https://mariadb.com/kb/en/library/resultset/#field-types';

Is there a reason this is not present anymore in the ts file? Haven't looked at the other PRs though so I might just have missed it

this.sqlType = this.key;
} else {
if (!this.type) {
throw new Error('Expected GEOMETRY type');
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we can add a nicer error message here?

@ephys ephys mentioned this pull request May 13, 2022
42 tasks
@wbourne0
Copy link
Member Author

Closing in favor of #14505.

@wbourne0 wbourne0 closed this Sep 16, 2022
@ephys ephys deleted the typeify-maraiadb-data-types branch October 3, 2022 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dialect: mariadb For issues and PRs. Things that involve MariaDB (and do not involve all dialects). type: refactor For issues and PRs. Things that improve the code readability, maintainability, testability, etc. type: typescript For issues and PRs. Things that involve typescript, such as typings and intellisense.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants