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

Method to_sql

dask/dataframe/dask_expr/_collection.py:2405–2436  ·  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

2403 return to_json(self, filename, *args, **kwargs)
2404
2405 def to_sql(
2406 self,
2407 name: str,
2408 uri: str,
2409 schema=None,
2410 if_exists: str = "fail",
2411 index: bool = True,
2412 index_label=None,
2413 chunksize=None,
2414 dtype=None,
2415 method=None,
2416 compute=True,
2417 parallel=False,
2418 engine_kwargs=None,
2419 ):
2420 from dask.dataframe.io.sql import to_sql
2421
2422 return to_sql(
2423 self,
2424 name,
2425 uri,
2426 schema=schema,
2427 if_exists=if_exists,
2428 index=index,
2429 index_label=index_label,
2430 chunksize=chunksize,
2431 dtype=dtype,
2432 method=method,
2433 compute=compute,
2434 parallel=parallel,
2435 engine_kwargs=engine_kwargs,
2436 )
2437
2438 def to_orc(self, path, *args, **kwargs):
2439 """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