Skip to content

Create a db_save_query() for RPresto to allow smart overwriting #271

@jarodmeng

Description

@jarodmeng

The default db_save_query() overwrites a table by dropping it first. This is not safe because the writing part might fail. A safer way is to rename the old table first, writes the new table, and either drops the renamed table (if the writing succeeds) or reverts the renamed table (if the writing fails).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions