Skip to content
This repository was archived by the owner on Oct 9, 2025. It is now read-only.

Commit 4b87e1b

Browse files
committed
chore: make left join a non-op
1 parent bd01ce7 commit 4b87e1b

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

src/select-query-parser/parser.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ type ParseField<Input extends string> = Input extends ''
7878
Ast.FieldNode & {
7979
type: 'field'
8080
name: IdNode['name']
81-
left: true
8281
children: Children
8382
},
8483
EatWhitespace<Remainder>
@@ -196,7 +195,6 @@ type ParseFieldWithoutEmbeddedResource<Input extends string> =
196195
alias?: Field['alias']
197196
hint?: Field['hint']
198197
inner?: Field['inner']
199-
left?: Field['left']
200198
children?: Field['children']
201199
aggregateFunction: AggregateFunction
202200
castType: CastType
@@ -212,7 +210,6 @@ type ParseFieldWithoutEmbeddedResource<Input extends string> =
212210
alias?: Field['alias']
213211
hint?: Field['hint']
214212
inner?: Field['inner']
215-
left?: Field['left']
216213
children?: Field['children']
217214
aggregateFunction: AggregateFunction
218215
},
@@ -250,7 +247,6 @@ type ParseFieldWithoutEmbeddedResourceAndAggregation<Input extends string> =
250247
alias?: Field['alias']
251248
hint?: Field['hint']
252249
inner?: Field['inner']
253-
left?: Field['left']
254250
children?: Field['children']
255251
castType: CastType
256252
},
@@ -409,7 +405,6 @@ type ParseNode<Input extends string, NodesInput extends string> = Input extends
409405
alias: AliasIdNode['name']
410406
hint?: Field['hint']
411407
inner?: Field['inner']
412-
left?: Field['left']
413408
children?: Field['children']
414409
castType?: Field['castType']
415410
aggregateFunction?: Field['aggregateFunction']
@@ -616,7 +611,6 @@ export namespace Ast {
616611
alias?: string
617612
hint?: unknown
618613
inner?: boolean
619-
left?: boolean
620614
children?: unknown
621615
aggregateFunction?: AggregateFunctions
622616
castType?: PostgreSQLTypes

test/select-query-parser/parser.test-d.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ import { selectParams } from '../relationships'
156156
{ type: 'field', name: 'id' },
157157
{ type: 'field', name: 'title' },
158158
],
159-
left: true,
160159
},
161160
])
162161
}
@@ -199,7 +198,6 @@ import { selectParams } from '../relationships'
199198
],
200199
},
201200
],
202-
left: true,
203201
},
204202
{ type: 'field', name: 'profile', alias: 'theme', castType: 'text' },
205203
])
@@ -405,7 +403,6 @@ import { selectParams } from '../relationships'
405403
{ type: 'field', name: 'title' },
406404
{ type: 'field', name: 'content' },
407405
],
408-
left: true,
409406
},
410407
])
411408
}

0 commit comments

Comments
 (0)