zvt.contract.api.df_to_db¶
- zvt.contract.api.df_to_db(df: DataFrame, data_schema: DeclarativeMeta, provider: str, force_update: bool = False, sub_size: int = 8000, drop_duplicates: bool = True, dtype=None, session=None, need_check=True) object¶
store the df to db
- Parameters:
df – data with columns of the schema
data_schema – data schema
provider – data provider
force_update – whether update the data with id existed
sub_size – update batch size
drop_duplicates – whether drop duplicates
- Returns: