File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ print(result.content) # JSON rows
4949tools[" hotdata_create_managed_database" ].call(
5050 name = " sales" ,
5151 schema_name = " public" ,
52- tables = " orders\n customers " ,
52+ tables = " orders,customers " ,
5353)
5454
5555tools[" hotdata_load_managed_table" ].call(
Original file line number Diff line number Diff line change @@ -58,8 +58,8 @@ def hotdata_create_managed_database(
5858 schema_name : str = DEFAULT_SCHEMA ,
5959 tables : str = "" ,
6060 ) -> str :
61- """Create a Hotdata-managed database and optionally declare tables (one per line )."""
62- table_names = [line .strip () for line in tables .splitlines () if line .strip ()]
61+ """Create a Hotdata-managed database and optionally declare tables (comma or newline separated )."""
62+ table_names = [t .strip () for t in tables .replace ( "," , " \n " ). splitlines () if t .strip ()]
6363 db = create_managed_database (
6464 client ,
6565 name = name ,
You can’t perform that action at this time.
0 commit comments