MCPcopy Create free account
hub / github.com/dask/dask / to_sql

Method to_sql

dask/dataframe/dask_expr/_collection.py:2441–2472  ·  view source on GitHub ↗
(
        self,
        name: str,
        uri: str,
        schema=None,
        if_exists: str = "fail",
        index: bool = True,
        index_label=None,
        chunksize=None,
        dtype=None,
        method=None,
        compute=True,
        parallel=False,
        engine_kwargs=None,
    )

Source from the content-addressed store, hash-verified

2439 return to_json(self, filename, *args, **kwargs)
2440
2441 def to_sql(
2442 self,
2443 name: str,
2444 uri: str,
2445 schema=None,
2446 if_exists: str = "fail",
2447 index: bool = True,
2448 index_label=None,
2449 chunksize=None,
2450 dtype=None,
2451 method=None,
2452 compute=True,
2453 parallel=False,
2454 engine_kwargs=None,
2455 ):
2456 from dask.dataframe.io.sql import to_sql
2457
2458 return to_sql(
2459 self,
2460 name,
2461 uri,
2462 schema=schema,
2463 if_exists=if_exists,
2464 index=index,
2465 index_label=index_label,
2466 chunksize=chunksize,
2467 dtype=dtype,
2468 method=method,
2469 compute=compute,
2470 parallel=parallel,
2471 engine_kwargs=engine_kwargs,
2472 )
2473
2474 def to_orc(self, path, *args, **kwargs):
2475 """See dd.to_orc docstring for more information"""

Callers 11

_to_sql_chunkFunction · 0.80
dbFunction · 0.80
test_single_columnFunction · 0.80
test_needs_rationalFunction · 0.80
test_datetimesFunction · 0.80
test_to_sqlFunction · 0.80
test_to_sql_kwargsFunction · 0.80

Calls 1

to_sqlFunction · 0.90

Tested by 10

dbFunction · 0.64
test_single_columnFunction · 0.64
test_needs_rationalFunction · 0.64
test_datetimesFunction · 0.64
test_to_sqlFunction · 0.64
test_to_sql_kwargsFunction · 0.64