Skip to content

Request a variant of load! that executes REPLACE on each row rather than INSERT. #243

@yygrechka

Description

@yygrechka

I'm working on an application where I have a schema with an INTEGER PRIMARY KEY, and when I load in a dataframe where a value in the primary key column already exists in the table, I'd like the load! function to replace the existing row in the database with a new row from the dataframe.

I got it to work by essentially copying the load! code, and deleting the INSERT keyword, and placing the REPLACE keyword in its place. It would be really nice if the library could support this functionality.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions