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

feat: support control command & multi statements by SemiColon #95

Merged
merged 11 commits into from
Apr 26, 2023

Conversation

sundy-li
Copy link
Member

@sundy-li sundy-li commented Apr 26, 2023

Examples:

:) .prompt 127.0.0.1@sundy:)
127.0.0.1@sundy:) show tables limit 3;

127.0.0.1@sundy:) .display_pretty_sql false
127.0.0.1@sundy:) show tables ;


┌───────────────────┐
│ tables_in_default │
│       String      │
├───────────────────┤
│ abc               │
│ event             │
│ hits              │
│ t_clustered       │
│ test              │
└───────────────────┘

5 rows in 0.130 sec. Processed 40 rows, 40B (307.08 rows/s, 58.09 KiB/s)

127.0.0.1@sundy:) .display_pretty_sql true
127.0.0.1@sundy:) show tables ;

SHOW TABLES

┌───────────────────┐
│ tables_in_default │
│       String      │
├───────────────────┤
│ abc               │
│ event             │
│ hits              │
│ t_clustered       │
│ test              │
└───────────────────┘

5 rows in 0.088 sec. Processed 40 rows, 40B (454.24 rows/s, 85.92 KiB/s)

Multi statements in online:

❯ echo "select 1;select 3; select 3-3; select 2" | ./target/release/bendsql -u sundy -p abc --port 8900 -h127.0.0.1 --flight
1
3
0
2

@sundy-li sundy-li changed the title feat: support control command feat: support control command & multi statements by SemiColon Apr 26, 2023
@sundy-li sundy-li merged commit f228acf into databendlabs:main Apr 26, 2023
@sundy-li sundy-li deleted the control-command branch April 26, 2023 03:47
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.

2 participants