Skip to content

Comments

Support EXPLAIN statement#1044

Open
Huliiiiii wants to merge 1 commit intoSeaQL:masterfrom
Huliiiiii:explain
Open

Support EXPLAIN statement#1044
Huliiiiii wants to merge 1 commit intoSeaQL:masterfrom
Huliiiiii:explain

Conversation

@Huliiiiii
Copy link
Member

@Huliiiiii Huliiiiii requested review from Expurple and tyt2y3 and removed request for Expurple January 17, 2026 18:25
@Huliiiiii Huliiiiii changed the title Support explain Support EXPLAIN statement Jan 17, 2026
@Huliiiiii Huliiiiii force-pushed the explain branch 2 times, most recently from c8fff9b to 4494564 Compare January 19, 2026 16:54

/// MySQL-only EXPLAIN table/column or wildcard target.
#[derive(Debug, Clone, PartialEq)]
pub struct ExplainTable {
Copy link
Member Author

@Huliiiiii Huliiiiii Jan 19, 2026

Choose a reason for hiding this comment

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

Maybe this would be better?

pub enum ExplainTable {
  Table(..),
  WithColumn(..)
  WithWildcard(..)
}

assert_eq!(
ExplainStatement::new()
.analyze()
.verbose(false)
Copy link
Member Author

Choose a reason for hiding this comment

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

option(bool) or option()/option_false()?

Copy link
Contributor

Choose a reason for hiding this comment

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

I'd prefer option(bool) that matches PG's model 1:1.

@Huliiiiii Huliiiiii force-pushed the explain branch 2 times, most recently from 55e1447 to aa0a5c2 Compare January 19, 2026 18:45
@Huliiiiii
Copy link
Member Author

@tisonkun 方便的话可以看看符不符合需求和review一下。

Copy link
Contributor

@tisonkun tisonkun left a comment

Choose a reason for hiding this comment

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

Final user-facing result LGTM. I can test it out once a new rc is out.

@Huliiiiii Huliiiiii force-pushed the explain branch 2 times, most recently from 6dcf423 to 3f310aa Compare January 20, 2026 03:15
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 EXPLAIN statement

2 participants