Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit 9d17607

Browse files
authored
Merge pull request #51 from datafuselabs/docs/execute-resp
fix: demo docs
2 parents adc4750 + 5d8a573 commit 9d17607

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ Pure Client example:
4040
> >>> client = Client.from_url('http://root@localhost:8000/db?secure=False&copy_purge=True')
4141
> >>>
4242
> >>> client.execute('SHOW TABLES')
43-
> [('test',)]
43+
> [[], [('test',)]]
44+
> >>> client.execute("show tables",with_column_types=True)
45+
> [[('Tables_in_default', 'String')], [('test',)]] # [[(column_name, column_type)], [(data,)]]
4446
> >>> client.execute('DROP TABLE IF EXISTS test')
4547
> []
4648
> >>> client.execute('CREATE TABLE test (x Int32)')

0 commit comments

Comments
 (0)