Skip to content

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

Closed
wbourne0 wants to merge 1 commit into
typeify-data-typesfrom
typeify-maraiadb-data-types
Closed

wbourne0 wants to merge 1 commit into
typeify-data-typesfrom
typeify-maraiadb-data-types

Conversation

@wbourne0

Copy link
Copy Markdown
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 DEPRECATED: replace with the "meta" issue 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 force-pushed the typeify-data-types branch from 6de690b to 210279c Compare March 12, 2022 05:20
@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

@WikiRik WikiRik left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
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
38 of 42 tasks
@wbourne0

Copy link
Copy Markdown
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 DEPRECATED: replace with the "meta" issue 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.

2 participants