MCPcopy
hub / github.com/pandas-dev/pandas / to_sql

Method to_sql

pandas/io/sql.py:1495–1509  ·  view source on GitHub ↗
(
        self,
        frame,
        name: str,
        if_exists: Literal["fail", "replace", "append", "delete_rows"] = "fail",
        index: bool = True,
        index_label=None,
        schema=None,
        chunksize: int | None = None,
        dtype: DtypeArg | None = None,
        method: Literal["multi"] | Callable | None = None,
        engine: str = "auto",
        **engine_kwargs,
    )

Source from the content-addressed store, hash-verified

1493
1494 @abstractmethod
1495 def to_sql(
1496 self,
1497 frame,
1498 name: str,
1499 if_exists: Literal["fail", "replace", "append", "delete_rows"] = "fail",
1500 index: bool = True,
1501 index_label=None,
1502 schema=None,
1503 chunksize: int | None = None,
1504 dtype: DtypeArg | None = None,
1505 method: Literal["multi"] | Callable | None = None,
1506 engine: str = "auto",
1507 **engine_kwargs,
1508 ) -> int | None:
1509 pass
1510
1511 @abstractmethod
1512 def execute(self, sql: str | Select | TextClause, params=None):

Callers 15

setupMethod · 0.45
time_to_sql_dataframeMethod · 0.45
setupMethod · 0.45
setupMethod · 0.45
setupMethod · 0.45
to_sqlFunction · 0.45
test_dataframe_to_sqlFunction · 0.45
test_to_sqlFunction · 0.45

Calls

no outgoing calls