Add AS helper function #91
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "add-as-function"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This is just a quality of life function to turn this:
Into the slightly more readable:
Open to other options for how to solve this, but the
As
approach seemed the least intrusive and most backwards compatible.Different database use different syntax, some needs a
AS
keyword, another needs a space.23218801ec
to2394514719
I took a look at this site: https://www.techonthenet.com/
The info I saw there was as follows:
https://www.techonthenet.com/sqlite/alias.php
https://www.techonthenet.com/sql_server/alias.php
https://www.techonthenet.com/postgresql/alias.php
https://www.techonthenet.com/mysql/alias.php
https://www.techonthenet.com/oracle/alias.php
I can alter the PR to be more like the following if that would be preferred:
https://gitea.com/xorm/builder/compare/master...imle:add-as-function-v2
Pull request closed