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

Integrate with PhpGt/SqlBuilder #191

Open
g105b opened this issue Oct 3, 2020 · 1 comment
Open

Integrate with PhpGt/SqlBuilder #191

g105b opened this issue Oct 3, 2020 · 1 comment
Labels

Comments

@g105b
Copy link
Member

g105b commented Oct 3, 2020

PHP.Gt/SqlBuilder is not a way of generating queries from code, instead it's a way of building a representation of SQL, therefore this issue is not the same as #84 .

To integrate SqlBuilder, do the same check for SQL files but for PHP files. If there is a PHP file of the correct name, load it and check the expected class name is available, then instantiate it and call its toString function.

@g105b g105b added the feature label Oct 3, 2020
@g105b g105b added this to the v2 milestone Oct 3, 2020
@g105b
Copy link
Member Author

g105b commented Oct 3, 2020

When a .php file is present, the Query class type will be PhpQuery (usually SqlQuery). PhpQuery needs creating, and this class should represent the PHP class, load it and handle the toString calling.

g105b added a commit that referenced this issue Oct 3, 2020
@g105b g105b removed this from the v2 milestone Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant