@@ -263,8 +263,6 @@ public interface ColumnsSelectionDsl<out T> : ColumnSelectionDsl<T>, SingleColum
263
263
public fun ColumnSet <* >.startsWith (prefix : CharSequence ): ColumnSet <Any ?> = cols { it.name.startsWith(prefix) }
264
264
public fun ColumnSet <* >.endsWith (suffix : CharSequence ): ColumnSet <Any ?> = cols { it.name.endsWith(suffix) }
265
265
266
- public infix fun <C > ColumnSet<C>.and (other : ColumnSet <C >): ColumnSet <C > = ColumnsList (this , other)
267
-
268
266
public fun <C > ColumnSet<C>.except (vararg other : ColumnSet <* >): ColumnSet <* > = except(other.toColumns())
269
267
public fun <C > ColumnSet<C>.except (vararg other : String ): ColumnSet <* > = except(other.toColumns())
270
268
@@ -292,14 +290,42 @@ public interface ColumnsSelectionDsl<out T> : ColumnSelectionDsl<T>, SingleColum
292
290
293
291
public infix fun String.named (newName : String ): ColumnReference <Any ?> = toColumnAccessor().named(newName)
294
292
293
+ // region and
294
+
295
+ // region String
295
296
public infix fun String.and (other : String ): ColumnSet <Any ?> = toColumnAccessor() and other.toColumnAccessor()
296
297
public infix fun <C > String.and (other : ColumnSet <C >): ColumnSet <Any ?> = toColumnAccessor() and other
298
+ public infix fun <C > String.and (other : KProperty <C >): ColumnSet <Any ?> = toColumnAccessor() and other
299
+ public infix fun <C > String.and (other : ColumnsSelector <T , C >): ColumnSet <Any ?> = toColumnAccessor() and other()
300
+
301
+ // endregion
302
+
303
+ // region KProperty
297
304
public infix fun <C > KProperty<C>.and (other : ColumnSet <C >): ColumnSet <C > = toColumnAccessor() and other
298
- public infix fun <C > ColumnSet <C>.and (other : KProperty < C > ): ColumnSet <C > = this and other.toColumnAccessor()
305
+ public infix fun <C > KProperty <C>.and (other : String ): ColumnSet <Any ? > = toColumnAccessor() and other
299
306
public infix fun <C > KProperty<C>.and (other : KProperty <C >): ColumnSet <C > =
300
307
toColumnAccessor() and other.toColumnAccessor()
308
+ public infix fun <C > KProperty<C>.and (other : ColumnsSelector <T , C >): ColumnSet <C > = toColumnAccessor() and other()
309
+
310
+ // endregion
301
311
312
+ // region ColumnSet
313
+
314
+ public infix fun <C > ColumnSet<C>.and (other : KProperty <C >): ColumnSet <C > = this and other.toColumnAccessor()
302
315
public infix fun <C > ColumnSet<C>.and (other : String ): ColumnSet <Any ?> = this and other.toColumnAccessor()
316
+ public infix fun <C > ColumnSet<C>.and (other : ColumnSet <C >): ColumnSet <C > = ColumnsList (this , other)
317
+ public infix fun <C > ColumnSet<C>.and (other : ColumnsSelector <T , C >): ColumnSet <C > = this and other()
318
+
319
+ // endregion
320
+
321
+ // region ColumnsSelector
322
+
323
+ public infix fun <C > ColumnsSelector <T , C >.and (other : KProperty <C >): ColumnSet <C > = this () and other
324
+ public infix fun <C > ColumnsSelector <T , C >.and (other : String ): ColumnSet <Any ?> = this () and other
325
+ public infix fun <C > ColumnsSelector <T , C >.and (other : ColumnSet <C >): ColumnSet <C > = this () and other
326
+ public infix fun <C > ColumnsSelector <T , C >.and (other : ColumnsSelector <T , C >): ColumnSet <C > = this () and other
327
+
328
+ // endregion
303
329
304
330
public operator fun <C > String.invoke (newColumnExpression : RowExpression <T , C >): DataColumn <C > =
305
331
newColumnWithActualType(this , newColumnExpression)
0 commit comments