joist-core 2.3.0-next.67 → 2.3.0-next.69

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/query.d.cts CHANGED
@@ -460,7 +460,7 @@ declare function query<F extends QuerySource, S extends QuerySelect = never, J e
460
460
  * sql`${"Alice"}` // Value: ?, bindings ["Alice"]
461
461
  *
462
462
  * // Selecting this expression keeps the join to Book b.
463
- * sql<number>`${b.order} * ${2}`
463
+ * sql.number`${b.order} * ${2}`
464
464
  *
465
465
  * // Reference an unmodeled column; it is untracked at the type level.
466
466
  * sql.ref<string>(a, "ts_search")
@@ -469,6 +469,3282 @@ declare function query<F extends QuerySource, S extends QuerySelect = never, J e
469
469
  */
470
470
  declare function sql<R = unknown>(strings: TemplateStringsArray, ...values: unknown[]): Expr<R, never>;
471
471
  declare namespace sql {
472
+ var number: {
473
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<number, never>;
474
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
475
+ number: /*elided*/ any;
476
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
477
+ numberOrNull: {
478
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<number | null, never>;
479
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
480
+ number: /*elided*/ any;
481
+ numberOrNull: /*elided*/ any;
482
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
483
+ string: {
484
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<string, never>;
485
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
486
+ number: /*elided*/ any;
487
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
488
+ numberOrNull: /*elided*/ any;
489
+ string: /*elided*/ any;
490
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
491
+ stringOrNull: {
492
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<string | null, never>;
493
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
494
+ number: /*elided*/ any;
495
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
496
+ numberOrNull: /*elided*/ any;
497
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
498
+ string: /*elided*/ any;
499
+ stringOrNull: /*elided*/ any;
500
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
501
+ boolean: {
502
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
503
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
504
+ number: /*elided*/ any;
505
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
506
+ numberOrNull: /*elided*/ any;
507
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
508
+ string: /*elided*/ any;
509
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
510
+ stringOrNull: /*elided*/ any;
511
+ boolean: /*elided*/ any;
512
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
513
+ booleanOrNull: {
514
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
515
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
516
+ number: /*elided*/ any;
517
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
518
+ numberOrNull: /*elided*/ any;
519
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
520
+ string: /*elided*/ any;
521
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
522
+ stringOrNull: /*elided*/ any;
523
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
524
+ boolean: /*elided*/ any;
525
+ booleanOrNull: /*elided*/ any;
526
+ /** A raw condition for `where`, `having`, or `on`. */
527
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
528
+ /** A column Joist does not model, on a source that is in the query. */
529
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
530
+ };
531
+ /** A raw condition for `where`, `having`, or `on`. */
532
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
533
+ /** A column Joist does not model, on a source that is in the query. */
534
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
535
+ };
536
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
537
+ booleanOrNull: {
538
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
539
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
540
+ number: any;
541
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
542
+ numberOrNull: any;
543
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
544
+ string: any;
545
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
546
+ stringOrNull: any;
547
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
548
+ boolean: any;
549
+ booleanOrNull: any;
550
+ /** A raw condition for `where`, `having`, or `on`. */
551
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
552
+ /** A column Joist does not model, on a source that is in the query. */
553
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
554
+ };
555
+ /** A raw condition for `where`, `having`, or `on`. */
556
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
557
+ /** A column Joist does not model, on a source that is in the query. */
558
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
559
+ };
560
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
561
+ boolean: {
562
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
563
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
564
+ number: any;
565
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
566
+ numberOrNull: any;
567
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
568
+ string: any;
569
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
570
+ stringOrNull: any;
571
+ boolean: any;
572
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
573
+ booleanOrNull: {
574
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
575
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
576
+ number: any;
577
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
578
+ numberOrNull: any;
579
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
580
+ string: any;
581
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
582
+ stringOrNull: any;
583
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
584
+ boolean: any;
585
+ booleanOrNull: any;
586
+ /** A raw condition for `where`, `having`, or `on`. */
587
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
588
+ /** A column Joist does not model, on a source that is in the query. */
589
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
590
+ };
591
+ /** A raw condition for `where`, `having`, or `on`. */
592
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
593
+ /** A column Joist does not model, on a source that is in the query. */
594
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
595
+ };
596
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
597
+ booleanOrNull: {
598
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
599
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
600
+ number: any;
601
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
602
+ numberOrNull: any;
603
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
604
+ string: any;
605
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
606
+ stringOrNull: any;
607
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
608
+ boolean: any;
609
+ booleanOrNull: any;
610
+ /** A raw condition for `where`, `having`, or `on`. */
611
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
612
+ /** A column Joist does not model, on a source that is in the query. */
613
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
614
+ };
615
+ /** A raw condition for `where`, `having`, or `on`. */
616
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
617
+ /** A column Joist does not model, on a source that is in the query. */
618
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
619
+ };
620
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
621
+ stringOrNull: {
622
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<string | null, never>;
623
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
624
+ number: any;
625
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
626
+ numberOrNull: any;
627
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
628
+ string: any;
629
+ stringOrNull: any;
630
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
631
+ boolean: {
632
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
633
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
634
+ number: any;
635
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
636
+ numberOrNull: any;
637
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
638
+ string: any;
639
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
640
+ stringOrNull: any;
641
+ boolean: any;
642
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
643
+ booleanOrNull: {
644
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
645
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
646
+ number: any;
647
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
648
+ numberOrNull: any;
649
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
650
+ string: any;
651
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
652
+ stringOrNull: any;
653
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
654
+ boolean: any;
655
+ booleanOrNull: any;
656
+ /** A raw condition for `where`, `having`, or `on`. */
657
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
658
+ /** A column Joist does not model, on a source that is in the query. */
659
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
660
+ };
661
+ /** A raw condition for `where`, `having`, or `on`. */
662
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
663
+ /** A column Joist does not model, on a source that is in the query. */
664
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
665
+ };
666
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
667
+ booleanOrNull: {
668
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
669
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
670
+ number: any;
671
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
672
+ numberOrNull: any;
673
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
674
+ string: any;
675
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
676
+ stringOrNull: any;
677
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
678
+ boolean: any;
679
+ booleanOrNull: any;
680
+ /** A raw condition for `where`, `having`, or `on`. */
681
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
682
+ /** A column Joist does not model, on a source that is in the query. */
683
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
684
+ };
685
+ /** A raw condition for `where`, `having`, or `on`. */
686
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
687
+ /** A column Joist does not model, on a source that is in the query. */
688
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
689
+ };
690
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
691
+ boolean: {
692
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
693
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
694
+ number: any;
695
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
696
+ numberOrNull: any;
697
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
698
+ string: any;
699
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
700
+ stringOrNull: any;
701
+ boolean: any;
702
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
703
+ booleanOrNull: {
704
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
705
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
706
+ number: any;
707
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
708
+ numberOrNull: any;
709
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
710
+ string: any;
711
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
712
+ stringOrNull: any;
713
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
714
+ boolean: any;
715
+ booleanOrNull: any;
716
+ /** A raw condition for `where`, `having`, or `on`. */
717
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
718
+ /** A column Joist does not model, on a source that is in the query. */
719
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
720
+ };
721
+ /** A raw condition for `where`, `having`, or `on`. */
722
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
723
+ /** A column Joist does not model, on a source that is in the query. */
724
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
725
+ };
726
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
727
+ booleanOrNull: {
728
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
729
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
730
+ number: any;
731
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
732
+ numberOrNull: any;
733
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
734
+ string: any;
735
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
736
+ stringOrNull: any;
737
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
738
+ boolean: any;
739
+ booleanOrNull: any;
740
+ /** A raw condition for `where`, `having`, or `on`. */
741
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
742
+ /** A column Joist does not model, on a source that is in the query. */
743
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
744
+ };
745
+ /** A raw condition for `where`, `having`, or `on`. */
746
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
747
+ /** A column Joist does not model, on a source that is in the query. */
748
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
749
+ };
750
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
751
+ string: {
752
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<string, never>;
753
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
754
+ number: any;
755
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
756
+ numberOrNull: any;
757
+ string: any;
758
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
759
+ stringOrNull: {
760
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<string | null, never>;
761
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
762
+ number: any;
763
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
764
+ numberOrNull: any;
765
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
766
+ string: any;
767
+ stringOrNull: any;
768
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
769
+ boolean: {
770
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
771
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
772
+ number: any;
773
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
774
+ numberOrNull: any;
775
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
776
+ string: any;
777
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
778
+ stringOrNull: any;
779
+ boolean: any;
780
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
781
+ booleanOrNull: {
782
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
783
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
784
+ number: any;
785
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
786
+ numberOrNull: any;
787
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
788
+ string: any;
789
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
790
+ stringOrNull: any;
791
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
792
+ boolean: any;
793
+ booleanOrNull: any;
794
+ /** A raw condition for `where`, `having`, or `on`. */
795
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
796
+ /** A column Joist does not model, on a source that is in the query. */
797
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
798
+ };
799
+ /** A raw condition for `where`, `having`, or `on`. */
800
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
801
+ /** A column Joist does not model, on a source that is in the query. */
802
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
803
+ };
804
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
805
+ booleanOrNull: {
806
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
807
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
808
+ number: any;
809
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
810
+ numberOrNull: any;
811
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
812
+ string: any;
813
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
814
+ stringOrNull: any;
815
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
816
+ boolean: any;
817
+ booleanOrNull: any;
818
+ /** A raw condition for `where`, `having`, or `on`. */
819
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
820
+ /** A column Joist does not model, on a source that is in the query. */
821
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
822
+ };
823
+ /** A raw condition for `where`, `having`, or `on`. */
824
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
825
+ /** A column Joist does not model, on a source that is in the query. */
826
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
827
+ };
828
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
829
+ boolean: {
830
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
831
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
832
+ number: any;
833
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
834
+ numberOrNull: any;
835
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
836
+ string: any;
837
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
838
+ stringOrNull: any;
839
+ boolean: any;
840
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
841
+ booleanOrNull: {
842
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
843
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
844
+ number: any;
845
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
846
+ numberOrNull: any;
847
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
848
+ string: any;
849
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
850
+ stringOrNull: any;
851
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
852
+ boolean: any;
853
+ booleanOrNull: any;
854
+ /** A raw condition for `where`, `having`, or `on`. */
855
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
856
+ /** A column Joist does not model, on a source that is in the query. */
857
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
858
+ };
859
+ /** A raw condition for `where`, `having`, or `on`. */
860
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
861
+ /** A column Joist does not model, on a source that is in the query. */
862
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
863
+ };
864
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
865
+ booleanOrNull: {
866
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
867
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
868
+ number: any;
869
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
870
+ numberOrNull: any;
871
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
872
+ string: any;
873
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
874
+ stringOrNull: any;
875
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
876
+ boolean: any;
877
+ booleanOrNull: any;
878
+ /** A raw condition for `where`, `having`, or `on`. */
879
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
880
+ /** A column Joist does not model, on a source that is in the query. */
881
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
882
+ };
883
+ /** A raw condition for `where`, `having`, or `on`. */
884
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
885
+ /** A column Joist does not model, on a source that is in the query. */
886
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
887
+ };
888
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
889
+ stringOrNull: {
890
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<string | null, never>;
891
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
892
+ number: any;
893
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
894
+ numberOrNull: any;
895
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
896
+ string: any;
897
+ stringOrNull: any;
898
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
899
+ boolean: {
900
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
901
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
902
+ number: any;
903
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
904
+ numberOrNull: any;
905
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
906
+ string: any;
907
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
908
+ stringOrNull: any;
909
+ boolean: any;
910
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
911
+ booleanOrNull: {
912
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
913
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
914
+ number: any;
915
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
916
+ numberOrNull: any;
917
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
918
+ string: any;
919
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
920
+ stringOrNull: any;
921
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
922
+ boolean: any;
923
+ booleanOrNull: any;
924
+ /** A raw condition for `where`, `having`, or `on`. */
925
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
926
+ /** A column Joist does not model, on a source that is in the query. */
927
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
928
+ };
929
+ /** A raw condition for `where`, `having`, or `on`. */
930
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
931
+ /** A column Joist does not model, on a source that is in the query. */
932
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
933
+ };
934
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
935
+ booleanOrNull: {
936
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
937
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
938
+ number: any;
939
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
940
+ numberOrNull: any;
941
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
942
+ string: any;
943
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
944
+ stringOrNull: any;
945
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
946
+ boolean: any;
947
+ booleanOrNull: any;
948
+ /** A raw condition for `where`, `having`, or `on`. */
949
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
950
+ /** A column Joist does not model, on a source that is in the query. */
951
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
952
+ };
953
+ /** A raw condition for `where`, `having`, or `on`. */
954
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
955
+ /** A column Joist does not model, on a source that is in the query. */
956
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
957
+ };
958
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
959
+ boolean: {
960
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
961
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
962
+ number: any;
963
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
964
+ numberOrNull: any;
965
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
966
+ string: any;
967
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
968
+ stringOrNull: any;
969
+ boolean: any;
970
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
971
+ booleanOrNull: {
972
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
973
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
974
+ number: any;
975
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
976
+ numberOrNull: any;
977
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
978
+ string: any;
979
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
980
+ stringOrNull: any;
981
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
982
+ boolean: any;
983
+ booleanOrNull: any;
984
+ /** A raw condition for `where`, `having`, or `on`. */
985
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
986
+ /** A column Joist does not model, on a source that is in the query. */
987
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
988
+ };
989
+ /** A raw condition for `where`, `having`, or `on`. */
990
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
991
+ /** A column Joist does not model, on a source that is in the query. */
992
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
993
+ };
994
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
995
+ booleanOrNull: {
996
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
997
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
998
+ number: any;
999
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1000
+ numberOrNull: any;
1001
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1002
+ string: any;
1003
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1004
+ stringOrNull: any;
1005
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
1006
+ boolean: any;
1007
+ booleanOrNull: any;
1008
+ /** A raw condition for `where`, `having`, or `on`. */
1009
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1010
+ /** A column Joist does not model, on a source that is in the query. */
1011
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1012
+ };
1013
+ /** A raw condition for `where`, `having`, or `on`. */
1014
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1015
+ /** A column Joist does not model, on a source that is in the query. */
1016
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1017
+ };
1018
+ var numberOrNull: {
1019
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<number | null, never>;
1020
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1021
+ number: {
1022
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<number, never>;
1023
+ number: /*elided*/ any;
1024
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1025
+ numberOrNull: /*elided*/ any;
1026
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1027
+ string: {
1028
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<string, never>;
1029
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1030
+ number: /*elided*/ any;
1031
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1032
+ numberOrNull: /*elided*/ any;
1033
+ string: /*elided*/ any;
1034
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1035
+ stringOrNull: {
1036
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<string | null, never>;
1037
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1038
+ number: /*elided*/ any;
1039
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1040
+ numberOrNull: /*elided*/ any;
1041
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1042
+ string: /*elided*/ any;
1043
+ stringOrNull: /*elided*/ any;
1044
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
1045
+ boolean: {
1046
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
1047
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1048
+ number: /*elided*/ any;
1049
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1050
+ numberOrNull: /*elided*/ any;
1051
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1052
+ string: /*elided*/ any;
1053
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1054
+ stringOrNull: /*elided*/ any;
1055
+ boolean: /*elided*/ any;
1056
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
1057
+ booleanOrNull: {
1058
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
1059
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1060
+ number: /*elided*/ any;
1061
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1062
+ numberOrNull: /*elided*/ any;
1063
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1064
+ string: /*elided*/ any;
1065
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1066
+ stringOrNull: /*elided*/ any;
1067
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
1068
+ boolean: /*elided*/ any;
1069
+ booleanOrNull: /*elided*/ any;
1070
+ /** A raw condition for `where`, `having`, or `on`. */
1071
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1072
+ /** A column Joist does not model, on a source that is in the query. */
1073
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1074
+ };
1075
+ /** A raw condition for `where`, `having`, or `on`. */
1076
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1077
+ /** A column Joist does not model, on a source that is in the query. */
1078
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1079
+ };
1080
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
1081
+ booleanOrNull: {
1082
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
1083
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1084
+ number: any;
1085
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1086
+ numberOrNull: any;
1087
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1088
+ string: any;
1089
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1090
+ stringOrNull: any;
1091
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
1092
+ boolean: any;
1093
+ booleanOrNull: any;
1094
+ /** A raw condition for `where`, `having`, or `on`. */
1095
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1096
+ /** A column Joist does not model, on a source that is in the query. */
1097
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1098
+ };
1099
+ /** A raw condition for `where`, `having`, or `on`. */
1100
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1101
+ /** A column Joist does not model, on a source that is in the query. */
1102
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1103
+ };
1104
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
1105
+ boolean: {
1106
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
1107
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1108
+ number: any;
1109
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1110
+ numberOrNull: any;
1111
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1112
+ string: any;
1113
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1114
+ stringOrNull: any;
1115
+ boolean: any;
1116
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
1117
+ booleanOrNull: {
1118
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
1119
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1120
+ number: any;
1121
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1122
+ numberOrNull: any;
1123
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1124
+ string: any;
1125
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1126
+ stringOrNull: any;
1127
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
1128
+ boolean: any;
1129
+ booleanOrNull: any;
1130
+ /** A raw condition for `where`, `having`, or `on`. */
1131
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1132
+ /** A column Joist does not model, on a source that is in the query. */
1133
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1134
+ };
1135
+ /** A raw condition for `where`, `having`, or `on`. */
1136
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1137
+ /** A column Joist does not model, on a source that is in the query. */
1138
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1139
+ };
1140
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
1141
+ booleanOrNull: {
1142
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
1143
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1144
+ number: any;
1145
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1146
+ numberOrNull: any;
1147
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1148
+ string: any;
1149
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1150
+ stringOrNull: any;
1151
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
1152
+ boolean: any;
1153
+ booleanOrNull: any;
1154
+ /** A raw condition for `where`, `having`, or `on`. */
1155
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1156
+ /** A column Joist does not model, on a source that is in the query. */
1157
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1158
+ };
1159
+ /** A raw condition for `where`, `having`, or `on`. */
1160
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1161
+ /** A column Joist does not model, on a source that is in the query. */
1162
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1163
+ };
1164
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1165
+ stringOrNull: {
1166
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<string | null, never>;
1167
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1168
+ number: any;
1169
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1170
+ numberOrNull: any;
1171
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1172
+ string: any;
1173
+ stringOrNull: any;
1174
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
1175
+ boolean: {
1176
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
1177
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1178
+ number: any;
1179
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1180
+ numberOrNull: any;
1181
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1182
+ string: any;
1183
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1184
+ stringOrNull: any;
1185
+ boolean: any;
1186
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
1187
+ booleanOrNull: {
1188
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
1189
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1190
+ number: any;
1191
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1192
+ numberOrNull: any;
1193
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1194
+ string: any;
1195
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1196
+ stringOrNull: any;
1197
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
1198
+ boolean: any;
1199
+ booleanOrNull: any;
1200
+ /** A raw condition for `where`, `having`, or `on`. */
1201
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1202
+ /** A column Joist does not model, on a source that is in the query. */
1203
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1204
+ };
1205
+ /** A raw condition for `where`, `having`, or `on`. */
1206
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1207
+ /** A column Joist does not model, on a source that is in the query. */
1208
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1209
+ };
1210
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
1211
+ booleanOrNull: {
1212
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
1213
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1214
+ number: any;
1215
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1216
+ numberOrNull: any;
1217
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1218
+ string: any;
1219
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1220
+ stringOrNull: any;
1221
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
1222
+ boolean: any;
1223
+ booleanOrNull: any;
1224
+ /** A raw condition for `where`, `having`, or `on`. */
1225
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1226
+ /** A column Joist does not model, on a source that is in the query. */
1227
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1228
+ };
1229
+ /** A raw condition for `where`, `having`, or `on`. */
1230
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1231
+ /** A column Joist does not model, on a source that is in the query. */
1232
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1233
+ };
1234
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
1235
+ boolean: {
1236
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
1237
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1238
+ number: any;
1239
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1240
+ numberOrNull: any;
1241
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1242
+ string: any;
1243
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1244
+ stringOrNull: any;
1245
+ boolean: any;
1246
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
1247
+ booleanOrNull: {
1248
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
1249
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1250
+ number: any;
1251
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1252
+ numberOrNull: any;
1253
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1254
+ string: any;
1255
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1256
+ stringOrNull: any;
1257
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
1258
+ boolean: any;
1259
+ booleanOrNull: any;
1260
+ /** A raw condition for `where`, `having`, or `on`. */
1261
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1262
+ /** A column Joist does not model, on a source that is in the query. */
1263
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1264
+ };
1265
+ /** A raw condition for `where`, `having`, or `on`. */
1266
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1267
+ /** A column Joist does not model, on a source that is in the query. */
1268
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1269
+ };
1270
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
1271
+ booleanOrNull: {
1272
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
1273
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1274
+ number: any;
1275
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1276
+ numberOrNull: any;
1277
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1278
+ string: any;
1279
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1280
+ stringOrNull: any;
1281
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
1282
+ boolean: any;
1283
+ booleanOrNull: any;
1284
+ /** A raw condition for `where`, `having`, or `on`. */
1285
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1286
+ /** A column Joist does not model, on a source that is in the query. */
1287
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1288
+ };
1289
+ /** A raw condition for `where`, `having`, or `on`. */
1290
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1291
+ /** A column Joist does not model, on a source that is in the query. */
1292
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1293
+ };
1294
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1295
+ numberOrNull: /*elided*/ any;
1296
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1297
+ string: {
1298
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<string, never>;
1299
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1300
+ number: any;
1301
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1302
+ numberOrNull: any;
1303
+ string: any;
1304
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1305
+ stringOrNull: {
1306
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<string | null, never>;
1307
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1308
+ number: any;
1309
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1310
+ numberOrNull: any;
1311
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1312
+ string: any;
1313
+ stringOrNull: any;
1314
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
1315
+ boolean: {
1316
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
1317
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1318
+ number: any;
1319
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1320
+ numberOrNull: any;
1321
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1322
+ string: any;
1323
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1324
+ stringOrNull: any;
1325
+ boolean: any;
1326
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
1327
+ booleanOrNull: {
1328
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
1329
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1330
+ number: any;
1331
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1332
+ numberOrNull: any;
1333
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1334
+ string: any;
1335
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1336
+ stringOrNull: any;
1337
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
1338
+ boolean: any;
1339
+ booleanOrNull: any;
1340
+ /** A raw condition for `where`, `having`, or `on`. */
1341
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1342
+ /** A column Joist does not model, on a source that is in the query. */
1343
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1344
+ };
1345
+ /** A raw condition for `where`, `having`, or `on`. */
1346
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1347
+ /** A column Joist does not model, on a source that is in the query. */
1348
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1349
+ };
1350
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
1351
+ booleanOrNull: {
1352
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
1353
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1354
+ number: any;
1355
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1356
+ numberOrNull: any;
1357
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1358
+ string: any;
1359
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1360
+ stringOrNull: any;
1361
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
1362
+ boolean: any;
1363
+ booleanOrNull: any;
1364
+ /** A raw condition for `where`, `having`, or `on`. */
1365
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1366
+ /** A column Joist does not model, on a source that is in the query. */
1367
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1368
+ };
1369
+ /** A raw condition for `where`, `having`, or `on`. */
1370
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1371
+ /** A column Joist does not model, on a source that is in the query. */
1372
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1373
+ };
1374
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
1375
+ boolean: {
1376
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
1377
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1378
+ number: any;
1379
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1380
+ numberOrNull: any;
1381
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1382
+ string: any;
1383
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1384
+ stringOrNull: any;
1385
+ boolean: any;
1386
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
1387
+ booleanOrNull: {
1388
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
1389
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1390
+ number: any;
1391
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1392
+ numberOrNull: any;
1393
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1394
+ string: any;
1395
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1396
+ stringOrNull: any;
1397
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
1398
+ boolean: any;
1399
+ booleanOrNull: any;
1400
+ /** A raw condition for `where`, `having`, or `on`. */
1401
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1402
+ /** A column Joist does not model, on a source that is in the query. */
1403
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1404
+ };
1405
+ /** A raw condition for `where`, `having`, or `on`. */
1406
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1407
+ /** A column Joist does not model, on a source that is in the query. */
1408
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1409
+ };
1410
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
1411
+ booleanOrNull: {
1412
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
1413
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1414
+ number: any;
1415
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1416
+ numberOrNull: any;
1417
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1418
+ string: any;
1419
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1420
+ stringOrNull: any;
1421
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
1422
+ boolean: any;
1423
+ booleanOrNull: any;
1424
+ /** A raw condition for `where`, `having`, or `on`. */
1425
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1426
+ /** A column Joist does not model, on a source that is in the query. */
1427
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1428
+ };
1429
+ /** A raw condition for `where`, `having`, or `on`. */
1430
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1431
+ /** A column Joist does not model, on a source that is in the query. */
1432
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1433
+ };
1434
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1435
+ stringOrNull: {
1436
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<string | null, never>;
1437
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1438
+ number: any;
1439
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1440
+ numberOrNull: any;
1441
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1442
+ string: any;
1443
+ stringOrNull: any;
1444
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
1445
+ boolean: {
1446
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
1447
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1448
+ number: any;
1449
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1450
+ numberOrNull: any;
1451
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1452
+ string: any;
1453
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1454
+ stringOrNull: any;
1455
+ boolean: any;
1456
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
1457
+ booleanOrNull: {
1458
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
1459
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1460
+ number: any;
1461
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1462
+ numberOrNull: any;
1463
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1464
+ string: any;
1465
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1466
+ stringOrNull: any;
1467
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
1468
+ boolean: any;
1469
+ booleanOrNull: any;
1470
+ /** A raw condition for `where`, `having`, or `on`. */
1471
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1472
+ /** A column Joist does not model, on a source that is in the query. */
1473
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1474
+ };
1475
+ /** A raw condition for `where`, `having`, or `on`. */
1476
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1477
+ /** A column Joist does not model, on a source that is in the query. */
1478
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1479
+ };
1480
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
1481
+ booleanOrNull: {
1482
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
1483
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1484
+ number: any;
1485
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1486
+ numberOrNull: any;
1487
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1488
+ string: any;
1489
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1490
+ stringOrNull: any;
1491
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
1492
+ boolean: any;
1493
+ booleanOrNull: any;
1494
+ /** A raw condition for `where`, `having`, or `on`. */
1495
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1496
+ /** A column Joist does not model, on a source that is in the query. */
1497
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1498
+ };
1499
+ /** A raw condition for `where`, `having`, or `on`. */
1500
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1501
+ /** A column Joist does not model, on a source that is in the query. */
1502
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1503
+ };
1504
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
1505
+ boolean: {
1506
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
1507
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1508
+ number: any;
1509
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1510
+ numberOrNull: any;
1511
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1512
+ string: any;
1513
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1514
+ stringOrNull: any;
1515
+ boolean: any;
1516
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
1517
+ booleanOrNull: {
1518
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
1519
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1520
+ number: any;
1521
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1522
+ numberOrNull: any;
1523
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1524
+ string: any;
1525
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1526
+ stringOrNull: any;
1527
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
1528
+ boolean: any;
1529
+ booleanOrNull: any;
1530
+ /** A raw condition for `where`, `having`, or `on`. */
1531
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1532
+ /** A column Joist does not model, on a source that is in the query. */
1533
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1534
+ };
1535
+ /** A raw condition for `where`, `having`, or `on`. */
1536
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1537
+ /** A column Joist does not model, on a source that is in the query. */
1538
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1539
+ };
1540
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
1541
+ booleanOrNull: {
1542
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
1543
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1544
+ number: any;
1545
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1546
+ numberOrNull: any;
1547
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1548
+ string: any;
1549
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1550
+ stringOrNull: any;
1551
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
1552
+ boolean: any;
1553
+ booleanOrNull: any;
1554
+ /** A raw condition for `where`, `having`, or `on`. */
1555
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1556
+ /** A column Joist does not model, on a source that is in the query. */
1557
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1558
+ };
1559
+ /** A raw condition for `where`, `having`, or `on`. */
1560
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1561
+ /** A column Joist does not model, on a source that is in the query. */
1562
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1563
+ };
1564
+ var string: {
1565
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<string, never>;
1566
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1567
+ number: {
1568
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<number, never>;
1569
+ number: /*elided*/ any;
1570
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1571
+ numberOrNull: {
1572
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<number | null, never>;
1573
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1574
+ number: /*elided*/ any;
1575
+ numberOrNull: /*elided*/ any;
1576
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1577
+ string: /*elided*/ any;
1578
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1579
+ stringOrNull: {
1580
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<string | null, never>;
1581
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1582
+ number: /*elided*/ any;
1583
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1584
+ numberOrNull: /*elided*/ any;
1585
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1586
+ string: /*elided*/ any;
1587
+ stringOrNull: /*elided*/ any;
1588
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
1589
+ boolean: {
1590
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
1591
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1592
+ number: /*elided*/ any;
1593
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1594
+ numberOrNull: /*elided*/ any;
1595
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1596
+ string: /*elided*/ any;
1597
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1598
+ stringOrNull: /*elided*/ any;
1599
+ boolean: /*elided*/ any;
1600
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
1601
+ booleanOrNull: {
1602
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
1603
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1604
+ number: /*elided*/ any;
1605
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1606
+ numberOrNull: /*elided*/ any;
1607
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1608
+ string: /*elided*/ any;
1609
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1610
+ stringOrNull: /*elided*/ any;
1611
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
1612
+ boolean: /*elided*/ any;
1613
+ booleanOrNull: /*elided*/ any;
1614
+ /** A raw condition for `where`, `having`, or `on`. */
1615
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1616
+ /** A column Joist does not model, on a source that is in the query. */
1617
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1618
+ };
1619
+ /** A raw condition for `where`, `having`, or `on`. */
1620
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1621
+ /** A column Joist does not model, on a source that is in the query. */
1622
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1623
+ };
1624
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
1625
+ booleanOrNull: {
1626
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
1627
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1628
+ number: any;
1629
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1630
+ numberOrNull: any;
1631
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1632
+ string: any;
1633
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1634
+ stringOrNull: any;
1635
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
1636
+ boolean: any;
1637
+ booleanOrNull: any;
1638
+ /** A raw condition for `where`, `having`, or `on`. */
1639
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1640
+ /** A column Joist does not model, on a source that is in the query. */
1641
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1642
+ };
1643
+ /** A raw condition for `where`, `having`, or `on`. */
1644
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1645
+ /** A column Joist does not model, on a source that is in the query. */
1646
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1647
+ };
1648
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
1649
+ boolean: {
1650
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
1651
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1652
+ number: any;
1653
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1654
+ numberOrNull: any;
1655
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1656
+ string: any;
1657
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1658
+ stringOrNull: any;
1659
+ boolean: any;
1660
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
1661
+ booleanOrNull: {
1662
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
1663
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1664
+ number: any;
1665
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1666
+ numberOrNull: any;
1667
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1668
+ string: any;
1669
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1670
+ stringOrNull: any;
1671
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
1672
+ boolean: any;
1673
+ booleanOrNull: any;
1674
+ /** A raw condition for `where`, `having`, or `on`. */
1675
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1676
+ /** A column Joist does not model, on a source that is in the query. */
1677
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1678
+ };
1679
+ /** A raw condition for `where`, `having`, or `on`. */
1680
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1681
+ /** A column Joist does not model, on a source that is in the query. */
1682
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1683
+ };
1684
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
1685
+ booleanOrNull: {
1686
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
1687
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1688
+ number: any;
1689
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1690
+ numberOrNull: any;
1691
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1692
+ string: any;
1693
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1694
+ stringOrNull: any;
1695
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
1696
+ boolean: any;
1697
+ booleanOrNull: any;
1698
+ /** A raw condition for `where`, `having`, or `on`. */
1699
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1700
+ /** A column Joist does not model, on a source that is in the query. */
1701
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1702
+ };
1703
+ /** A raw condition for `where`, `having`, or `on`. */
1704
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1705
+ /** A column Joist does not model, on a source that is in the query. */
1706
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1707
+ };
1708
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1709
+ string: /*elided*/ any;
1710
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1711
+ stringOrNull: {
1712
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<string | null, never>;
1713
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1714
+ number: any;
1715
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1716
+ numberOrNull: any;
1717
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1718
+ string: any;
1719
+ stringOrNull: any;
1720
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
1721
+ boolean: {
1722
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
1723
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1724
+ number: any;
1725
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1726
+ numberOrNull: any;
1727
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1728
+ string: any;
1729
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1730
+ stringOrNull: any;
1731
+ boolean: any;
1732
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
1733
+ booleanOrNull: {
1734
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
1735
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1736
+ number: any;
1737
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1738
+ numberOrNull: any;
1739
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1740
+ string: any;
1741
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1742
+ stringOrNull: any;
1743
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
1744
+ boolean: any;
1745
+ booleanOrNull: any;
1746
+ /** A raw condition for `where`, `having`, or `on`. */
1747
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1748
+ /** A column Joist does not model, on a source that is in the query. */
1749
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1750
+ };
1751
+ /** A raw condition for `where`, `having`, or `on`. */
1752
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1753
+ /** A column Joist does not model, on a source that is in the query. */
1754
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1755
+ };
1756
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
1757
+ booleanOrNull: {
1758
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
1759
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1760
+ number: any;
1761
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1762
+ numberOrNull: any;
1763
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1764
+ string: any;
1765
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1766
+ stringOrNull: any;
1767
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
1768
+ boolean: any;
1769
+ booleanOrNull: any;
1770
+ /** A raw condition for `where`, `having`, or `on`. */
1771
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1772
+ /** A column Joist does not model, on a source that is in the query. */
1773
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1774
+ };
1775
+ /** A raw condition for `where`, `having`, or `on`. */
1776
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1777
+ /** A column Joist does not model, on a source that is in the query. */
1778
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1779
+ };
1780
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
1781
+ boolean: {
1782
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
1783
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1784
+ number: any;
1785
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1786
+ numberOrNull: any;
1787
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1788
+ string: any;
1789
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1790
+ stringOrNull: any;
1791
+ boolean: any;
1792
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
1793
+ booleanOrNull: {
1794
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
1795
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1796
+ number: any;
1797
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1798
+ numberOrNull: any;
1799
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1800
+ string: any;
1801
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1802
+ stringOrNull: any;
1803
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
1804
+ boolean: any;
1805
+ booleanOrNull: any;
1806
+ /** A raw condition for `where`, `having`, or `on`. */
1807
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1808
+ /** A column Joist does not model, on a source that is in the query. */
1809
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1810
+ };
1811
+ /** A raw condition for `where`, `having`, or `on`. */
1812
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1813
+ /** A column Joist does not model, on a source that is in the query. */
1814
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1815
+ };
1816
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
1817
+ booleanOrNull: {
1818
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
1819
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1820
+ number: any;
1821
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1822
+ numberOrNull: any;
1823
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1824
+ string: any;
1825
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1826
+ stringOrNull: any;
1827
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
1828
+ boolean: any;
1829
+ booleanOrNull: any;
1830
+ /** A raw condition for `where`, `having`, or `on`. */
1831
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1832
+ /** A column Joist does not model, on a source that is in the query. */
1833
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1834
+ };
1835
+ /** A raw condition for `where`, `having`, or `on`. */
1836
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1837
+ /** A column Joist does not model, on a source that is in the query. */
1838
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1839
+ };
1840
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1841
+ numberOrNull: {
1842
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<number | null, never>;
1843
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1844
+ number: any;
1845
+ numberOrNull: any;
1846
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1847
+ string: any;
1848
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1849
+ stringOrNull: {
1850
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<string | null, never>;
1851
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1852
+ number: any;
1853
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1854
+ numberOrNull: any;
1855
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1856
+ string: any;
1857
+ stringOrNull: any;
1858
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
1859
+ boolean: {
1860
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
1861
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1862
+ number: any;
1863
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1864
+ numberOrNull: any;
1865
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1866
+ string: any;
1867
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1868
+ stringOrNull: any;
1869
+ boolean: any;
1870
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
1871
+ booleanOrNull: {
1872
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
1873
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1874
+ number: any;
1875
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1876
+ numberOrNull: any;
1877
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1878
+ string: any;
1879
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1880
+ stringOrNull: any;
1881
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
1882
+ boolean: any;
1883
+ booleanOrNull: any;
1884
+ /** A raw condition for `where`, `having`, or `on`. */
1885
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1886
+ /** A column Joist does not model, on a source that is in the query. */
1887
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1888
+ };
1889
+ /** A raw condition for `where`, `having`, or `on`. */
1890
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1891
+ /** A column Joist does not model, on a source that is in the query. */
1892
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1893
+ };
1894
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
1895
+ booleanOrNull: {
1896
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
1897
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1898
+ number: any;
1899
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1900
+ numberOrNull: any;
1901
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1902
+ string: any;
1903
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1904
+ stringOrNull: any;
1905
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
1906
+ boolean: any;
1907
+ booleanOrNull: any;
1908
+ /** A raw condition for `where`, `having`, or `on`. */
1909
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1910
+ /** A column Joist does not model, on a source that is in the query. */
1911
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1912
+ };
1913
+ /** A raw condition for `where`, `having`, or `on`. */
1914
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1915
+ /** A column Joist does not model, on a source that is in the query. */
1916
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1917
+ };
1918
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
1919
+ boolean: {
1920
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
1921
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1922
+ number: any;
1923
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1924
+ numberOrNull: any;
1925
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1926
+ string: any;
1927
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1928
+ stringOrNull: any;
1929
+ boolean: any;
1930
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
1931
+ booleanOrNull: {
1932
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
1933
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1934
+ number: any;
1935
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1936
+ numberOrNull: any;
1937
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1938
+ string: any;
1939
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1940
+ stringOrNull: any;
1941
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
1942
+ boolean: any;
1943
+ booleanOrNull: any;
1944
+ /** A raw condition for `where`, `having`, or `on`. */
1945
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1946
+ /** A column Joist does not model, on a source that is in the query. */
1947
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1948
+ };
1949
+ /** A raw condition for `where`, `having`, or `on`. */
1950
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1951
+ /** A column Joist does not model, on a source that is in the query. */
1952
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1953
+ };
1954
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
1955
+ booleanOrNull: {
1956
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
1957
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1958
+ number: any;
1959
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1960
+ numberOrNull: any;
1961
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1962
+ string: any;
1963
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1964
+ stringOrNull: any;
1965
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
1966
+ boolean: any;
1967
+ booleanOrNull: any;
1968
+ /** A raw condition for `where`, `having`, or `on`. */
1969
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1970
+ /** A column Joist does not model, on a source that is in the query. */
1971
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1972
+ };
1973
+ /** A raw condition for `where`, `having`, or `on`. */
1974
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
1975
+ /** A column Joist does not model, on a source that is in the query. */
1976
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
1977
+ };
1978
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1979
+ string: /*elided*/ any;
1980
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
1981
+ stringOrNull: {
1982
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<string | null, never>;
1983
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1984
+ number: any;
1985
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1986
+ numberOrNull: any;
1987
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1988
+ string: any;
1989
+ stringOrNull: any;
1990
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
1991
+ boolean: {
1992
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
1993
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
1994
+ number: any;
1995
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
1996
+ numberOrNull: any;
1997
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
1998
+ string: any;
1999
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2000
+ stringOrNull: any;
2001
+ boolean: any;
2002
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
2003
+ booleanOrNull: {
2004
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
2005
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2006
+ number: any;
2007
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2008
+ numberOrNull: any;
2009
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2010
+ string: any;
2011
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2012
+ stringOrNull: any;
2013
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2014
+ boolean: any;
2015
+ booleanOrNull: any;
2016
+ /** A raw condition for `where`, `having`, or `on`. */
2017
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2018
+ /** A column Joist does not model, on a source that is in the query. */
2019
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2020
+ };
2021
+ /** A raw condition for `where`, `having`, or `on`. */
2022
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2023
+ /** A column Joist does not model, on a source that is in the query. */
2024
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2025
+ };
2026
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
2027
+ booleanOrNull: {
2028
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
2029
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2030
+ number: any;
2031
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2032
+ numberOrNull: any;
2033
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2034
+ string: any;
2035
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2036
+ stringOrNull: any;
2037
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2038
+ boolean: any;
2039
+ booleanOrNull: any;
2040
+ /** A raw condition for `where`, `having`, or `on`. */
2041
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2042
+ /** A column Joist does not model, on a source that is in the query. */
2043
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2044
+ };
2045
+ /** A raw condition for `where`, `having`, or `on`. */
2046
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2047
+ /** A column Joist does not model, on a source that is in the query. */
2048
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2049
+ };
2050
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2051
+ boolean: {
2052
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
2053
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2054
+ number: any;
2055
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2056
+ numberOrNull: any;
2057
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2058
+ string: any;
2059
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2060
+ stringOrNull: any;
2061
+ boolean: any;
2062
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
2063
+ booleanOrNull: {
2064
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
2065
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2066
+ number: any;
2067
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2068
+ numberOrNull: any;
2069
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2070
+ string: any;
2071
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2072
+ stringOrNull: any;
2073
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2074
+ boolean: any;
2075
+ booleanOrNull: any;
2076
+ /** A raw condition for `where`, `having`, or `on`. */
2077
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2078
+ /** A column Joist does not model, on a source that is in the query. */
2079
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2080
+ };
2081
+ /** A raw condition for `where`, `having`, or `on`. */
2082
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2083
+ /** A column Joist does not model, on a source that is in the query. */
2084
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2085
+ };
2086
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
2087
+ booleanOrNull: {
2088
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
2089
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2090
+ number: any;
2091
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2092
+ numberOrNull: any;
2093
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2094
+ string: any;
2095
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2096
+ stringOrNull: any;
2097
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2098
+ boolean: any;
2099
+ booleanOrNull: any;
2100
+ /** A raw condition for `where`, `having`, or `on`. */
2101
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2102
+ /** A column Joist does not model, on a source that is in the query. */
2103
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2104
+ };
2105
+ /** A raw condition for `where`, `having`, or `on`. */
2106
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2107
+ /** A column Joist does not model, on a source that is in the query. */
2108
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2109
+ };
2110
+ var stringOrNull: {
2111
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<string | null, never>;
2112
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2113
+ number: {
2114
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<number, never>;
2115
+ number: /*elided*/ any;
2116
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2117
+ numberOrNull: {
2118
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<number | null, never>;
2119
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2120
+ number: /*elided*/ any;
2121
+ numberOrNull: /*elided*/ any;
2122
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2123
+ string: {
2124
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<string, never>;
2125
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2126
+ number: /*elided*/ any;
2127
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2128
+ numberOrNull: /*elided*/ any;
2129
+ string: /*elided*/ any;
2130
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2131
+ stringOrNull: /*elided*/ any;
2132
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2133
+ boolean: {
2134
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
2135
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2136
+ number: /*elided*/ any;
2137
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2138
+ numberOrNull: /*elided*/ any;
2139
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2140
+ string: /*elided*/ any;
2141
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2142
+ stringOrNull: /*elided*/ any;
2143
+ boolean: /*elided*/ any;
2144
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
2145
+ booleanOrNull: {
2146
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
2147
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2148
+ number: /*elided*/ any;
2149
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2150
+ numberOrNull: /*elided*/ any;
2151
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2152
+ string: /*elided*/ any;
2153
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2154
+ stringOrNull: /*elided*/ any;
2155
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2156
+ boolean: /*elided*/ any;
2157
+ booleanOrNull: /*elided*/ any;
2158
+ /** A raw condition for `where`, `having`, or `on`. */
2159
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2160
+ /** A column Joist does not model, on a source that is in the query. */
2161
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2162
+ };
2163
+ /** A raw condition for `where`, `having`, or `on`. */
2164
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2165
+ /** A column Joist does not model, on a source that is in the query. */
2166
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2167
+ };
2168
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
2169
+ booleanOrNull: {
2170
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
2171
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2172
+ number: any;
2173
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2174
+ numberOrNull: any;
2175
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2176
+ string: any;
2177
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2178
+ stringOrNull: any;
2179
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2180
+ boolean: any;
2181
+ booleanOrNull: any;
2182
+ /** A raw condition for `where`, `having`, or `on`. */
2183
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2184
+ /** A column Joist does not model, on a source that is in the query. */
2185
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2186
+ };
2187
+ /** A raw condition for `where`, `having`, or `on`. */
2188
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2189
+ /** A column Joist does not model, on a source that is in the query. */
2190
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2191
+ };
2192
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2193
+ stringOrNull: /*elided*/ any;
2194
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2195
+ boolean: {
2196
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
2197
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2198
+ number: any;
2199
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2200
+ numberOrNull: any;
2201
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2202
+ string: any;
2203
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2204
+ stringOrNull: any;
2205
+ boolean: any;
2206
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
2207
+ booleanOrNull: {
2208
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
2209
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2210
+ number: any;
2211
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2212
+ numberOrNull: any;
2213
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2214
+ string: any;
2215
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2216
+ stringOrNull: any;
2217
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2218
+ boolean: any;
2219
+ booleanOrNull: any;
2220
+ /** A raw condition for `where`, `having`, or `on`. */
2221
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2222
+ /** A column Joist does not model, on a source that is in the query. */
2223
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2224
+ };
2225
+ /** A raw condition for `where`, `having`, or `on`. */
2226
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2227
+ /** A column Joist does not model, on a source that is in the query. */
2228
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2229
+ };
2230
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
2231
+ booleanOrNull: {
2232
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
2233
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2234
+ number: any;
2235
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2236
+ numberOrNull: any;
2237
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2238
+ string: any;
2239
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2240
+ stringOrNull: any;
2241
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2242
+ boolean: any;
2243
+ booleanOrNull: any;
2244
+ /** A raw condition for `where`, `having`, or `on`. */
2245
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2246
+ /** A column Joist does not model, on a source that is in the query. */
2247
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2248
+ };
2249
+ /** A raw condition for `where`, `having`, or `on`. */
2250
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2251
+ /** A column Joist does not model, on a source that is in the query. */
2252
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2253
+ };
2254
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2255
+ string: {
2256
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<string, never>;
2257
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2258
+ number: any;
2259
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2260
+ numberOrNull: any;
2261
+ string: any;
2262
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2263
+ stringOrNull: any;
2264
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2265
+ boolean: {
2266
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
2267
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2268
+ number: any;
2269
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2270
+ numberOrNull: any;
2271
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2272
+ string: any;
2273
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2274
+ stringOrNull: any;
2275
+ boolean: any;
2276
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
2277
+ booleanOrNull: {
2278
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
2279
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2280
+ number: any;
2281
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2282
+ numberOrNull: any;
2283
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2284
+ string: any;
2285
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2286
+ stringOrNull: any;
2287
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2288
+ boolean: any;
2289
+ booleanOrNull: any;
2290
+ /** A raw condition for `where`, `having`, or `on`. */
2291
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2292
+ /** A column Joist does not model, on a source that is in the query. */
2293
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2294
+ };
2295
+ /** A raw condition for `where`, `having`, or `on`. */
2296
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2297
+ /** A column Joist does not model, on a source that is in the query. */
2298
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2299
+ };
2300
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
2301
+ booleanOrNull: {
2302
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
2303
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2304
+ number: any;
2305
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2306
+ numberOrNull: any;
2307
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2308
+ string: any;
2309
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2310
+ stringOrNull: any;
2311
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2312
+ boolean: any;
2313
+ booleanOrNull: any;
2314
+ /** A raw condition for `where`, `having`, or `on`. */
2315
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2316
+ /** A column Joist does not model, on a source that is in the query. */
2317
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2318
+ };
2319
+ /** A raw condition for `where`, `having`, or `on`. */
2320
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2321
+ /** A column Joist does not model, on a source that is in the query. */
2322
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2323
+ };
2324
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2325
+ stringOrNull: /*elided*/ any;
2326
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2327
+ boolean: {
2328
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
2329
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2330
+ number: any;
2331
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2332
+ numberOrNull: any;
2333
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2334
+ string: any;
2335
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2336
+ stringOrNull: any;
2337
+ boolean: any;
2338
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
2339
+ booleanOrNull: {
2340
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
2341
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2342
+ number: any;
2343
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2344
+ numberOrNull: any;
2345
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2346
+ string: any;
2347
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2348
+ stringOrNull: any;
2349
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2350
+ boolean: any;
2351
+ booleanOrNull: any;
2352
+ /** A raw condition for `where`, `having`, or `on`. */
2353
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2354
+ /** A column Joist does not model, on a source that is in the query. */
2355
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2356
+ };
2357
+ /** A raw condition for `where`, `having`, or `on`. */
2358
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2359
+ /** A column Joist does not model, on a source that is in the query. */
2360
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2361
+ };
2362
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
2363
+ booleanOrNull: {
2364
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
2365
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2366
+ number: any;
2367
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2368
+ numberOrNull: any;
2369
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2370
+ string: any;
2371
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2372
+ stringOrNull: any;
2373
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2374
+ boolean: any;
2375
+ booleanOrNull: any;
2376
+ /** A raw condition for `where`, `having`, or `on`. */
2377
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2378
+ /** A column Joist does not model, on a source that is in the query. */
2379
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2380
+ };
2381
+ /** A raw condition for `where`, `having`, or `on`. */
2382
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2383
+ /** A column Joist does not model, on a source that is in the query. */
2384
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2385
+ };
2386
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2387
+ numberOrNull: {
2388
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<number | null, never>;
2389
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2390
+ number: any;
2391
+ numberOrNull: any;
2392
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2393
+ string: {
2394
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<string, never>;
2395
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2396
+ number: any;
2397
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2398
+ numberOrNull: any;
2399
+ string: any;
2400
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2401
+ stringOrNull: any;
2402
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2403
+ boolean: {
2404
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
2405
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2406
+ number: any;
2407
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2408
+ numberOrNull: any;
2409
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2410
+ string: any;
2411
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2412
+ stringOrNull: any;
2413
+ boolean: any;
2414
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
2415
+ booleanOrNull: {
2416
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
2417
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2418
+ number: any;
2419
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2420
+ numberOrNull: any;
2421
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2422
+ string: any;
2423
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2424
+ stringOrNull: any;
2425
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2426
+ boolean: any;
2427
+ booleanOrNull: any;
2428
+ /** A raw condition for `where`, `having`, or `on`. */
2429
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2430
+ /** A column Joist does not model, on a source that is in the query. */
2431
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2432
+ };
2433
+ /** A raw condition for `where`, `having`, or `on`. */
2434
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2435
+ /** A column Joist does not model, on a source that is in the query. */
2436
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2437
+ };
2438
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
2439
+ booleanOrNull: {
2440
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
2441
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2442
+ number: any;
2443
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2444
+ numberOrNull: any;
2445
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2446
+ string: any;
2447
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2448
+ stringOrNull: any;
2449
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2450
+ boolean: any;
2451
+ booleanOrNull: any;
2452
+ /** A raw condition for `where`, `having`, or `on`. */
2453
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2454
+ /** A column Joist does not model, on a source that is in the query. */
2455
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2456
+ };
2457
+ /** A raw condition for `where`, `having`, or `on`. */
2458
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2459
+ /** A column Joist does not model, on a source that is in the query. */
2460
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2461
+ };
2462
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2463
+ stringOrNull: any;
2464
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2465
+ boolean: {
2466
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
2467
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2468
+ number: any;
2469
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2470
+ numberOrNull: any;
2471
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2472
+ string: any;
2473
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2474
+ stringOrNull: any;
2475
+ boolean: any;
2476
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
2477
+ booleanOrNull: {
2478
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
2479
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2480
+ number: any;
2481
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2482
+ numberOrNull: any;
2483
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2484
+ string: any;
2485
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2486
+ stringOrNull: any;
2487
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2488
+ boolean: any;
2489
+ booleanOrNull: any;
2490
+ /** A raw condition for `where`, `having`, or `on`. */
2491
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2492
+ /** A column Joist does not model, on a source that is in the query. */
2493
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2494
+ };
2495
+ /** A raw condition for `where`, `having`, or `on`. */
2496
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2497
+ /** A column Joist does not model, on a source that is in the query. */
2498
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2499
+ };
2500
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
2501
+ booleanOrNull: {
2502
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
2503
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2504
+ number: any;
2505
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2506
+ numberOrNull: any;
2507
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2508
+ string: any;
2509
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2510
+ stringOrNull: any;
2511
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2512
+ boolean: any;
2513
+ booleanOrNull: any;
2514
+ /** A raw condition for `where`, `having`, or `on`. */
2515
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2516
+ /** A column Joist does not model, on a source that is in the query. */
2517
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2518
+ };
2519
+ /** A raw condition for `where`, `having`, or `on`. */
2520
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2521
+ /** A column Joist does not model, on a source that is in the query. */
2522
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2523
+ };
2524
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2525
+ string: {
2526
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<string, never>;
2527
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2528
+ number: any;
2529
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2530
+ numberOrNull: any;
2531
+ string: any;
2532
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2533
+ stringOrNull: any;
2534
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2535
+ boolean: {
2536
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
2537
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2538
+ number: any;
2539
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2540
+ numberOrNull: any;
2541
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2542
+ string: any;
2543
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2544
+ stringOrNull: any;
2545
+ boolean: any;
2546
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
2547
+ booleanOrNull: {
2548
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
2549
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2550
+ number: any;
2551
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2552
+ numberOrNull: any;
2553
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2554
+ string: any;
2555
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2556
+ stringOrNull: any;
2557
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2558
+ boolean: any;
2559
+ booleanOrNull: any;
2560
+ /** A raw condition for `where`, `having`, or `on`. */
2561
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2562
+ /** A column Joist does not model, on a source that is in the query. */
2563
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2564
+ };
2565
+ /** A raw condition for `where`, `having`, or `on`. */
2566
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2567
+ /** A column Joist does not model, on a source that is in the query. */
2568
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2569
+ };
2570
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
2571
+ booleanOrNull: {
2572
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
2573
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2574
+ number: any;
2575
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2576
+ numberOrNull: any;
2577
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2578
+ string: any;
2579
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2580
+ stringOrNull: any;
2581
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2582
+ boolean: any;
2583
+ booleanOrNull: any;
2584
+ /** A raw condition for `where`, `having`, or `on`. */
2585
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2586
+ /** A column Joist does not model, on a source that is in the query. */
2587
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2588
+ };
2589
+ /** A raw condition for `where`, `having`, or `on`. */
2590
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2591
+ /** A column Joist does not model, on a source that is in the query. */
2592
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2593
+ };
2594
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2595
+ stringOrNull: /*elided*/ any;
2596
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2597
+ boolean: {
2598
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
2599
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2600
+ number: any;
2601
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2602
+ numberOrNull: any;
2603
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2604
+ string: any;
2605
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2606
+ stringOrNull: any;
2607
+ boolean: any;
2608
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
2609
+ booleanOrNull: {
2610
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
2611
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2612
+ number: any;
2613
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2614
+ numberOrNull: any;
2615
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2616
+ string: any;
2617
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2618
+ stringOrNull: any;
2619
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2620
+ boolean: any;
2621
+ booleanOrNull: any;
2622
+ /** A raw condition for `where`, `having`, or `on`. */
2623
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2624
+ /** A column Joist does not model, on a source that is in the query. */
2625
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2626
+ };
2627
+ /** A raw condition for `where`, `having`, or `on`. */
2628
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2629
+ /** A column Joist does not model, on a source that is in the query. */
2630
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2631
+ };
2632
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
2633
+ booleanOrNull: {
2634
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
2635
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2636
+ number: any;
2637
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2638
+ numberOrNull: any;
2639
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2640
+ string: any;
2641
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2642
+ stringOrNull: any;
2643
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2644
+ boolean: any;
2645
+ booleanOrNull: any;
2646
+ /** A raw condition for `where`, `having`, or `on`. */
2647
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2648
+ /** A column Joist does not model, on a source that is in the query. */
2649
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2650
+ };
2651
+ /** A raw condition for `where`, `having`, or `on`. */
2652
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2653
+ /** A column Joist does not model, on a source that is in the query. */
2654
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2655
+ };
2656
+ var boolean: {
2657
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
2658
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2659
+ number: {
2660
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<number, never>;
2661
+ number: /*elided*/ any;
2662
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2663
+ numberOrNull: {
2664
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<number | null, never>;
2665
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2666
+ number: /*elided*/ any;
2667
+ numberOrNull: /*elided*/ any;
2668
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2669
+ string: {
2670
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<string, never>;
2671
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2672
+ number: /*elided*/ any;
2673
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2674
+ numberOrNull: /*elided*/ any;
2675
+ string: /*elided*/ any;
2676
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2677
+ stringOrNull: {
2678
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<string | null, never>;
2679
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2680
+ number: /*elided*/ any;
2681
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2682
+ numberOrNull: /*elided*/ any;
2683
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2684
+ string: /*elided*/ any;
2685
+ stringOrNull: /*elided*/ any;
2686
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2687
+ boolean: /*elided*/ any;
2688
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
2689
+ booleanOrNull: {
2690
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
2691
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2692
+ number: /*elided*/ any;
2693
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2694
+ numberOrNull: /*elided*/ any;
2695
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2696
+ string: /*elided*/ any;
2697
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2698
+ stringOrNull: /*elided*/ any;
2699
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2700
+ boolean: /*elided*/ any;
2701
+ booleanOrNull: /*elided*/ any;
2702
+ /** A raw condition for `where`, `having`, or `on`. */
2703
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2704
+ /** A column Joist does not model, on a source that is in the query. */
2705
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2706
+ };
2707
+ /** A raw condition for `where`, `having`, or `on`. */
2708
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2709
+ /** A column Joist does not model, on a source that is in the query. */
2710
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2711
+ };
2712
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2713
+ boolean: /*elided*/ any;
2714
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
2715
+ booleanOrNull: {
2716
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
2717
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2718
+ number: any;
2719
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2720
+ numberOrNull: any;
2721
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2722
+ string: any;
2723
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2724
+ stringOrNull: any;
2725
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2726
+ boolean: any;
2727
+ booleanOrNull: any;
2728
+ /** A raw condition for `where`, `having`, or `on`. */
2729
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2730
+ /** A column Joist does not model, on a source that is in the query. */
2731
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2732
+ };
2733
+ /** A raw condition for `where`, `having`, or `on`. */
2734
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2735
+ /** A column Joist does not model, on a source that is in the query. */
2736
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2737
+ };
2738
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2739
+ stringOrNull: {
2740
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<string | null, never>;
2741
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2742
+ number: any;
2743
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2744
+ numberOrNull: any;
2745
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2746
+ string: any;
2747
+ stringOrNull: any;
2748
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2749
+ boolean: any;
2750
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
2751
+ booleanOrNull: {
2752
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
2753
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2754
+ number: any;
2755
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2756
+ numberOrNull: any;
2757
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2758
+ string: any;
2759
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2760
+ stringOrNull: any;
2761
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2762
+ boolean: any;
2763
+ booleanOrNull: any;
2764
+ /** A raw condition for `where`, `having`, or `on`. */
2765
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2766
+ /** A column Joist does not model, on a source that is in the query. */
2767
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2768
+ };
2769
+ /** A raw condition for `where`, `having`, or `on`. */
2770
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2771
+ /** A column Joist does not model, on a source that is in the query. */
2772
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2773
+ };
2774
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2775
+ boolean: /*elided*/ any;
2776
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
2777
+ booleanOrNull: {
2778
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
2779
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2780
+ number: any;
2781
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2782
+ numberOrNull: any;
2783
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2784
+ string: any;
2785
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2786
+ stringOrNull: any;
2787
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2788
+ boolean: any;
2789
+ booleanOrNull: any;
2790
+ /** A raw condition for `where`, `having`, or `on`. */
2791
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2792
+ /** A column Joist does not model, on a source that is in the query. */
2793
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2794
+ };
2795
+ /** A raw condition for `where`, `having`, or `on`. */
2796
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2797
+ /** A column Joist does not model, on a source that is in the query. */
2798
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2799
+ };
2800
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2801
+ string: {
2802
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<string, never>;
2803
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2804
+ number: any;
2805
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2806
+ numberOrNull: any;
2807
+ string: any;
2808
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2809
+ stringOrNull: {
2810
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<string | null, never>;
2811
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2812
+ number: any;
2813
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2814
+ numberOrNull: any;
2815
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2816
+ string: any;
2817
+ stringOrNull: any;
2818
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2819
+ boolean: any;
2820
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
2821
+ booleanOrNull: {
2822
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
2823
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2824
+ number: any;
2825
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2826
+ numberOrNull: any;
2827
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2828
+ string: any;
2829
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2830
+ stringOrNull: any;
2831
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2832
+ boolean: any;
2833
+ booleanOrNull: any;
2834
+ /** A raw condition for `where`, `having`, or `on`. */
2835
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2836
+ /** A column Joist does not model, on a source that is in the query. */
2837
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2838
+ };
2839
+ /** A raw condition for `where`, `having`, or `on`. */
2840
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2841
+ /** A column Joist does not model, on a source that is in the query. */
2842
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2843
+ };
2844
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2845
+ boolean: any;
2846
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
2847
+ booleanOrNull: {
2848
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
2849
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2850
+ number: any;
2851
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2852
+ numberOrNull: any;
2853
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2854
+ string: any;
2855
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2856
+ stringOrNull: any;
2857
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2858
+ boolean: any;
2859
+ booleanOrNull: any;
2860
+ /** A raw condition for `where`, `having`, or `on`. */
2861
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2862
+ /** A column Joist does not model, on a source that is in the query. */
2863
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2864
+ };
2865
+ /** A raw condition for `where`, `having`, or `on`. */
2866
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2867
+ /** A column Joist does not model, on a source that is in the query. */
2868
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2869
+ };
2870
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2871
+ stringOrNull: {
2872
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<string | null, never>;
2873
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2874
+ number: any;
2875
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2876
+ numberOrNull: any;
2877
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2878
+ string: any;
2879
+ stringOrNull: any;
2880
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2881
+ boolean: any;
2882
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
2883
+ booleanOrNull: {
2884
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
2885
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2886
+ number: any;
2887
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2888
+ numberOrNull: any;
2889
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2890
+ string: any;
2891
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2892
+ stringOrNull: any;
2893
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2894
+ boolean: any;
2895
+ booleanOrNull: any;
2896
+ /** A raw condition for `where`, `having`, or `on`. */
2897
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2898
+ /** A column Joist does not model, on a source that is in the query. */
2899
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2900
+ };
2901
+ /** A raw condition for `where`, `having`, or `on`. */
2902
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2903
+ /** A column Joist does not model, on a source that is in the query. */
2904
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2905
+ };
2906
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2907
+ boolean: /*elided*/ any;
2908
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
2909
+ booleanOrNull: {
2910
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
2911
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2912
+ number: any;
2913
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2914
+ numberOrNull: any;
2915
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2916
+ string: any;
2917
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2918
+ stringOrNull: any;
2919
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2920
+ boolean: any;
2921
+ booleanOrNull: any;
2922
+ /** A raw condition for `where`, `having`, or `on`. */
2923
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2924
+ /** A column Joist does not model, on a source that is in the query. */
2925
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2926
+ };
2927
+ /** A raw condition for `where`, `having`, or `on`. */
2928
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2929
+ /** A column Joist does not model, on a source that is in the query. */
2930
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2931
+ };
2932
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2933
+ numberOrNull: {
2934
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<number | null, never>;
2935
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2936
+ number: any;
2937
+ numberOrNull: any;
2938
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2939
+ string: {
2940
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<string, never>;
2941
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2942
+ number: any;
2943
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2944
+ numberOrNull: any;
2945
+ string: any;
2946
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2947
+ stringOrNull: {
2948
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<string | null, never>;
2949
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2950
+ number: any;
2951
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2952
+ numberOrNull: any;
2953
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2954
+ string: any;
2955
+ stringOrNull: any;
2956
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2957
+ boolean: any;
2958
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
2959
+ booleanOrNull: {
2960
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
2961
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2962
+ number: any;
2963
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2964
+ numberOrNull: any;
2965
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2966
+ string: any;
2967
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2968
+ stringOrNull: any;
2969
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2970
+ boolean: any;
2971
+ booleanOrNull: any;
2972
+ /** A raw condition for `where`, `having`, or `on`. */
2973
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2974
+ /** A column Joist does not model, on a source that is in the query. */
2975
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2976
+ };
2977
+ /** A raw condition for `where`, `having`, or `on`. */
2978
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
2979
+ /** A column Joist does not model, on a source that is in the query. */
2980
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
2981
+ };
2982
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2983
+ boolean: any;
2984
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
2985
+ booleanOrNull: {
2986
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
2987
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
2988
+ number: any;
2989
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
2990
+ numberOrNull: any;
2991
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
2992
+ string: any;
2993
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
2994
+ stringOrNull: any;
2995
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
2996
+ boolean: any;
2997
+ booleanOrNull: any;
2998
+ /** A raw condition for `where`, `having`, or `on`. */
2999
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
3000
+ /** A column Joist does not model, on a source that is in the query. */
3001
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
3002
+ };
3003
+ /** A raw condition for `where`, `having`, or `on`. */
3004
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
3005
+ /** A column Joist does not model, on a source that is in the query. */
3006
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
3007
+ };
3008
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
3009
+ stringOrNull: {
3010
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<string | null, never>;
3011
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
3012
+ number: any;
3013
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
3014
+ numberOrNull: any;
3015
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
3016
+ string: any;
3017
+ stringOrNull: any;
3018
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
3019
+ boolean: any;
3020
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
3021
+ booleanOrNull: {
3022
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
3023
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
3024
+ number: any;
3025
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
3026
+ numberOrNull: any;
3027
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
3028
+ string: any;
3029
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
3030
+ stringOrNull: any;
3031
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
3032
+ boolean: any;
3033
+ booleanOrNull: any;
3034
+ /** A raw condition for `where`, `having`, or `on`. */
3035
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
3036
+ /** A column Joist does not model, on a source that is in the query. */
3037
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
3038
+ };
3039
+ /** A raw condition for `where`, `having`, or `on`. */
3040
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
3041
+ /** A column Joist does not model, on a source that is in the query. */
3042
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
3043
+ };
3044
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
3045
+ boolean: any;
3046
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
3047
+ booleanOrNull: {
3048
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
3049
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
3050
+ number: any;
3051
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
3052
+ numberOrNull: any;
3053
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
3054
+ string: any;
3055
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
3056
+ stringOrNull: any;
3057
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
3058
+ boolean: any;
3059
+ booleanOrNull: any;
3060
+ /** A raw condition for `where`, `having`, or `on`. */
3061
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
3062
+ /** A column Joist does not model, on a source that is in the query. */
3063
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
3064
+ };
3065
+ /** A raw condition for `where`, `having`, or `on`. */
3066
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
3067
+ /** A column Joist does not model, on a source that is in the query. */
3068
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
3069
+ };
3070
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
3071
+ string: {
3072
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<string, never>;
3073
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
3074
+ number: any;
3075
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
3076
+ numberOrNull: any;
3077
+ string: any;
3078
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
3079
+ stringOrNull: {
3080
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<string | null, never>;
3081
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
3082
+ number: any;
3083
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
3084
+ numberOrNull: any;
3085
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
3086
+ string: any;
3087
+ stringOrNull: any;
3088
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
3089
+ boolean: any;
3090
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
3091
+ booleanOrNull: {
3092
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
3093
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
3094
+ number: any;
3095
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
3096
+ numberOrNull: any;
3097
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
3098
+ string: any;
3099
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
3100
+ stringOrNull: any;
3101
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
3102
+ boolean: any;
3103
+ booleanOrNull: any;
3104
+ /** A raw condition for `where`, `having`, or `on`. */
3105
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
3106
+ /** A column Joist does not model, on a source that is in the query. */
3107
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
3108
+ };
3109
+ /** A raw condition for `where`, `having`, or `on`. */
3110
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
3111
+ /** A column Joist does not model, on a source that is in the query. */
3112
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
3113
+ };
3114
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
3115
+ boolean: any;
3116
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
3117
+ booleanOrNull: {
3118
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
3119
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
3120
+ number: any;
3121
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
3122
+ numberOrNull: any;
3123
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
3124
+ string: any;
3125
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
3126
+ stringOrNull: any;
3127
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
3128
+ boolean: any;
3129
+ booleanOrNull: any;
3130
+ /** A raw condition for `where`, `having`, or `on`. */
3131
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
3132
+ /** A column Joist does not model, on a source that is in the query. */
3133
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
3134
+ };
3135
+ /** A raw condition for `where`, `having`, or `on`. */
3136
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
3137
+ /** A column Joist does not model, on a source that is in the query. */
3138
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
3139
+ };
3140
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
3141
+ stringOrNull: {
3142
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<string | null, never>;
3143
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
3144
+ number: any;
3145
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
3146
+ numberOrNull: any;
3147
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
3148
+ string: any;
3149
+ stringOrNull: any;
3150
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
3151
+ boolean: any;
3152
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
3153
+ booleanOrNull: {
3154
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
3155
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
3156
+ number: any;
3157
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
3158
+ numberOrNull: any;
3159
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
3160
+ string: any;
3161
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
3162
+ stringOrNull: any;
3163
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
3164
+ boolean: any;
3165
+ booleanOrNull: any;
3166
+ /** A raw condition for `where`, `having`, or `on`. */
3167
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
3168
+ /** A column Joist does not model, on a source that is in the query. */
3169
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
3170
+ };
3171
+ /** A raw condition for `where`, `having`, or `on`. */
3172
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
3173
+ /** A column Joist does not model, on a source that is in the query. */
3174
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
3175
+ };
3176
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
3177
+ boolean: /*elided*/ any;
3178
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
3179
+ booleanOrNull: {
3180
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
3181
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
3182
+ number: any;
3183
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
3184
+ numberOrNull: any;
3185
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
3186
+ string: any;
3187
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
3188
+ stringOrNull: any;
3189
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
3190
+ boolean: any;
3191
+ booleanOrNull: any;
3192
+ /** A raw condition for `where`, `having`, or `on`. */
3193
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
3194
+ /** A column Joist does not model, on a source that is in the query. */
3195
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
3196
+ };
3197
+ /** A raw condition for `where`, `having`, or `on`. */
3198
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
3199
+ /** A column Joist does not model, on a source that is in the query. */
3200
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
3201
+ };
3202
+ var booleanOrNull: {
3203
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean | null, never>;
3204
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
3205
+ number: {
3206
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<number, never>;
3207
+ number: /*elided*/ any;
3208
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
3209
+ numberOrNull: {
3210
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<number | null, never>;
3211
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
3212
+ number: /*elided*/ any;
3213
+ numberOrNull: /*elided*/ any;
3214
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
3215
+ string: {
3216
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<string, never>;
3217
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
3218
+ number: /*elided*/ any;
3219
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
3220
+ numberOrNull: /*elided*/ any;
3221
+ string: /*elided*/ any;
3222
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
3223
+ stringOrNull: {
3224
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<string | null, never>;
3225
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
3226
+ number: /*elided*/ any;
3227
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
3228
+ numberOrNull: /*elided*/ any;
3229
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
3230
+ string: /*elided*/ any;
3231
+ stringOrNull: /*elided*/ any;
3232
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
3233
+ boolean: {
3234
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
3235
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
3236
+ number: /*elided*/ any;
3237
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
3238
+ numberOrNull: /*elided*/ any;
3239
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
3240
+ string: /*elided*/ any;
3241
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
3242
+ stringOrNull: /*elided*/ any;
3243
+ boolean: /*elided*/ any;
3244
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
3245
+ booleanOrNull: /*elided*/ any;
3246
+ /** A raw condition for `where`, `having`, or `on`. */
3247
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
3248
+ /** A column Joist does not model, on a source that is in the query. */
3249
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
3250
+ };
3251
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
3252
+ booleanOrNull: /*elided*/ any;
3253
+ /** A raw condition for `where`, `having`, or `on`. */
3254
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
3255
+ /** A column Joist does not model, on a source that is in the query. */
3256
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
3257
+ };
3258
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
3259
+ boolean: {
3260
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
3261
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
3262
+ number: any;
3263
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
3264
+ numberOrNull: any;
3265
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
3266
+ string: any;
3267
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
3268
+ stringOrNull: any;
3269
+ boolean: any;
3270
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
3271
+ booleanOrNull: any;
3272
+ /** A raw condition for `where`, `having`, or `on`. */
3273
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
3274
+ /** A column Joist does not model, on a source that is in the query. */
3275
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
3276
+ };
3277
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
3278
+ booleanOrNull: /*elided*/ any;
3279
+ /** A raw condition for `where`, `having`, or `on`. */
3280
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
3281
+ /** A column Joist does not model, on a source that is in the query. */
3282
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
3283
+ };
3284
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
3285
+ stringOrNull: {
3286
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<string | null, never>;
3287
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
3288
+ number: any;
3289
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
3290
+ numberOrNull: any;
3291
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
3292
+ string: any;
3293
+ stringOrNull: any;
3294
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
3295
+ boolean: {
3296
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
3297
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
3298
+ number: any;
3299
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
3300
+ numberOrNull: any;
3301
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
3302
+ string: any;
3303
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
3304
+ stringOrNull: any;
3305
+ boolean: any;
3306
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
3307
+ booleanOrNull: any;
3308
+ /** A raw condition for `where`, `having`, or `on`. */
3309
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
3310
+ /** A column Joist does not model, on a source that is in the query. */
3311
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
3312
+ };
3313
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
3314
+ booleanOrNull: any;
3315
+ /** A raw condition for `where`, `having`, or `on`. */
3316
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
3317
+ /** A column Joist does not model, on a source that is in the query. */
3318
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
3319
+ };
3320
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
3321
+ boolean: {
3322
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
3323
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
3324
+ number: any;
3325
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
3326
+ numberOrNull: any;
3327
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
3328
+ string: any;
3329
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
3330
+ stringOrNull: any;
3331
+ boolean: any;
3332
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
3333
+ booleanOrNull: any;
3334
+ /** A raw condition for `where`, `having`, or `on`. */
3335
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
3336
+ /** A column Joist does not model, on a source that is in the query. */
3337
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
3338
+ };
3339
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
3340
+ booleanOrNull: /*elided*/ any;
3341
+ /** A raw condition for `where`, `having`, or `on`. */
3342
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
3343
+ /** A column Joist does not model, on a source that is in the query. */
3344
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
3345
+ };
3346
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
3347
+ string: {
3348
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<string, never>;
3349
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
3350
+ number: any;
3351
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
3352
+ numberOrNull: any;
3353
+ string: any;
3354
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
3355
+ stringOrNull: {
3356
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<string | null, never>;
3357
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
3358
+ number: any;
3359
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
3360
+ numberOrNull: any;
3361
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
3362
+ string: any;
3363
+ stringOrNull: any;
3364
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
3365
+ boolean: {
3366
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
3367
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
3368
+ number: any;
3369
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
3370
+ numberOrNull: any;
3371
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
3372
+ string: any;
3373
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
3374
+ stringOrNull: any;
3375
+ boolean: any;
3376
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
3377
+ booleanOrNull: any;
3378
+ /** A raw condition for `where`, `having`, or `on`. */
3379
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
3380
+ /** A column Joist does not model, on a source that is in the query. */
3381
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
3382
+ };
3383
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
3384
+ booleanOrNull: any;
3385
+ /** A raw condition for `where`, `having`, or `on`. */
3386
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
3387
+ /** A column Joist does not model, on a source that is in the query. */
3388
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
3389
+ };
3390
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
3391
+ boolean: {
3392
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
3393
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
3394
+ number: any;
3395
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
3396
+ numberOrNull: any;
3397
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
3398
+ string: any;
3399
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
3400
+ stringOrNull: any;
3401
+ boolean: any;
3402
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
3403
+ booleanOrNull: any;
3404
+ /** A raw condition for `where`, `having`, or `on`. */
3405
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
3406
+ /** A column Joist does not model, on a source that is in the query. */
3407
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
3408
+ };
3409
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
3410
+ booleanOrNull: any;
3411
+ /** A raw condition for `where`, `having`, or `on`. */
3412
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
3413
+ /** A column Joist does not model, on a source that is in the query. */
3414
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
3415
+ };
3416
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
3417
+ stringOrNull: {
3418
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<string | null, never>;
3419
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
3420
+ number: any;
3421
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
3422
+ numberOrNull: any;
3423
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
3424
+ string: any;
3425
+ stringOrNull: any;
3426
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
3427
+ boolean: {
3428
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
3429
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
3430
+ number: any;
3431
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
3432
+ numberOrNull: any;
3433
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
3434
+ string: any;
3435
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
3436
+ stringOrNull: any;
3437
+ boolean: any;
3438
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
3439
+ booleanOrNull: any;
3440
+ /** A raw condition for `where`, `having`, or `on`. */
3441
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
3442
+ /** A column Joist does not model, on a source that is in the query. */
3443
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
3444
+ };
3445
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
3446
+ booleanOrNull: any;
3447
+ /** A raw condition for `where`, `having`, or `on`. */
3448
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
3449
+ /** A column Joist does not model, on a source that is in the query. */
3450
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
3451
+ };
3452
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
3453
+ boolean: {
3454
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
3455
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
3456
+ number: any;
3457
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
3458
+ numberOrNull: any;
3459
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
3460
+ string: any;
3461
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
3462
+ stringOrNull: any;
3463
+ boolean: any;
3464
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
3465
+ booleanOrNull: any;
3466
+ /** A raw condition for `where`, `having`, or `on`. */
3467
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
3468
+ /** A column Joist does not model, on a source that is in the query. */
3469
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
3470
+ };
3471
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
3472
+ booleanOrNull: /*elided*/ any;
3473
+ /** A raw condition for `where`, `having`, or `on`. */
3474
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
3475
+ /** A column Joist does not model, on a source that is in the query. */
3476
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
3477
+ };
3478
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
3479
+ numberOrNull: {
3480
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<number | null, never>;
3481
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
3482
+ number: any;
3483
+ numberOrNull: any;
3484
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
3485
+ string: {
3486
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<string, never>;
3487
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
3488
+ number: any;
3489
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
3490
+ numberOrNull: any;
3491
+ string: any;
3492
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
3493
+ stringOrNull: {
3494
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<string | null, never>;
3495
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
3496
+ number: any;
3497
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
3498
+ numberOrNull: any;
3499
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
3500
+ string: any;
3501
+ stringOrNull: any;
3502
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
3503
+ boolean: {
3504
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
3505
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
3506
+ number: any;
3507
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
3508
+ numberOrNull: any;
3509
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
3510
+ string: any;
3511
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
3512
+ stringOrNull: any;
3513
+ boolean: any;
3514
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
3515
+ booleanOrNull: any;
3516
+ /** A raw condition for `where`, `having`, or `on`. */
3517
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
3518
+ /** A column Joist does not model, on a source that is in the query. */
3519
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
3520
+ };
3521
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
3522
+ booleanOrNull: any;
3523
+ /** A raw condition for `where`, `having`, or `on`. */
3524
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
3525
+ /** A column Joist does not model, on a source that is in the query. */
3526
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
3527
+ };
3528
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
3529
+ boolean: {
3530
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
3531
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
3532
+ number: any;
3533
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
3534
+ numberOrNull: any;
3535
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
3536
+ string: any;
3537
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
3538
+ stringOrNull: any;
3539
+ boolean: any;
3540
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
3541
+ booleanOrNull: any;
3542
+ /** A raw condition for `where`, `having`, or `on`. */
3543
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
3544
+ /** A column Joist does not model, on a source that is in the query. */
3545
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
3546
+ };
3547
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
3548
+ booleanOrNull: any;
3549
+ /** A raw condition for `where`, `having`, or `on`. */
3550
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
3551
+ /** A column Joist does not model, on a source that is in the query. */
3552
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
3553
+ };
3554
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
3555
+ stringOrNull: {
3556
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<string | null, never>;
3557
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
3558
+ number: any;
3559
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
3560
+ numberOrNull: any;
3561
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
3562
+ string: any;
3563
+ stringOrNull: any;
3564
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
3565
+ boolean: {
3566
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
3567
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
3568
+ number: any;
3569
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
3570
+ numberOrNull: any;
3571
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
3572
+ string: any;
3573
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
3574
+ stringOrNull: any;
3575
+ boolean: any;
3576
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
3577
+ booleanOrNull: any;
3578
+ /** A raw condition for `where`, `having`, or `on`. */
3579
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
3580
+ /** A column Joist does not model, on a source that is in the query. */
3581
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
3582
+ };
3583
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
3584
+ booleanOrNull: any;
3585
+ /** A raw condition for `where`, `having`, or `on`. */
3586
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
3587
+ /** A column Joist does not model, on a source that is in the query. */
3588
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
3589
+ };
3590
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
3591
+ boolean: {
3592
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
3593
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
3594
+ number: any;
3595
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
3596
+ numberOrNull: any;
3597
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
3598
+ string: any;
3599
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
3600
+ stringOrNull: any;
3601
+ boolean: any;
3602
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
3603
+ booleanOrNull: any;
3604
+ /** A raw condition for `where`, `having`, or `on`. */
3605
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
3606
+ /** A column Joist does not model, on a source that is in the query. */
3607
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
3608
+ };
3609
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
3610
+ booleanOrNull: any;
3611
+ /** A raw condition for `where`, `having`, or `on`. */
3612
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
3613
+ /** A column Joist does not model, on a source that is in the query. */
3614
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
3615
+ };
3616
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
3617
+ string: {
3618
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<string, never>;
3619
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
3620
+ number: any;
3621
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
3622
+ numberOrNull: any;
3623
+ string: any;
3624
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
3625
+ stringOrNull: {
3626
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<string | null, never>;
3627
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
3628
+ number: any;
3629
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
3630
+ numberOrNull: any;
3631
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
3632
+ string: any;
3633
+ stringOrNull: any;
3634
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
3635
+ boolean: {
3636
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
3637
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
3638
+ number: any;
3639
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
3640
+ numberOrNull: any;
3641
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
3642
+ string: any;
3643
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
3644
+ stringOrNull: any;
3645
+ boolean: any;
3646
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
3647
+ booleanOrNull: any;
3648
+ /** A raw condition for `where`, `having`, or `on`. */
3649
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
3650
+ /** A column Joist does not model, on a source that is in the query. */
3651
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
3652
+ };
3653
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
3654
+ booleanOrNull: any;
3655
+ /** A raw condition for `where`, `having`, or `on`. */
3656
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
3657
+ /** A column Joist does not model, on a source that is in the query. */
3658
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
3659
+ };
3660
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
3661
+ boolean: {
3662
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
3663
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
3664
+ number: any;
3665
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
3666
+ numberOrNull: any;
3667
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
3668
+ string: any;
3669
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
3670
+ stringOrNull: any;
3671
+ boolean: any;
3672
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
3673
+ booleanOrNull: any;
3674
+ /** A raw condition for `where`, `having`, or `on`. */
3675
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
3676
+ /** A column Joist does not model, on a source that is in the query. */
3677
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
3678
+ };
3679
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
3680
+ booleanOrNull: any;
3681
+ /** A raw condition for `where`, `having`, or `on`. */
3682
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
3683
+ /** A column Joist does not model, on a source that is in the query. */
3684
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
3685
+ };
3686
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
3687
+ stringOrNull: {
3688
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<string | null, never>;
3689
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
3690
+ number: any;
3691
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
3692
+ numberOrNull: any;
3693
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
3694
+ string: any;
3695
+ stringOrNull: any;
3696
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
3697
+ boolean: {
3698
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
3699
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
3700
+ number: any;
3701
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
3702
+ numberOrNull: any;
3703
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
3704
+ string: any;
3705
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
3706
+ stringOrNull: any;
3707
+ boolean: any;
3708
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
3709
+ booleanOrNull: any;
3710
+ /** A raw condition for `where`, `having`, or `on`. */
3711
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
3712
+ /** A column Joist does not model, on a source that is in the query. */
3713
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
3714
+ };
3715
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
3716
+ booleanOrNull: any;
3717
+ /** A raw condition for `where`, `having`, or `on`. */
3718
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
3719
+ /** A column Joist does not model, on a source that is in the query. */
3720
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
3721
+ };
3722
+ /** Shorthand for `sql<boolean>`; does not cast or convert the SQL result. */
3723
+ boolean: {
3724
+ (strings: TemplateStringsArray, ...values: unknown[]): Expr<boolean, never>;
3725
+ /** Shorthand for `sql<number>`; does not cast or convert the SQL result. */
3726
+ number: any;
3727
+ /** Shorthand for `sql<number | null>`; does not cast or convert the SQL result. */
3728
+ numberOrNull: any;
3729
+ /** Shorthand for `sql<string>`; does not cast or convert the SQL result. */
3730
+ string: any;
3731
+ /** Shorthand for `sql<string | null>`; does not cast or convert the SQL result. */
3732
+ stringOrNull: any;
3733
+ boolean: any;
3734
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
3735
+ booleanOrNull: any;
3736
+ /** A raw condition for `where`, `having`, or `on`. */
3737
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
3738
+ /** A column Joist does not model, on a source that is in the query. */
3739
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
3740
+ };
3741
+ /** Shorthand for `sql<boolean | null>`; does not cast or convert the SQL result. */
3742
+ booleanOrNull: /*elided*/ any;
3743
+ /** A raw condition for `where`, `having`, or `on`. */
3744
+ condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
3745
+ /** A column Joist does not model, on a source that is in the query. */
3746
+ ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
3747
+ };
472
3748
  var condition: (strings: TemplateStringsArray, ...values: unknown[]) => ExpressionCondition;
473
3749
  var ref: <R = unknown>(source: QuerySource, column: string) => Expr<R, string>;
474
3750
  }