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

Adding functions for easy dropping and truncating of tables #35

Open
n8layman opened this issue Dec 17, 2021 · 1 comment
Open

Adding functions for easy dropping and truncating of tables #35

n8layman opened this issue Dec 17, 2021 · 1 comment
Labels
enhancement New feature or request sql-interface

Comments

@n8layman
Copy link
Contributor

Convenience functions for dropping and truncating tables on the current branch might be useful.

As in:

dolt_truncate <- function(table, conn=doltr::dolt()) {
query <- paste("truncate table", table)
return(RMariaDB::dbExecute(conn, query))
}

dolt_drop <- function(table, conn=doltr::dolt()) {
query <- paste("drop table", table)
return(RMariaDB::dbExecute(conn, query))
}

@noamross noamross added sql-interface enhancement New feature or request labels Dec 20, 2021
@noamross
Copy link
Collaborator

noamross commented Dec 20, 2021

  • dolt_remove_table - doltr-style wrapper around dbRemoveTable.
  • S4 method, dbTruncateTable, wrapped by dolt_truncate_table

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request sql-interface
Projects
None yet
Development

No branches or pull requests

2 participants