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

Implement a 'Drop Database' through a Ledger API command #9

Open
imetaxas opened this issue May 31, 2018 · 1 comment
Open

Implement a 'Drop Database' through a Ledger API command #9

imetaxas opened this issue May 31, 2018 · 1 comment

Comments

@imetaxas
Copy link
Owner

imetaxas commented May 31, 2018

Drop whole database through a Ledger API command.
Do not truncate and recreate the db tables in every run.

@imetaxas imetaxas changed the title Delete records through a Ledger API command Implement a 'Drop Database' through a Ledger API command Sep 6, 2018
@imetaxas
Copy link
Owner Author

imetaxas commented Sep 6, 2018

Ledger ledger = new LedgerBuilder(chartOfAccounts)
.name("JDBC H2")
.options(options)
.build()
.dropAll() // first drops the whole old database
.init(); // then re-creates it with the new accounts from the chartOfAccounts

@imetaxas imetaxas closed this as completed Sep 6, 2018
@imetaxas imetaxas reopened this Sep 6, 2018
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