Gte
Greater-than-or-equal comparison (left >= right). Extends CompOperator.
Shorthand keys: >=, gte.
Constructor
Gte(left: string | SqlElement, right?: any): Gte
new Gte(left: string | SqlElement, right?: any): Gte
Dual-callable. left can be a field-name string (optionally with a trailing []) or an SQL
element; right can be a literal, Param, Raw, or sub-Select.
import { Gte, Select } from '@sqb/builder';
Select().from('customers').where(Gte('age', 18));
// where age >= 18
Properties
Inherits every property from CompOperator (_type, _left, _right,
_symbol, _isArray); _symbol is always '>='.
Methods
Inherits ._serialize() from
CompOperator; Gte adds no methods of its own.
Object-literal shorthand
Select().from('customers').where({ 'age >=': 18, 'price gte': 100 });
// where age >= 18 and price >= 100