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

Method to_sql

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

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