Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Split Query operators into their own parameter #57

@hexus

Description

@hexus

Queries can be written as such at the moment:

// Implying equality
$query->where('id', 1);

// Specifying an operator
$query->where('id >', 1);

Forcing the operator to be in the first parameter isn't pleasant. Follow Laravel and many other query builders in this regard.

// Implied equality
$query->where('id', 1);

// Specifying an operator
$query->where('id', '>', 1);

This is especially relevant for #54.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions