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

Builder methods for SQLTemplates subclasses #355

Closed
timowest opened this issue Mar 10, 2013 · 1 comment
Closed

Builder methods for SQLTemplates subclasses #355

timowest opened this issue Mar 10, 2013 · 1 comment
Milestone

Comments

@timowest
Copy link
Member

@timowest timowest commented Mar 10, 2013

The current way of customizing SQLTemplates instances is not obvious enough. It involves creating an anonymous subclass and calling the protected methods in it.

new H2Templates(true){{
        newLineToSingleSpace();
    }}

Using builders might be more intuitive

e.g.

H2Templates.builder().quote()
                     .newLineToSingleSpace()
                     .build();

Other builder options could be

printSchema()
escape(char ch)
@timowest
Copy link
Member Author

@timowest timowest commented Mar 21, 2013

Released in 3.0.0

@timowest timowest closed this Mar 21, 2013
@timowest timowest added this to the 3.0.0 milestone Apr 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant