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

Raw SQL support #14

Closed
Toilal opened this issue Feb 25, 2016 · 3 comments
Closed

Raw SQL support #14

Toilal opened this issue Feb 25, 2016 · 3 comments

Comments

@Toilal
Copy link
Contributor

Toilal commented Feb 25, 2016

Would it be possible to add support of raw SQL script datasets ? It seems not to be supported by by DbUnit itself, but could be handy in some cases though.

@rmpestano
Copy link
Owner

Hi @Toilal, you can execute sql scripts before and after, it helps for your case?

see here https://github.com/rmpestano/dbunit-rules/blob/master/core/src/test/java/com/github/dbunit/rules/DBUnitRulesIt.java#L65

@rmpestano
Copy link
Owner

Currently we have only executeStatementsBefore but I think it would be useful to have scripts execution before tests where statements are separated by ';' inside a .sql script.

@rmpestano
Copy link
Owner

Hi again @Toilal,

It should be fixed now, you can use this test as reference.

Any problem just come back here, thanks for your feedback so far.

PS: its available on central snapshots.

rmpestano pushed a commit that referenced this issue Feb 27, 2016
rmpestano pushed a commit that referenced this issue Feb 27, 2016
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

2 participants