Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workaround for Access? #62

Open
Codein99 opened this issue Sep 1, 2022 · 0 comments
Open

Workaround for Access? #62

Codein99 opened this issue Sep 1, 2022 · 0 comments

Comments

@Codein99
Copy link

Codein99 commented Sep 1, 2022

Hey,

when I try to use panges with access I become this Error:

raise exc.CompileError(

sqlalchemy.exc.CompileError: The 'access' dialect with current database version settings does not support in-place multirow inserts.

Have someone a workaround for Access or something like this?

` dataframe = pd.DataFrame(data=[data])
columnnamespr = pr_DB.columns.keys()

dataframe = dataframe.rename(columns=dict(zip(dataframe.columns, columnnamespr)))
dataframe.set_index(['ID'], drop=True, inplace=True)

with engine.connect() as con:
    upsert(con=con, df=dataframe, table_name='produkte', if_row_exists='update', create_table=False, chunksize=1)`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant