Skip to content

Write and WriteFormatted should be merged into the same method. #62

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

Open
nilportugues opened this issue Apr 11, 2015 · 0 comments
Open
Assignees
Milestone

Comments

@nilportugues
Copy link
Owner

The new write method should have:

public function write($query, $formatted = false);

Under the hood, it should call writeRaw (v1 write function) or writeFormatted (same as v1).

public function writeRaw(QueryInterface $query, $resetPlaceholders = true);
public function writeFormatted(QueryInterface $query);

An example of a function behaving like this is json_decode($value, JSON_PRETTY_PRINT);

@nilportugues nilportugues self-assigned this Apr 11, 2015
@nilportugues nilportugues added this to the v2 milestone Apr 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant