ossipesonen / elixir Goto Github PK
View Code? Open in Web Editor NEWZero dependency PHP Query Builder forked from Doctrine DBAL QueryBuilder
Home Page: https://rcls.gitbook.io/elixir/
License: MIT License
Zero dependency PHP Query Builder forked from Doctrine DBAL QueryBuilder
Home Page: https://rcls.gitbook.io/elixir/
License: MIT License
Currently the library forces alias use for joins.
$qb->select('parent_alias.id', 'alias_for_joined_table.name')
->from('parent', 'parent_alias')
->innerJoin('parent_alias', 'joined_table', 'alias_for_joined_table', 'alias_for_joined_table.parent_id = parent_alias.id');
This creates an SQL query:
SELECT parent_alias.id, alias_for_joined_table.name FROM parent parent_alias INNER JOIN joined_table alias_for_joined_table ON alias_for_joined_table.parent_id = parent_alias.id
This becomes cumbersome as it's sometimes easier to build a query without the need to create an alias for every table, but instead reference the table name.
The code should ignore alias use in cases where the alias is passed as:
In these cases aliases should be dropped. Example:
$qb->select('parent_alias.id', 'alias_for_joined_table.name')
->from('parent')
->innerJoin('parent', 'joined_table', null, 'joined_table.parent_id = parent.id');
Resulting in:
SELECT parent.id, joined_table.name FROM parent INNER JOIN joined_table ON joined_table.parent_id = parent.id
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.