@maiyunnet/kebab 10.0.0 → 10.1.0

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/doc/kebab-rag.md CHANGED
@@ -635,7 +635,7 @@ index/interfaces/IConfigAi.md
635
635
 
636
636
  # Interface: IConfigAi
637
637
 
638
- Defined in: [index.ts:120](https://github.com/maiyunnet/kebab/blob/master/index.ts#L120)
638
+ Defined in: [index.ts:121](https://github.com/maiyunnet/kebab/blob/master/index.ts#L121)
639
639
 
640
640
  AI
641
641
 
@@ -645,7 +645,7 @@ AI
645
645
 
646
646
  > `optional` **endpoint?**: `string`
647
647
 
648
- Defined in: [index.ts:122](https://github.com/maiyunnet/kebab/blob/master/index.ts#L122)
648
+ Defined in: [index.ts:123](https://github.com/maiyunnet/kebab/blob/master/index.ts#L123)
649
649
 
650
650
  目前只有微软 Azure 有
651
651
 
@@ -655,7 +655,7 @@ Defined in: [index.ts:122](https://github.com/maiyunnet/kebab/blob/master/index.
655
655
 
656
656
  > **skey**: `string`
657
657
 
658
- Defined in: [index.ts:123](https://github.com/maiyunnet/kebab/blob/master/index.ts#L123)
658
+ Defined in: [index.ts:124](https://github.com/maiyunnet/kebab/blob/master/index.ts#L124)
659
659
 
660
660
  index/interfaces/IConfigConst.md
661
661
  ---
@@ -668,7 +668,7 @@ index/interfaces/IConfigConst.md
668
668
 
669
669
  # Interface: IConfigConst
670
670
 
671
- Defined in: [index.ts:193](https://github.com/maiyunnet/kebab/blob/master/index.ts#L193)
671
+ Defined in: [index.ts:194](https://github.com/maiyunnet/kebab/blob/master/index.ts#L194)
672
672
 
673
673
  常量
674
674
 
@@ -678,7 +678,7 @@ Defined in: [index.ts:193](https://github.com/maiyunnet/kebab/blob/master/index.
678
678
 
679
679
  > **ctrPath**: `string`
680
680
 
681
- Defined in: [index.ts:229](https://github.com/maiyunnet/kebab/blob/master/index.ts#L229)
681
+ Defined in: [index.ts:230](https://github.com/maiyunnet/kebab/blob/master/index.ts#L230)
682
682
 
683
683
  ***
684
684
 
@@ -686,7 +686,7 @@ Defined in: [index.ts:229](https://github.com/maiyunnet/kebab/blob/master/index.
686
686
 
687
687
  > **dataPath**: `string`
688
688
 
689
- Defined in: [index.ts:231](https://github.com/maiyunnet/kebab/blob/master/index.ts#L231)
689
+ Defined in: [index.ts:232](https://github.com/maiyunnet/kebab/blob/master/index.ts#L232)
690
690
 
691
691
  ***
692
692
 
@@ -694,7 +694,7 @@ Defined in: [index.ts:231](https://github.com/maiyunnet/kebab/blob/master/index.
694
694
 
695
695
  > **host**: `string`
696
696
 
697
- Defined in: [index.ts:211](https://github.com/maiyunnet/kebab/blob/master/index.ts#L211)
697
+ Defined in: [index.ts:212](https://github.com/maiyunnet/kebab/blob/master/index.ts#L212)
698
698
 
699
699
  请求头中的主机地址,如 example.com、example.com:8443 或 [::1]:8080;不额外补端口
700
700
 
@@ -704,7 +704,7 @@ Defined in: [index.ts:211](https://github.com/maiyunnet/kebab/blob/master/index.
704
704
 
705
705
  > **hostCanonical**: `string`
706
706
 
707
- Defined in: [index.ts:217](https://github.com/maiyunnet/kebab/blob/master/index.ts#L217)
707
+ Defined in: [index.ts:218](https://github.com/maiyunnet/kebab/blob/master/index.ts#L218)
708
708
 
709
709
  用于生成网址的主机地址,仅省略 HTTPS 的 443 和 HTTP 的 80 端口,如 example.com:443 → example.com;保留其他端口和 IPv6 方括号
710
710
 
@@ -714,7 +714,7 @@ Defined in: [index.ts:217](https://github.com/maiyunnet/kebab/blob/master/index.
714
714
 
715
715
  > **hostname**: `string`
716
716
 
717
- Defined in: [index.ts:213](https://github.com/maiyunnet/kebab/blob/master/index.ts#L213)
717
+ Defined in: [index.ts:214](https://github.com/maiyunnet/kebab/blob/master/index.ts#L214)
718
718
 
719
719
  主机名,如 example.com 或 ::1,不含端口或 IPv6 方括号
720
720
 
@@ -724,7 +724,7 @@ Defined in: [index.ts:213](https://github.com/maiyunnet/kebab/blob/master/index.
724
724
 
725
725
  > **hostport**: `number`
726
726
 
727
- Defined in: [index.ts:215](https://github.com/maiyunnet/kebab/blob/master/index.ts#L215)
727
+ Defined in: [index.ts:216](https://github.com/maiyunnet/kebab/blob/master/index.ts#L216)
728
728
 
729
729
  请求地址中的端口,如 8443;未指定时 HTTPS 为 443、HTTP 为 80,不取本机监听端口
730
730
 
@@ -734,7 +734,7 @@ Defined in: [index.ts:215](https://github.com/maiyunnet/kebab/blob/master/index.
734
734
 
735
735
  > **https**: `boolean`
736
736
 
737
- Defined in: [index.ts:209](https://github.com/maiyunnet/kebab/blob/master/index.ts#L209)
737
+ Defined in: [index.ts:210](https://github.com/maiyunnet/kebab/blob/master/index.ts#L210)
738
738
 
739
739
  请求到达 Kebab 时是否使用 HTTPS;通过 HTTP 回源时为 false
740
740
 
@@ -744,7 +744,7 @@ Defined in: [index.ts:209](https://github.com/maiyunnet/kebab/blob/master/index.
744
744
 
745
745
  > **miniprogram**: `""` \| `"wechat"`
746
746
 
747
- Defined in: [index.ts:207](https://github.com/maiyunnet/kebab/blob/master/index.ts#L207)
747
+ Defined in: [index.ts:208](https://github.com/maiyunnet/kebab/blob/master/index.ts#L208)
748
748
 
749
749
  ***
750
750
 
@@ -752,7 +752,7 @@ Defined in: [index.ts:207](https://github.com/maiyunnet/kebab/blob/master/index.
752
752
 
753
753
  > **mobile**: `boolean`
754
754
 
755
- Defined in: [index.ts:205](https://github.com/maiyunnet/kebab/blob/master/index.ts#L205)
755
+ Defined in: [index.ts:206](https://github.com/maiyunnet/kebab/blob/master/index.ts#L206)
756
756
 
757
757
  ***
758
758
 
@@ -760,7 +760,7 @@ Defined in: [index.ts:205](https://github.com/maiyunnet/kebab/blob/master/index.
760
760
 
761
761
  > **modPath**: `string`
762
762
 
763
- Defined in: [index.ts:228](https://github.com/maiyunnet/kebab/blob/master/index.ts#L228)
763
+ Defined in: [index.ts:229](https://github.com/maiyunnet/kebab/blob/master/index.ts#L229)
764
764
 
765
765
  ***
766
766
 
@@ -768,7 +768,7 @@ Defined in: [index.ts:228](https://github.com/maiyunnet/kebab/blob/master/index.
768
768
 
769
769
  > **path**: `string`
770
770
 
771
- Defined in: [index.ts:195](https://github.com/maiyunnet/kebab/blob/master/index.ts#L195)
771
+ Defined in: [index.ts:196](https://github.com/maiyunnet/kebab/blob/master/index.ts#L196)
772
772
 
773
773
  不以 / 开头,不含 qs
774
774
 
@@ -778,7 +778,7 @@ Defined in: [index.ts:195](https://github.com/maiyunnet/kebab/blob/master/index.
778
778
 
779
779
  > **qs**: `string`
780
780
 
781
- Defined in: [index.ts:197](https://github.com/maiyunnet/kebab/blob/master/index.ts#L197)
781
+ Defined in: [index.ts:198](https://github.com/maiyunnet/kebab/blob/master/index.ts#L198)
782
782
 
783
783
  不含 ? 开头
784
784
 
@@ -788,7 +788,7 @@ Defined in: [index.ts:197](https://github.com/maiyunnet/kebab/blob/master/index.
788
788
 
789
789
  > **qss**: `string`
790
790
 
791
- Defined in: [index.ts:199](https://github.com/maiyunnet/kebab/blob/master/index.ts#L199)
791
+ Defined in: [index.ts:200](https://github.com/maiyunnet/kebab/blob/master/index.ts#L200)
792
792
 
793
793
  含 ? 开头
794
794
 
@@ -798,7 +798,7 @@ Defined in: [index.ts:199](https://github.com/maiyunnet/kebab/blob/master/index.
798
798
 
799
799
  > **rootPath**: `string`
800
800
 
801
- Defined in: [index.ts:227](https://github.com/maiyunnet/kebab/blob/master/index.ts#L227)
801
+ Defined in: [index.ts:228](https://github.com/maiyunnet/kebab/blob/master/index.ts#L228)
802
802
 
803
803
  ***
804
804
 
@@ -806,7 +806,7 @@ Defined in: [index.ts:227](https://github.com/maiyunnet/kebab/blob/master/index.
806
806
 
807
807
  > **startMemory**: `number`
808
808
 
809
- Defined in: [index.ts:201](https://github.com/maiyunnet/kebab/blob/master/index.ts#L201)
809
+ Defined in: [index.ts:202](https://github.com/maiyunnet/kebab/blob/master/index.ts#L202)
810
810
 
811
811
  ***
812
812
 
@@ -814,7 +814,7 @@ Defined in: [index.ts:201](https://github.com/maiyunnet/kebab/blob/master/index.
814
814
 
815
815
  > **startTime**: `bigint`
816
816
 
817
- Defined in: [index.ts:200](https://github.com/maiyunnet/kebab/blob/master/index.ts#L200)
817
+ Defined in: [index.ts:201](https://github.com/maiyunnet/kebab/blob/master/index.ts#L201)
818
818
 
819
819
  ***
820
820
 
@@ -822,7 +822,7 @@ Defined in: [index.ts:200](https://github.com/maiyunnet/kebab/blob/master/index.
822
822
 
823
823
  > **uri**: [`IUrlParse`](IUrlParse.md)
824
824
 
825
- Defined in: [index.ts:223](https://github.com/maiyunnet/kebab/blob/master/index.ts#L223)
825
+ Defined in: [index.ts:224](https://github.com/maiyunnet/kebab/blob/master/index.ts#L224)
826
826
 
827
827
  ***
828
828
 
@@ -830,7 +830,7 @@ Defined in: [index.ts:223](https://github.com/maiyunnet/kebab/blob/master/index.
830
830
 
831
831
  > **urlBase**: `string`
832
832
 
833
- Defined in: [index.ts:236](https://github.com/maiyunnet/kebab/blob/master/index.ts#L236)
833
+ Defined in: [index.ts:237](https://github.com/maiyunnet/kebab/blob/master/index.ts#L237)
834
834
 
835
835
  ***
836
836
 
@@ -838,7 +838,7 @@ Defined in: [index.ts:236](https://github.com/maiyunnet/kebab/blob/master/index.
838
838
 
839
839
  > **urlFull**: `string`
840
840
 
841
- Defined in: [index.ts:238](https://github.com/maiyunnet/kebab/blob/master/index.ts#L238)
841
+ Defined in: [index.ts:239](https://github.com/maiyunnet/kebab/blob/master/index.ts#L239)
842
842
 
843
843
  ***
844
844
 
@@ -846,7 +846,7 @@ Defined in: [index.ts:238](https://github.com/maiyunnet/kebab/blob/master/index.
846
846
 
847
847
  > **urlOrigin**: `string`
848
848
 
849
- Defined in: [index.ts:222](https://github.com/maiyunnet/kebab/blob/master/index.ts#L222)
849
+ Defined in: [index.ts:223](https://github.com/maiyunnet/kebab/blob/master/index.ts#L223)
850
850
 
851
851
  网址的协议与 hostCanonical,如 https://example.com:8443
852
852
  协议可取自 X-Forwarded-Proto,无有效值时使用实际连接协议;不能用它判断实际 TLS 状态。
@@ -857,7 +857,7 @@ Defined in: [index.ts:222](https://github.com/maiyunnet/kebab/blob/master/index.
857
857
 
858
858
  > **urlStc**: `string`
859
859
 
860
- Defined in: [index.ts:237](https://github.com/maiyunnet/kebab/blob/master/index.ts#L237)
860
+ Defined in: [index.ts:238](https://github.com/maiyunnet/kebab/blob/master/index.ts#L238)
861
861
 
862
862
  ***
863
863
 
@@ -865,7 +865,7 @@ Defined in: [index.ts:237](https://github.com/maiyunnet/kebab/blob/master/index.
865
865
 
866
866
  > **urlStcFull**: `string`
867
867
 
868
- Defined in: [index.ts:239](https://github.com/maiyunnet/kebab/blob/master/index.ts#L239)
868
+ Defined in: [index.ts:240](https://github.com/maiyunnet/kebab/blob/master/index.ts#L240)
869
869
 
870
870
  ***
871
871
 
@@ -873,7 +873,7 @@ Defined in: [index.ts:239](https://github.com/maiyunnet/kebab/blob/master/index.
873
873
 
874
874
  > **viewPath**: `string`
875
875
 
876
- Defined in: [index.ts:230](https://github.com/maiyunnet/kebab/blob/master/index.ts#L230)
876
+ Defined in: [index.ts:231](https://github.com/maiyunnet/kebab/blob/master/index.ts#L231)
877
877
 
878
878
  ***
879
879
 
@@ -881,7 +881,7 @@ Defined in: [index.ts:230](https://github.com/maiyunnet/kebab/blob/master/index.
881
881
 
882
882
  > **wechat**: `boolean`
883
883
 
884
- Defined in: [index.ts:206](https://github.com/maiyunnet/kebab/blob/master/index.ts#L206)
884
+ Defined in: [index.ts:207](https://github.com/maiyunnet/kebab/blob/master/index.ts#L207)
885
885
 
886
886
  ***
887
887
 
@@ -889,7 +889,7 @@ Defined in: [index.ts:206](https://github.com/maiyunnet/kebab/blob/master/index.
889
889
 
890
890
  > **wsPath**: `string`
891
891
 
892
- Defined in: [index.ts:232](https://github.com/maiyunnet/kebab/blob/master/index.ts#L232)
892
+ Defined in: [index.ts:233](https://github.com/maiyunnet/kebab/blob/master/index.ts#L233)
893
893
 
894
894
  index/interfaces/IConfigDb.md
895
895
  ---
@@ -902,7 +902,7 @@ index/interfaces/IConfigDb.md
902
902
 
903
903
  # Interface: IConfigDb
904
904
 
905
- Defined in: [index.ts:150](https://github.com/maiyunnet/kebab/blob/master/index.ts#L150)
905
+ Defined in: [index.ts:151](https://github.com/maiyunnet/kebab/blob/master/index.ts#L151)
906
906
 
907
907
  数据库
908
908
 
@@ -912,7 +912,7 @@ Defined in: [index.ts:150](https://github.com/maiyunnet/kebab/blob/master/index.
912
912
 
913
913
  > `optional` **charset?**: `string`
914
914
 
915
- Defined in: [index.ts:153](https://github.com/maiyunnet/kebab/blob/master/index.ts#L153)
915
+ Defined in: [index.ts:154](https://github.com/maiyunnet/kebab/blob/master/index.ts#L154)
916
916
 
917
917
  ***
918
918
 
@@ -920,7 +920,7 @@ Defined in: [index.ts:153](https://github.com/maiyunnet/kebab/blob/master/index.
920
920
 
921
921
  > **host**: `string`
922
922
 
923
- Defined in: [index.ts:151](https://github.com/maiyunnet/kebab/blob/master/index.ts#L151)
923
+ Defined in: [index.ts:152](https://github.com/maiyunnet/kebab/blob/master/index.ts#L152)
924
924
 
925
925
  ***
926
926
 
@@ -928,7 +928,7 @@ Defined in: [index.ts:151](https://github.com/maiyunnet/kebab/blob/master/index.
928
928
 
929
929
  > `optional` **name?**: `string`
930
930
 
931
- Defined in: [index.ts:154](https://github.com/maiyunnet/kebab/blob/master/index.ts#L154)
931
+ Defined in: [index.ts:155](https://github.com/maiyunnet/kebab/blob/master/index.ts#L155)
932
932
 
933
933
  ***
934
934
 
@@ -936,7 +936,7 @@ Defined in: [index.ts:154](https://github.com/maiyunnet/kebab/blob/master/index.
936
936
 
937
937
  > **port**: `number`
938
938
 
939
- Defined in: [index.ts:152](https://github.com/maiyunnet/kebab/blob/master/index.ts#L152)
939
+ Defined in: [index.ts:153](https://github.com/maiyunnet/kebab/blob/master/index.ts#L153)
940
940
 
941
941
  ***
942
942
 
@@ -944,7 +944,7 @@ Defined in: [index.ts:152](https://github.com/maiyunnet/kebab/blob/master/index.
944
944
 
945
945
  > **pwd**: `string`
946
946
 
947
- Defined in: [index.ts:157](https://github.com/maiyunnet/kebab/blob/master/index.ts#L157)
947
+ Defined in: [index.ts:158](https://github.com/maiyunnet/kebab/blob/master/index.ts#L158)
948
948
 
949
949
  ***
950
950
 
@@ -952,7 +952,7 @@ Defined in: [index.ts:157](https://github.com/maiyunnet/kebab/blob/master/index.
952
952
 
953
953
  > **user**: `string`
954
954
 
955
- Defined in: [index.ts:156](https://github.com/maiyunnet/kebab/blob/master/index.ts#L156)
955
+ Defined in: [index.ts:157](https://github.com/maiyunnet/kebab/blob/master/index.ts#L157)
956
956
 
957
957
  index/interfaces/IConfigDns.md
958
958
  ---
@@ -965,7 +965,7 @@ index/interfaces/IConfigDns.md
965
965
 
966
966
  # Interface: IConfigDns
967
967
 
968
- Defined in: [index.ts:161](https://github.com/maiyunnet/kebab/blob/master/index.ts#L161)
968
+ Defined in: [index.ts:162](https://github.com/maiyunnet/kebab/blob/master/index.ts#L162)
969
969
 
970
970
  DNS
971
971
 
@@ -975,7 +975,7 @@ DNS
975
975
 
976
976
  > **sid**: `string`
977
977
 
978
- Defined in: [index.ts:162](https://github.com/maiyunnet/kebab/blob/master/index.ts#L162)
978
+ Defined in: [index.ts:163](https://github.com/maiyunnet/kebab/blob/master/index.ts#L163)
979
979
 
980
980
  ***
981
981
 
@@ -983,7 +983,7 @@ Defined in: [index.ts:162](https://github.com/maiyunnet/kebab/blob/master/index.
983
983
 
984
984
  > **skey**: `string`
985
985
 
986
- Defined in: [index.ts:163](https://github.com/maiyunnet/kebab/blob/master/index.ts#L163)
986
+ Defined in: [index.ts:164](https://github.com/maiyunnet/kebab/blob/master/index.ts#L164)
987
987
 
988
988
  index/interfaces/IConfigKv.md
989
989
  ---
@@ -996,7 +996,7 @@ index/interfaces/IConfigKv.md
996
996
 
997
997
  # Interface: IConfigKv
998
998
 
999
- Defined in: [index.ts:167](https://github.com/maiyunnet/kebab/blob/master/index.ts#L167)
999
+ Defined in: [index.ts:168](https://github.com/maiyunnet/kebab/blob/master/index.ts#L168)
1000
1000
 
1001
1001
  kv
1002
1002
 
@@ -1006,7 +1006,7 @@ kv
1006
1006
 
1007
1007
  > `optional` **dbPre?**: `boolean`
1008
1008
 
1009
- Defined in: [index.ts:182](https://github.com/maiyunnet/kebab/blob/master/index.ts#L182)
1009
+ Defined in: [index.ts:183](https://github.com/maiyunnet/kebab/blob/master/index.ts#L183)
1010
1010
 
1011
1011
  为 true 时将非 0 的 index 折算为键名前缀(如 db1:),不再向服务端发 SELECT
1012
1012
 
@@ -1016,7 +1016,7 @@ Defined in: [index.ts:182](https://github.com/maiyunnet/kebab/blob/master/index.
1016
1016
 
1017
1017
  > **host**: `string`
1018
1018
 
1019
- Defined in: [index.ts:169](https://github.com/maiyunnet/kebab/blob/master/index.ts#L169)
1019
+ Defined in: [index.ts:170](https://github.com/maiyunnet/kebab/blob/master/index.ts#L170)
1020
1020
 
1021
1021
  服务端地址(IP 或域名)
1022
1022
 
@@ -1026,7 +1026,7 @@ Defined in: [index.ts:169](https://github.com/maiyunnet/kebab/blob/master/index.
1026
1026
 
1027
1027
  > **index**: `number`
1028
1028
 
1029
- Defined in: [index.ts:173](https://github.com/maiyunnet/kebab/blob/master/index.ts#L173)
1029
+ Defined in: [index.ts:174](https://github.com/maiyunnet/kebab/blob/master/index.ts#L174)
1030
1030
 
1031
1031
  数据库编号(0 起)
1032
1032
 
@@ -1036,7 +1036,7 @@ Defined in: [index.ts:173](https://github.com/maiyunnet/kebab/blob/master/index.
1036
1036
 
1037
1037
  > **port**: `number`
1038
1038
 
1039
- Defined in: [index.ts:171](https://github.com/maiyunnet/kebab/blob/master/index.ts#L171)
1039
+ Defined in: [index.ts:172](https://github.com/maiyunnet/kebab/blob/master/index.ts#L172)
1040
1040
 
1041
1041
  服务端端口
1042
1042
 
@@ -1046,7 +1046,7 @@ Defined in: [index.ts:171](https://github.com/maiyunnet/kebab/blob/master/index.
1046
1046
 
1047
1047
  > **pre**: `string`
1048
1048
 
1049
- Defined in: [index.ts:175](https://github.com/maiyunnet/kebab/blob/master/index.ts#L175)
1049
+ Defined in: [index.ts:176](https://github.com/maiyunnet/kebab/blob/master/index.ts#L176)
1050
1050
 
1051
1051
  业务键名前缀
1052
1052
 
@@ -1056,7 +1056,7 @@ Defined in: [index.ts:175](https://github.com/maiyunnet/kebab/blob/master/index.
1056
1056
 
1057
1057
  > **pwd**: `string`
1058
1058
 
1059
- Defined in: [index.ts:180](https://github.com/maiyunnet/kebab/blob/master/index.ts#L180)
1059
+ Defined in: [index.ts:181](https://github.com/maiyunnet/kebab/blob/master/index.ts#L181)
1060
1060
 
1061
1061
  认证密码或 Kvrocks namespace token
1062
1062
 
@@ -1066,7 +1066,7 @@ Defined in: [index.ts:180](https://github.com/maiyunnet/kebab/blob/master/index.
1066
1066
 
1067
1067
  > `optional` **tls?**: `boolean` \| `ConnectionOptions`
1068
1068
 
1069
- Defined in: [index.ts:184](https://github.com/maiyunnet/kebab/blob/master/index.ts#L184)
1069
+ Defined in: [index.ts:185](https://github.com/maiyunnet/kebab/blob/master/index.ts#L185)
1070
1070
 
1071
1071
  是否启用 TLS 连接;传入对象时自动启用 TLS 并透传证书/SNI 等参数(如 servername、ca)
1072
1072
 
@@ -1076,7 +1076,7 @@ Defined in: [index.ts:184](https://github.com/maiyunnet/kebab/blob/master/index.
1076
1076
 
1077
1077
  > **user**: `string`
1078
1078
 
1079
- Defined in: [index.ts:178](https://github.com/maiyunnet/kebab/blob/master/index.ts#L178)
1079
+ Defined in: [index.ts:179](https://github.com/maiyunnet/kebab/blob/master/index.ts#L179)
1080
1080
 
1081
1081
  ACL 用户名(留空则走传统单密码认证)
1082
1082
 
@@ -1091,7 +1091,7 @@ index/interfaces/IConfigLang.md
1091
1091
 
1092
1092
  # Interface: IConfigLang
1093
1093
 
1094
- Defined in: [index.ts:104](https://github.com/maiyunnet/kebab/blob/master/index.ts#L104)
1094
+ Defined in: [index.ts:105](https://github.com/maiyunnet/kebab/blob/master/index.ts#L105)
1095
1095
 
1096
1096
  语言
1097
1097
 
@@ -1101,7 +1101,7 @@ Defined in: [index.ts:104](https://github.com/maiyunnet/kebab/blob/master/index.
1101
1101
 
1102
1102
  > **direct**: `string`[]
1103
1103
 
1104
- Defined in: [index.ts:106](https://github.com/maiyunnet/kebab/blob/master/index.ts#L106)
1104
+ Defined in: [index.ts:107](https://github.com/maiyunnet/kebab/blob/master/index.ts#L107)
1105
1105
 
1106
1106
  ***
1107
1107
 
@@ -1109,7 +1109,7 @@ Defined in: [index.ts:106](https://github.com/maiyunnet/kebab/blob/master/index.
1109
1109
 
1110
1110
  > **list**: `string`[]
1111
1111
 
1112
- Defined in: [index.ts:105](https://github.com/maiyunnet/kebab/blob/master/index.ts#L105)
1112
+ Defined in: [index.ts:106](https://github.com/maiyunnet/kebab/blob/master/index.ts#L106)
1113
1113
 
1114
1114
  index/interfaces/IConfig.md
1115
1115
  ---
@@ -1136,7 +1136,7 @@ Defined in: [index.ts:52](https://github.com/maiyunnet/kebab/blob/master/index.t
1136
1136
 
1137
1137
  > **ai**: `Record`\<`string`, [`IConfigAi`](IConfigAi.md)\>
1138
1138
 
1139
- Defined in: [index.ts:83](https://github.com/maiyunnet/kebab/blob/master/index.ts#L83)
1139
+ Defined in: [index.ts:84](https://github.com/maiyunnet/kebab/blob/master/index.ts#L84)
1140
1140
 
1141
1141
  ***
1142
1142
 
@@ -1150,7 +1150,7 @@ Defined in: [index.ts:64](https://github.com/maiyunnet/kebab/blob/master/index.t
1150
1150
 
1151
1151
  ### db
1152
1152
 
1153
- > **db**: `Record`\<`string`, \{ `default`: [`IConfigDb`](IConfigDb.md); `read`: [`IConfigDb`](IConfigDb.md); \}\> & `object`
1153
+ > **db**: `Record`\<`string`, \{ `default`: [`IConfigDb`](IConfigDb.md); `read?`: `Partial`\<[`IConfigDb`](IConfigDb.md)\> \| `Partial`\<[`IConfigDb`](IConfigDb.md)\>[]; \}\> & `object`
1154
1154
 
1155
1155
  Defined in: [index.ts:65](https://github.com/maiyunnet/kebab/blob/master/index.ts#L65)
1156
1156
 
@@ -1166,7 +1166,7 @@ Defined in: [index.ts:65](https://github.com/maiyunnet/kebab/blob/master/index.t
1166
1166
 
1167
1167
  > **dns**: `Record`\<`string`, [`IConfigDns`](IConfigDns.md)\>
1168
1168
 
1169
- Defined in: [index.ts:79](https://github.com/maiyunnet/kebab/blob/master/index.ts#L79)
1169
+ Defined in: [index.ts:80](https://github.com/maiyunnet/kebab/blob/master/index.ts#L80)
1170
1170
 
1171
1171
  ***
1172
1172
 
@@ -1174,7 +1174,7 @@ Defined in: [index.ts:79](https://github.com/maiyunnet/kebab/blob/master/index.t
1174
1174
 
1175
1175
  > **kv**: [`IConfigKv`](IConfigKv.md)
1176
1176
 
1177
- Defined in: [index.ts:71](https://github.com/maiyunnet/kebab/blob/master/index.ts#L71)
1177
+ Defined in: [index.ts:72](https://github.com/maiyunnet/kebab/blob/master/index.ts#L72)
1178
1178
 
1179
1179
  ***
1180
1180
 
@@ -1182,7 +1182,7 @@ Defined in: [index.ts:71](https://github.com/maiyunnet/kebab/blob/master/index.t
1182
1182
 
1183
1183
  > **lang**: [`IConfigLang`](IConfigLang.md)
1184
1184
 
1185
- Defined in: [index.ts:80](https://github.com/maiyunnet/kebab/blob/master/index.ts#L80)
1185
+ Defined in: [index.ts:81](https://github.com/maiyunnet/kebab/blob/master/index.ts#L81)
1186
1186
 
1187
1187
  ***
1188
1188
 
@@ -1190,7 +1190,7 @@ Defined in: [index.ts:80](https://github.com/maiyunnet/kebab/blob/master/index.t
1190
1190
 
1191
1191
  > **route**: `Record`\<`string`, `string`\>
1192
1192
 
1193
- Defined in: [index.ts:72](https://github.com/maiyunnet/kebab/blob/master/index.ts#L72)
1193
+ Defined in: [index.ts:73](https://github.com/maiyunnet/kebab/blob/master/index.ts#L73)
1194
1194
 
1195
1195
  ***
1196
1196
 
@@ -1198,7 +1198,7 @@ Defined in: [index.ts:72](https://github.com/maiyunnet/kebab/blob/master/index.t
1198
1198
 
1199
1199
  > **s3**: `Record`\<`string`, [`IConfigS3`](IConfigS3.md)\>
1200
1200
 
1201
- Defined in: [index.ts:81](https://github.com/maiyunnet/kebab/blob/master/index.ts#L81)
1201
+ Defined in: [index.ts:82](https://github.com/maiyunnet/kebab/blob/master/index.ts#L82)
1202
1202
 
1203
1203
  ***
1204
1204
 
@@ -1206,7 +1206,7 @@ Defined in: [index.ts:81](https://github.com/maiyunnet/kebab/blob/master/index.t
1206
1206
 
1207
1207
  > **session**: `object`
1208
1208
 
1209
- Defined in: [index.ts:73](https://github.com/maiyunnet/kebab/blob/master/index.ts#L73)
1209
+ Defined in: [index.ts:74](https://github.com/maiyunnet/kebab/blob/master/index.ts#L74)
1210
1210
 
1211
1211
  #### name
1212
1212
 
@@ -1262,7 +1262,7 @@ Defined in: [index.ts:53](https://github.com/maiyunnet/kebab/blob/master/index.t
1262
1262
 
1263
1263
  > **sql**: [`IConfigSql`](IConfigSql.md)
1264
1264
 
1265
- Defined in: [index.ts:78](https://github.com/maiyunnet/kebab/blob/master/index.ts#L78)
1265
+ Defined in: [index.ts:79](https://github.com/maiyunnet/kebab/blob/master/index.ts#L79)
1266
1266
 
1267
1267
  ***
1268
1268
 
@@ -1270,7 +1270,7 @@ Defined in: [index.ts:78](https://github.com/maiyunnet/kebab/blob/master/index.t
1270
1270
 
1271
1271
  > **turnstile**: [`IConfigTurnstile`](IConfigTurnstile.md)
1272
1272
 
1273
- Defined in: [index.ts:82](https://github.com/maiyunnet/kebab/blob/master/index.ts#L82)
1273
+ Defined in: [index.ts:83](https://github.com/maiyunnet/kebab/blob/master/index.ts#L83)
1274
1274
 
1275
1275
  ***
1276
1276
 
@@ -1278,7 +1278,7 @@ Defined in: [index.ts:82](https://github.com/maiyunnet/kebab/blob/master/index.t
1278
1278
 
1279
1279
  > **vector**: [`IConfigVector`](IConfigVector.md)
1280
1280
 
1281
- Defined in: [index.ts:84](https://github.com/maiyunnet/kebab/blob/master/index.ts#L84)
1281
+ Defined in: [index.ts:85](https://github.com/maiyunnet/kebab/blob/master/index.ts#L85)
1282
1282
 
1283
1283
  index/interfaces/IConfigS3.md
1284
1284
  ---
@@ -1291,7 +1291,7 @@ index/interfaces/IConfigS3.md
1291
1291
 
1292
1292
  # Interface: IConfigS3
1293
1293
 
1294
- Defined in: [index.ts:110](https://github.com/maiyunnet/kebab/blob/master/index.ts#L110)
1294
+ Defined in: [index.ts:111](https://github.com/maiyunnet/kebab/blob/master/index.ts#L111)
1295
1295
 
1296
1296
  对象存储
1297
1297
 
@@ -1301,7 +1301,7 @@ Defined in: [index.ts:110](https://github.com/maiyunnet/kebab/blob/master/index.
1301
1301
 
1302
1302
  > `optional` **account?**: `string`
1303
1303
 
1304
- Defined in: [index.ts:112](https://github.com/maiyunnet/kebab/blob/master/index.ts#L112)
1304
+ Defined in: [index.ts:113](https://github.com/maiyunnet/kebab/blob/master/index.ts#L113)
1305
1305
 
1306
1306
  cf r2 要用
1307
1307
 
@@ -1311,7 +1311,7 @@ cf r2 要用
1311
1311
 
1312
1312
  > **bucket**: `string`
1313
1313
 
1314
- Defined in: [index.ts:116](https://github.com/maiyunnet/kebab/blob/master/index.ts#L116)
1314
+ Defined in: [index.ts:117](https://github.com/maiyunnet/kebab/blob/master/index.ts#L117)
1315
1315
 
1316
1316
  ***
1317
1317
 
@@ -1319,7 +1319,7 @@ Defined in: [index.ts:116](https://github.com/maiyunnet/kebab/blob/master/index.
1319
1319
 
1320
1320
  > **region**: `string`
1321
1321
 
1322
- Defined in: [index.ts:115](https://github.com/maiyunnet/kebab/blob/master/index.ts#L115)
1322
+ Defined in: [index.ts:116](https://github.com/maiyunnet/kebab/blob/master/index.ts#L116)
1323
1323
 
1324
1324
  ***
1325
1325
 
@@ -1327,7 +1327,7 @@ Defined in: [index.ts:115](https://github.com/maiyunnet/kebab/blob/master/index.
1327
1327
 
1328
1328
  > **sid**: `string`
1329
1329
 
1330
- Defined in: [index.ts:113](https://github.com/maiyunnet/kebab/blob/master/index.ts#L113)
1330
+ Defined in: [index.ts:114](https://github.com/maiyunnet/kebab/blob/master/index.ts#L114)
1331
1331
 
1332
1332
  ***
1333
1333
 
@@ -1335,7 +1335,7 @@ Defined in: [index.ts:113](https://github.com/maiyunnet/kebab/blob/master/index.
1335
1335
 
1336
1336
  > **skey**: `string`
1337
1337
 
1338
- Defined in: [index.ts:114](https://github.com/maiyunnet/kebab/blob/master/index.ts#L114)
1338
+ Defined in: [index.ts:115](https://github.com/maiyunnet/kebab/blob/master/index.ts#L115)
1339
1339
 
1340
1340
  index/interfaces/IConfigSql.md
1341
1341
  ---
@@ -1348,7 +1348,7 @@ index/interfaces/IConfigSql.md
1348
1348
 
1349
1349
  # Interface: IConfigSql
1350
1350
 
1351
- Defined in: [index.ts:188](https://github.com/maiyunnet/kebab/blob/master/index.ts#L188)
1351
+ Defined in: [index.ts:189](https://github.com/maiyunnet/kebab/blob/master/index.ts#L189)
1352
1352
 
1353
1353
  sql
1354
1354
 
@@ -1358,7 +1358,7 @@ sql
1358
1358
 
1359
1359
  > **pre**: `string`
1360
1360
 
1361
- Defined in: [index.ts:189](https://github.com/maiyunnet/kebab/blob/master/index.ts#L189)
1361
+ Defined in: [index.ts:190](https://github.com/maiyunnet/kebab/blob/master/index.ts#L190)
1362
1362
 
1363
1363
  index/interfaces/IConfigTurnstile.md
1364
1364
  ---
@@ -1371,7 +1371,7 @@ index/interfaces/IConfigTurnstile.md
1371
1371
 
1372
1372
  # Interface: IConfigTurnstile
1373
1373
 
1374
- Defined in: [index.ts:136](https://github.com/maiyunnet/kebab/blob/master/index.ts#L136)
1374
+ Defined in: [index.ts:137](https://github.com/maiyunnet/kebab/blob/master/index.ts#L137)
1375
1375
 
1376
1376
  人机码信息
1377
1377
 
@@ -1381,7 +1381,7 @@ Defined in: [index.ts:136](https://github.com/maiyunnet/kebab/blob/master/index.
1381
1381
 
1382
1382
  > **CF**: `object`
1383
1383
 
1384
- Defined in: [index.ts:137](https://github.com/maiyunnet/kebab/blob/master/index.ts#L137)
1384
+ Defined in: [index.ts:138](https://github.com/maiyunnet/kebab/blob/master/index.ts#L138)
1385
1385
 
1386
1386
  #### sid
1387
1387
 
@@ -1397,7 +1397,7 @@ Defined in: [index.ts:137](https://github.com/maiyunnet/kebab/blob/master/index.
1397
1397
 
1398
1398
  > **TENCENT**: `object`
1399
1399
 
1400
- Defined in: [index.ts:141](https://github.com/maiyunnet/kebab/blob/master/index.ts#L141)
1400
+ Defined in: [index.ts:142](https://github.com/maiyunnet/kebab/blob/master/index.ts#L142)
1401
1401
 
1402
1402
  #### aid
1403
1403
 
@@ -1426,7 +1426,7 @@ index/interfaces/IConfigVector.md
1426
1426
 
1427
1427
  # Interface: IConfigVector
1428
1428
 
1429
- Defined in: [index.ts:127](https://github.com/maiyunnet/kebab/blob/master/index.ts#L127)
1429
+ Defined in: [index.ts:128](https://github.com/maiyunnet/kebab/blob/master/index.ts#L128)
1430
1430
 
1431
1431
  向量数据库
1432
1432
 
@@ -1436,7 +1436,7 @@ Defined in: [index.ts:127](https://github.com/maiyunnet/kebab/blob/master/index.
1436
1436
 
1437
1437
  > **host**: `string`
1438
1438
 
1439
- Defined in: [index.ts:128](https://github.com/maiyunnet/kebab/blob/master/index.ts#L128)
1439
+ Defined in: [index.ts:129](https://github.com/maiyunnet/kebab/blob/master/index.ts#L129)
1440
1440
 
1441
1441
  ***
1442
1442
 
@@ -1444,7 +1444,7 @@ Defined in: [index.ts:128](https://github.com/maiyunnet/kebab/blob/master/index.
1444
1444
 
1445
1445
  > **name**: `string`
1446
1446
 
1447
- Defined in: [index.ts:130](https://github.com/maiyunnet/kebab/blob/master/index.ts#L130)
1447
+ Defined in: [index.ts:131](https://github.com/maiyunnet/kebab/blob/master/index.ts#L131)
1448
1448
 
1449
1449
  ***
1450
1450
 
@@ -1452,7 +1452,7 @@ Defined in: [index.ts:130](https://github.com/maiyunnet/kebab/blob/master/index.
1452
1452
 
1453
1453
  > **port**: `number`
1454
1454
 
1455
- Defined in: [index.ts:129](https://github.com/maiyunnet/kebab/blob/master/index.ts#L129)
1455
+ Defined in: [index.ts:130](https://github.com/maiyunnet/kebab/blob/master/index.ts#L130)
1456
1456
 
1457
1457
  ***
1458
1458
 
@@ -1460,7 +1460,7 @@ Defined in: [index.ts:129](https://github.com/maiyunnet/kebab/blob/master/index.
1460
1460
 
1461
1461
  > **pwd**: `string`
1462
1462
 
1463
- Defined in: [index.ts:132](https://github.com/maiyunnet/kebab/blob/master/index.ts#L132)
1463
+ Defined in: [index.ts:133](https://github.com/maiyunnet/kebab/blob/master/index.ts#L133)
1464
1464
 
1465
1465
  ***
1466
1466
 
@@ -1468,7 +1468,7 @@ Defined in: [index.ts:132](https://github.com/maiyunnet/kebab/blob/master/index.
1468
1468
 
1469
1469
  > **user**: `string`
1470
1470
 
1471
- Defined in: [index.ts:131](https://github.com/maiyunnet/kebab/blob/master/index.ts#L131)
1471
+ Defined in: [index.ts:132](https://github.com/maiyunnet/kebab/blob/master/index.ts#L132)
1472
1472
 
1473
1473
  index/interfaces/IPostFile.md
1474
1474
  ---
@@ -1481,7 +1481,7 @@ index/interfaces/IPostFile.md
1481
1481
 
1482
1482
  # Interface: IPostFile
1483
1483
 
1484
- Defined in: [index.ts:251](https://github.com/maiyunnet/kebab/blob/master/index.ts#L251)
1484
+ Defined in: [index.ts:252](https://github.com/maiyunnet/kebab/blob/master/index.ts#L252)
1485
1485
 
1486
1486
  上传的文件信息对象
1487
1487
 
@@ -1491,7 +1491,7 @@ Defined in: [index.ts:251](https://github.com/maiyunnet/kebab/blob/master/index.
1491
1491
 
1492
1492
  > `readonly` **name**: `string`
1493
1493
 
1494
- Defined in: [index.ts:252](https://github.com/maiyunnet/kebab/blob/master/index.ts#L252)
1494
+ Defined in: [index.ts:253](https://github.com/maiyunnet/kebab/blob/master/index.ts#L253)
1495
1495
 
1496
1496
  ***
1497
1497
 
@@ -1499,7 +1499,7 @@ Defined in: [index.ts:252](https://github.com/maiyunnet/kebab/blob/master/index.
1499
1499
 
1500
1500
  > `readonly` **origin**: `string`
1501
1501
 
1502
- Defined in: [index.ts:253](https://github.com/maiyunnet/kebab/blob/master/index.ts#L253)
1502
+ Defined in: [index.ts:254](https://github.com/maiyunnet/kebab/blob/master/index.ts#L254)
1503
1503
 
1504
1504
  ***
1505
1505
 
@@ -1507,7 +1507,7 @@ Defined in: [index.ts:253](https://github.com/maiyunnet/kebab/blob/master/index.
1507
1507
 
1508
1508
  > `readonly` **path**: `string`
1509
1509
 
1510
- Defined in: [index.ts:255](https://github.com/maiyunnet/kebab/blob/master/index.ts#L255)
1510
+ Defined in: [index.ts:256](https://github.com/maiyunnet/kebab/blob/master/index.ts#L256)
1511
1511
 
1512
1512
  ***
1513
1513
 
@@ -1515,7 +1515,7 @@ Defined in: [index.ts:255](https://github.com/maiyunnet/kebab/blob/master/index.
1515
1515
 
1516
1516
  > `readonly` **size**: `number`
1517
1517
 
1518
- Defined in: [index.ts:254](https://github.com/maiyunnet/kebab/blob/master/index.ts#L254)
1518
+ Defined in: [index.ts:255](https://github.com/maiyunnet/kebab/blob/master/index.ts#L255)
1519
1519
 
1520
1520
  index/interfaces/IUrlParse.md
1521
1521
  ---
@@ -1528,7 +1528,7 @@ index/interfaces/IUrlParse.md
1528
1528
 
1529
1529
  # Interface: IUrlParse
1530
1530
 
1531
- Defined in: [index.ts:89](https://github.com/maiyunnet/kebab/blob/master/index.ts#L89)
1531
+ Defined in: [index.ts:90](https://github.com/maiyunnet/kebab/blob/master/index.ts#L90)
1532
1532
 
1533
1533
  ## Properties
1534
1534
 
@@ -1536,7 +1536,7 @@ Defined in: [index.ts:89](https://github.com/maiyunnet/kebab/blob/master/index.t
1536
1536
 
1537
1537
  > **auth**: `string` \| `null`
1538
1538
 
1539
- Defined in: [index.ts:91](https://github.com/maiyunnet/kebab/blob/master/index.ts#L91)
1539
+ Defined in: [index.ts:92](https://github.com/maiyunnet/kebab/blob/master/index.ts#L92)
1540
1540
 
1541
1541
  ***
1542
1542
 
@@ -1544,7 +1544,7 @@ Defined in: [index.ts:91](https://github.com/maiyunnet/kebab/blob/master/index.t
1544
1544
 
1545
1545
  > **hash**: `string` \| `null`
1546
1546
 
1547
- Defined in: [index.ts:100](https://github.com/maiyunnet/kebab/blob/master/index.ts#L100)
1547
+ Defined in: [index.ts:101](https://github.com/maiyunnet/kebab/blob/master/index.ts#L101)
1548
1548
 
1549
1549
  ***
1550
1550
 
@@ -1552,7 +1552,7 @@ Defined in: [index.ts:100](https://github.com/maiyunnet/kebab/blob/master/index.
1552
1552
 
1553
1553
  > **host**: `string` \| `null`
1554
1554
 
1555
- Defined in: [index.ts:94](https://github.com/maiyunnet/kebab/blob/master/index.ts#L94)
1555
+ Defined in: [index.ts:95](https://github.com/maiyunnet/kebab/blob/master/index.ts#L95)
1556
1556
 
1557
1557
  ***
1558
1558
 
@@ -1560,7 +1560,7 @@ Defined in: [index.ts:94](https://github.com/maiyunnet/kebab/blob/master/index.t
1560
1560
 
1561
1561
  > **hostname**: `string` \| `null`
1562
1562
 
1563
- Defined in: [index.ts:95](https://github.com/maiyunnet/kebab/blob/master/index.ts#L95)
1563
+ Defined in: [index.ts:96](https://github.com/maiyunnet/kebab/blob/master/index.ts#L96)
1564
1564
 
1565
1565
  ***
1566
1566
 
@@ -1568,7 +1568,7 @@ Defined in: [index.ts:95](https://github.com/maiyunnet/kebab/blob/master/index.t
1568
1568
 
1569
1569
  > **pass**: `string` \| `null`
1570
1570
 
1571
- Defined in: [index.ts:93](https://github.com/maiyunnet/kebab/blob/master/index.ts#L93)
1571
+ Defined in: [index.ts:94](https://github.com/maiyunnet/kebab/blob/master/index.ts#L94)
1572
1572
 
1573
1573
  ***
1574
1574
 
@@ -1576,7 +1576,7 @@ Defined in: [index.ts:93](https://github.com/maiyunnet/kebab/blob/master/index.t
1576
1576
 
1577
1577
  > **path**: `string` \| `null`
1578
1578
 
1579
- Defined in: [index.ts:98](https://github.com/maiyunnet/kebab/blob/master/index.ts#L98)
1579
+ Defined in: [index.ts:99](https://github.com/maiyunnet/kebab/blob/master/index.ts#L99)
1580
1580
 
1581
1581
  ***
1582
1582
 
@@ -1584,7 +1584,7 @@ Defined in: [index.ts:98](https://github.com/maiyunnet/kebab/blob/master/index.t
1584
1584
 
1585
1585
  > **pathname**: `string`
1586
1586
 
1587
- Defined in: [index.ts:97](https://github.com/maiyunnet/kebab/blob/master/index.ts#L97)
1587
+ Defined in: [index.ts:98](https://github.com/maiyunnet/kebab/blob/master/index.ts#L98)
1588
1588
 
1589
1589
  ***
1590
1590
 
@@ -1592,7 +1592,7 @@ Defined in: [index.ts:97](https://github.com/maiyunnet/kebab/blob/master/index.t
1592
1592
 
1593
1593
  > **port**: `string` \| `null`
1594
1594
 
1595
- Defined in: [index.ts:96](https://github.com/maiyunnet/kebab/blob/master/index.ts#L96)
1595
+ Defined in: [index.ts:97](https://github.com/maiyunnet/kebab/blob/master/index.ts#L97)
1596
1596
 
1597
1597
  ***
1598
1598
 
@@ -1600,7 +1600,7 @@ Defined in: [index.ts:96](https://github.com/maiyunnet/kebab/blob/master/index.t
1600
1600
 
1601
1601
  > **protocol**: `string` \| `null`
1602
1602
 
1603
- Defined in: [index.ts:90](https://github.com/maiyunnet/kebab/blob/master/index.ts#L90)
1603
+ Defined in: [index.ts:91](https://github.com/maiyunnet/kebab/blob/master/index.ts#L91)
1604
1604
 
1605
1605
  ***
1606
1606
 
@@ -1608,7 +1608,7 @@ Defined in: [index.ts:90](https://github.com/maiyunnet/kebab/blob/master/index.t
1608
1608
 
1609
1609
  > **query**: `string` \| `null`
1610
1610
 
1611
- Defined in: [index.ts:99](https://github.com/maiyunnet/kebab/blob/master/index.ts#L99)
1611
+ Defined in: [index.ts:100](https://github.com/maiyunnet/kebab/blob/master/index.ts#L100)
1612
1612
 
1613
1613
  ***
1614
1614
 
@@ -1616,7 +1616,7 @@ Defined in: [index.ts:99](https://github.com/maiyunnet/kebab/blob/master/index.t
1616
1616
 
1617
1617
  > **user**: `string` \| `null`
1618
1618
 
1619
- Defined in: [index.ts:92](https://github.com/maiyunnet/kebab/blob/master/index.ts#L92)
1619
+ Defined in: [index.ts:93](https://github.com/maiyunnet/kebab/blob/master/index.ts#L93)
1620
1620
 
1621
1621
  index/interfaces/IVhost.md
1622
1622
  ---
@@ -1629,7 +1629,7 @@ index/interfaces/IVhost.md
1629
1629
 
1630
1630
  # Interface: IVhost
1631
1631
 
1632
- Defined in: [index.ts:243](https://github.com/maiyunnet/kebab/blob/master/index.ts#L243)
1632
+ Defined in: [index.ts:244](https://github.com/maiyunnet/kebab/blob/master/index.ts#L244)
1633
1633
 
1634
1634
  虚拟机配置对象
1635
1635
 
@@ -1639,7 +1639,7 @@ Defined in: [index.ts:243](https://github.com/maiyunnet/kebab/blob/master/index.
1639
1639
 
1640
1640
  > `readonly` **domains**: `string`[]
1641
1641
 
1642
- Defined in: [index.ts:245](https://github.com/maiyunnet/kebab/blob/master/index.ts#L245)
1642
+ Defined in: [index.ts:246](https://github.com/maiyunnet/kebab/blob/master/index.ts#L246)
1643
1643
 
1644
1644
  ***
1645
1645
 
@@ -1647,7 +1647,7 @@ Defined in: [index.ts:245](https://github.com/maiyunnet/kebab/blob/master/index.
1647
1647
 
1648
1648
  > `readonly` `optional` **name?**: `string`
1649
1649
 
1650
- Defined in: [index.ts:244](https://github.com/maiyunnet/kebab/blob/master/index.ts#L244)
1650
+ Defined in: [index.ts:245](https://github.com/maiyunnet/kebab/blob/master/index.ts#L245)
1651
1651
 
1652
1652
  ***
1653
1653
 
@@ -1655,7 +1655,7 @@ Defined in: [index.ts:244](https://github.com/maiyunnet/kebab/blob/master/index.
1655
1655
 
1656
1656
  > `readonly` `optional` **remark?**: `string`
1657
1657
 
1658
- Defined in: [index.ts:247](https://github.com/maiyunnet/kebab/blob/master/index.ts#L247)
1658
+ Defined in: [index.ts:248](https://github.com/maiyunnet/kebab/blob/master/index.ts#L248)
1659
1659
 
1660
1660
  ***
1661
1661
 
@@ -1663,7 +1663,7 @@ Defined in: [index.ts:247](https://github.com/maiyunnet/kebab/blob/master/index.
1663
1663
 
1664
1664
  > `readonly` **root**: `string`
1665
1665
 
1666
- Defined in: [index.ts:246](https://github.com/maiyunnet/kebab/blob/master/index.ts#L246)
1666
+ Defined in: [index.ts:247](https://github.com/maiyunnet/kebab/blob/master/index.ts#L247)
1667
1667
 
1668
1668
  index.md
1669
1669
  ---
@@ -1945,7 +1945,7 @@ index/variables/VER.md
1945
1945
 
1946
1946
  # Variable: VER
1947
1947
 
1948
- > `const` **VER**: `"10.0.0"` = `'10.0.0'`
1948
+ > `const` **VER**: `"10.1.0"` = `'10.1.0'`
1949
1949
 
1950
1950
  Defined in: [index.ts:10](https://github.com/maiyunnet/kebab/blob/master/index.ts#L10)
1951
1951
 
@@ -117668,7 +117668,7 @@ Defined in: [lib/db/conn.ts:64](https://github.com/maiyunnet/kebab/blob/master/l
117668
117668
 
117669
117669
  > **beginTransaction**(`logError?`): `Promise`\<`boolean`\>
117670
117670
 
117671
- Defined in: [lib/db/conn.ts:348](https://github.com/maiyunnet/kebab/blob/master/lib/db/conn.ts#L348)
117671
+ Defined in: [lib/db/conn.ts:357](https://github.com/maiyunnet/kebab/blob/master/lib/db/conn.ts#L357)
117672
117672
 
117673
117673
  开启事务,只能在独占连接中使用
117674
117674
 
@@ -117692,7 +117692,7 @@ Defined in: [lib/db/conn.ts:348](https://github.com/maiyunnet/kebab/blob/master/
117692
117692
 
117693
117693
  > **commit**(): `Promise`\<`boolean`\>
117694
117694
 
117695
- Defined in: [lib/db/conn.ts:378](https://github.com/maiyunnet/kebab/blob/master/lib/db/conn.ts#L378)
117695
+ Defined in: [lib/db/conn.ts:387](https://github.com/maiyunnet/kebab/blob/master/lib/db/conn.ts#L387)
117696
117696
 
117697
117697
  #### Returns
117698
117698
 
@@ -117704,7 +117704,7 @@ Defined in: [lib/db/conn.ts:378](https://github.com/maiyunnet/kebab/blob/master/
117704
117704
 
117705
117705
  > **end**(): `Promise`\<`boolean`\>
117706
117706
 
117707
- Defined in: [lib/db/conn.ts:331](https://github.com/maiyunnet/kebab/blob/master/lib/db/conn.ts#L331)
117707
+ Defined in: [lib/db/conn.ts:340](https://github.com/maiyunnet/kebab/blob/master/lib/db/conn.ts#L340)
117708
117708
 
117709
117709
  关闭连接,一般情况下不使用
117710
117710
 
@@ -117718,7 +117718,7 @@ Defined in: [lib/db/conn.ts:331](https://github.com/maiyunnet/kebab/blob/master/
117718
117718
 
117719
117719
  > **execute**(`sql`, `values?`): `Promise`\<[`IPacket`](../../interfaces/IPacket.md)\>
117720
117720
 
117721
- Defined in: [lib/db/conn.ts:257](https://github.com/maiyunnet/kebab/blob/master/lib/db/conn.ts#L257)
117721
+ Defined in: [lib/db/conn.ts:266](https://github.com/maiyunnet/kebab/blob/master/lib/db/conn.ts#L266)
117722
117722
 
117723
117723
  执行一条 SQL 并获得影响行数对象 packet
117724
117724
 
@@ -117866,9 +117866,9 @@ Defined in: [lib/db/conn.ts:123](https://github.com/maiyunnet/kebab/blob/master/
117866
117866
 
117867
117867
  #### Call Signature
117868
117868
 
117869
- > **query**(`sql`, `values?`): `Promise`\<[`IData`](../../interfaces/IData.md)\<`Record`\<`string`, `any`\>\>\>
117869
+ > **query**(`sql`, `values?`, `opt?`): `Promise`\<[`IData`](../../interfaces/IData.md)\<`Record`\<`string`, `any`\>\>\>
117870
117870
 
117871
- Defined in: [lib/db/conn.ts:189](https://github.com/maiyunnet/kebab/blob/master/lib/db/conn.ts#L189)
117871
+ Defined in: [lib/db/conn.ts:190](https://github.com/maiyunnet/kebab/blob/master/lib/db/conn.ts#L190)
117872
117872
 
117873
117873
  执行一条 SQL 并获得返回数据
117874
117874
 
@@ -117886,6 +117886,12 @@ Defined in: [lib/db/conn.ts:189](https://github.com/maiyunnet/kebab/blob/master/
117886
117886
 
117887
117887
  SQL 占位符绑定的值
117888
117888
 
117889
+ ###### opt?
117890
+
117891
+ [`IQueryOptions`](../../interfaces/IQueryOptions.md)
117892
+
117893
+ 查询选项(单连接模式下忽略)
117894
+
117889
117895
  ##### Returns
117890
117896
 
117891
117897
  `Promise`\<[`IData`](../../interfaces/IData.md)\<`Record`\<`string`, `any`\>\>\>
@@ -117894,9 +117900,9 @@ SQL 占位符绑定的值
117894
117900
 
117895
117901
  #### Call Signature
117896
117902
 
117897
- > **query**\<`TRow`\>(`sql`, `values?`): `Promise`\<[`IData`](../../interfaces/IData.md)\<`TRow`\>\>
117903
+ > **query**\<`TRow`\>(`sql`, `values?`, `opt?`): `Promise`\<[`IData`](../../interfaces/IData.md)\<`TRow`\>\>
117898
117904
 
117899
- Defined in: [lib/db/conn.ts:197](https://github.com/maiyunnet/kebab/blob/master/lib/db/conn.ts#L197)
117905
+ Defined in: [lib/db/conn.ts:199](https://github.com/maiyunnet/kebab/blob/master/lib/db/conn.ts#L199)
117900
117906
 
117901
117907
  执行一条 SQL,按指定类型返回数据行
117902
117908
 
@@ -117922,6 +117928,12 @@ SQL 返回的行结构,由调用方根据查询字段指定
117922
117928
 
117923
117929
  SQL 占位符绑定的值
117924
117930
 
117931
+ ###### opt?
117932
+
117933
+ [`IQueryOptions`](../../interfaces/IQueryOptions.md)
117934
+
117935
+ 查询选项(单连接模式下忽略)
117936
+
117925
117937
  ##### Returns
117926
117938
 
117927
117939
  `Promise`\<[`IData`](../../interfaces/IData.md)\<`TRow`\>\>
@@ -117948,7 +117960,7 @@ Defined in: [lib/db/conn.ts:156](https://github.com/maiyunnet/kebab/blob/master/
117948
117960
 
117949
117961
  > **rollback**(): `Promise`\<`boolean`\>
117950
117962
 
117951
- Defined in: [lib/db/conn.ts:398](https://github.com/maiyunnet/kebab/blob/master/lib/db/conn.ts#L398)
117963
+ Defined in: [lib/db/conn.ts:407](https://github.com/maiyunnet/kebab/blob/master/lib/db/conn.ts#L407)
117952
117964
 
117953
117965
  #### Returns
117954
117966
 
@@ -118065,9 +118077,9 @@ lib/db/functions/get.md
118065
118077
 
118066
118078
  > **get**(`ctrEtc`, `opt?`): [`Pool`](../pool/classes/Pool.md)
118067
118079
 
118068
- Defined in: [lib/db.ts:68](https://github.com/maiyunnet/kebab/blob/master/lib/db.ts#L68)
118080
+ Defined in: [lib/db.ts:105](https://github.com/maiyunnet/kebab/blob/master/lib/db.ts#L105)
118069
118081
 
118070
- 获取 Db Pool 对象
118082
+ 获取 Db Pool 对象(单 Pool 内同时管理主库和可选只读从库)
118071
118083
 
118072
118084
  ## Parameters
118073
118085
 
@@ -118075,7 +118087,7 @@ Defined in: [lib/db.ts:68](https://github.com/maiyunnet/kebab/blob/master/lib/db
118075
118087
 
118076
118088
  [`IConfigDb`](../../../index/interfaces/IConfigDb.md) \| [`Ctr`](../../../sys/ctr/classes/Ctr.md)
118077
118089
 
118078
- 控制器对象或数据库配置信息
118090
+ 控制器对象或主库连接配置
118079
118091
 
118080
118092
  ### opt?
118081
118093
 
@@ -118083,15 +118095,15 @@ Defined in: [lib/db.ts:68](https://github.com/maiyunnet/kebab/blob/master/lib/db
118083
118095
 
118084
118096
  #### read?
118085
118097
 
118086
- `boolean`
118098
+ `Partial`\<[`IConfigDb`](../../../index/interfaces/IConfigDb.md)\> \| `Partial`\<[`IConfigDb`](../../../index/interfaces/IConfigDb.md)\>[]
118087
118099
 
118088
- 是否使用只读库,默认 false
118100
+ 可选只读从库配置,传入时覆盖控制器配置中的 read
118089
118101
 
118090
118102
  #### service?
118091
118103
 
118092
118104
  [`ESERVICE`](../enumerations/ESERVICE.md)
118093
118105
 
118094
- 服务商,默认 PGSQL
118106
+ 服务商,未传时从控制器配置读取,直接传配置时默认 PGSQL
118095
118107
 
118096
118108
  ## Returns
118097
118109
 
@@ -118118,6 +118130,7 @@ lib/db/index.md
118118
118130
 
118119
118131
  - [IData](interfaces/IData.md)
118120
118132
  - [IPacket](interfaces/IPacket.md)
118133
+ - [IQueryOptions](interfaces/IQueryOptions.md)
118121
118134
 
118122
118135
  ## Functions
118123
118136
 
@@ -118303,6 +118316,31 @@ Defined in: [lib/db.ts:59](https://github.com/maiyunnet/kebab/blob/master/lib/db
118303
118316
 
118304
118317
  1-正常,-500-服务器错误
118305
118318
 
118319
+ lib/db/interfaces/IQueryOptions.md
118320
+ ---
118321
+
118322
+ [**Documents for @maiyunnet/kebab**](../../../index.md)
118323
+
118324
+ ***
118325
+
118326
+ [Documents for @maiyunnet/kebab](../../../index.md) / [lib/db](../index.md) / IQueryOptions
118327
+
118328
+ # Interface: IQueryOptions
118329
+
118330
+ Defined in: [lib/db.ts:63](https://github.com/maiyunnet/kebab/blob/master/lib/db.ts#L63)
118331
+
118332
+ query 查询选项
118333
+
118334
+ ## Properties
118335
+
118336
+ ### read?
118337
+
118338
+ > `optional` **read?**: `boolean`
118339
+
118340
+ Defined in: [lib/db.ts:65](https://github.com/maiyunnet/kebab/blob/master/lib/db.ts#L65)
118341
+
118342
+ 是否优先使用只读从库,默认 false(走主库);未配置从库时自动走主库
118343
+
118306
118344
  lib/db/pool/classes/Pool.md
118307
118345
  ---
118308
118346
 
@@ -118324,7 +118362,7 @@ Defined in: [lib/db/pool.ts:127](https://github.com/maiyunnet/kebab/blob/master/
118324
118362
 
118325
118363
  > **new Pool**(`etc`, `opt`): `Pool`
118326
118364
 
118327
- Defined in: [lib/db/pool.ts:138](https://github.com/maiyunnet/kebab/blob/master/lib/db/pool.ts#L138)
118365
+ Defined in: [lib/db/pool.ts:141](https://github.com/maiyunnet/kebab/blob/master/lib/db/pool.ts#L141)
118328
118366
 
118329
118367
  #### Parameters
118330
118368
 
@@ -118334,6 +118372,12 @@ Defined in: [lib/db/pool.ts:138](https://github.com/maiyunnet/kebab/blob/master/
118334
118372
 
118335
118373
  ##### opt
118336
118374
 
118375
+ ###### read?
118376
+
118377
+ [`IConfigDb`](../../../../index/interfaces/IConfigDb.md)[]
118378
+
118379
+ 可选只读从库连接列表
118380
+
118337
118381
  ###### service
118338
118382
 
118339
118383
  [`ESERVICE`](../../enumerations/ESERVICE.md)
@@ -118350,7 +118394,7 @@ Defined in: [lib/db/pool.ts:138](https://github.com/maiyunnet/kebab/blob/master/
118350
118394
 
118351
118395
  > **beginTransaction**(`ctr`): `Promise`\<[`Transaction`](../../tran/classes/Transaction.md) \| `null`\>
118352
118396
 
118353
- Defined in: [lib/db/pool.ts:215](https://github.com/maiyunnet/kebab/blob/master/lib/db/pool.ts#L215)
118397
+ Defined in: [lib/db/pool.ts:231](https://github.com/maiyunnet/kebab/blob/master/lib/db/pool.ts#L231)
118354
118398
 
118355
118399
  开启事务,返回事务对象并锁定连接,别人任何人不可用,有 ctr 的话必传 this,独立执行时可传 null
118356
118400
 
@@ -118370,7 +118414,7 @@ Defined in: [lib/db/pool.ts:215](https://github.com/maiyunnet/kebab/blob/master/
118370
118414
 
118371
118415
  > **execute**(`sql`, `values?`): `Promise`\<[`IPacket`](../../interfaces/IPacket.md)\>
118372
118416
 
118373
- Defined in: [lib/db/pool.ts:195](https://github.com/maiyunnet/kebab/blob/master/lib/db/pool.ts#L195)
118417
+ Defined in: [lib/db/pool.ts:211](https://github.com/maiyunnet/kebab/blob/master/lib/db/pool.ts#L211)
118374
118418
 
118375
118419
  执行一条 SQL 并获得影响行数对象 packet,连接失败抛出错误
118376
118420
 
@@ -118398,7 +118442,7 @@ Defined in: [lib/db/pool.ts:195](https://github.com/maiyunnet/kebab/blob/master/
118398
118442
 
118399
118443
  > **getName**(): `string`
118400
118444
 
118401
- Defined in: [lib/db/pool.ts:152](https://github.com/maiyunnet/kebab/blob/master/lib/db/pool.ts#L152)
118445
+ Defined in: [lib/db/pool.ts:158](https://github.com/maiyunnet/kebab/blob/master/lib/db/pool.ts#L158)
118402
118446
 
118403
118447
  获取当前连接的数据库名称
118404
118448
 
@@ -118412,7 +118456,7 @@ Defined in: [lib/db/pool.ts:152](https://github.com/maiyunnet/kebab/blob/master/
118412
118456
 
118413
118457
  > **getQueries**(): `number`
118414
118458
 
118415
- Defined in: [lib/db/pool.ts:355](https://github.com/maiyunnet/kebab/blob/master/lib/db/pool.ts#L355)
118459
+ Defined in: [lib/db/pool.ts:387](https://github.com/maiyunnet/kebab/blob/master/lib/db/pool.ts#L387)
118416
118460
 
118417
118461
  获取 SQL 执行次数
118418
118462
 
@@ -118426,7 +118470,7 @@ Defined in: [lib/db/pool.ts:355](https://github.com/maiyunnet/kebab/blob/master/
118426
118470
 
118427
118471
  > **getService**(): [`ESERVICE`](../../enumerations/ESERVICE.md)
118428
118472
 
118429
- Defined in: [lib/db/pool.ts:147](https://github.com/maiyunnet/kebab/blob/master/lib/db/pool.ts#L147)
118473
+ Defined in: [lib/db/pool.ts:153](https://github.com/maiyunnet/kebab/blob/master/lib/db/pool.ts#L153)
118430
118474
 
118431
118475
  获取当前连接的服务商
118432
118476
 
@@ -118440,9 +118484,9 @@ Defined in: [lib/db/pool.ts:147](https://github.com/maiyunnet/kebab/blob/master/
118440
118484
 
118441
118485
  #### Call Signature
118442
118486
 
118443
- > **query**(`sql`, `values?`): `Promise`\<[`IData`](../../interfaces/IData.md)\<`Record`\<`string`, `any`\>\>\>
118487
+ > **query**(`sql`, `values?`, `opt?`): `Promise`\<[`IData`](../../interfaces/IData.md)\<`Record`\<`string`, `any`\>\>\>
118444
118488
 
118445
- Defined in: [lib/db/pool.ts:162](https://github.com/maiyunnet/kebab/blob/master/lib/db/pool.ts#L162)
118489
+ Defined in: [lib/db/pool.ts:169](https://github.com/maiyunnet/kebab/blob/master/lib/db/pool.ts#L169)
118446
118490
 
118447
118491
  执行一条 SQL,无视顺序和相同连接,随用随取
118448
118492
 
@@ -118460,6 +118504,12 @@ Defined in: [lib/db/pool.ts:162](https://github.com/maiyunnet/kebab/blob/master/
118460
118504
 
118461
118505
  SQL 占位符绑定的值
118462
118506
 
118507
+ ###### opt?
118508
+
118509
+ [`IQueryOptions`](../../interfaces/IQueryOptions.md)
118510
+
118511
+ 查询选项,read 为 true 且已配置从库时路由到只读从库
118512
+
118463
118513
  ##### Returns
118464
118514
 
118465
118515
  `Promise`\<[`IData`](../../interfaces/IData.md)\<`Record`\<`string`, `any`\>\>\>
@@ -118468,9 +118518,9 @@ SQL 占位符绑定的值
118468
118518
 
118469
118519
  #### Call Signature
118470
118520
 
118471
- > **query**\<`TRow`\>(`sql`, `values?`): `Promise`\<[`IData`](../../interfaces/IData.md)\<`TRow`\>\>
118521
+ > **query**\<`TRow`\>(`sql`, `values?`, `opt?`): `Promise`\<[`IData`](../../interfaces/IData.md)\<`TRow`\>\>
118472
118522
 
118473
- Defined in: [lib/db/pool.ts:170](https://github.com/maiyunnet/kebab/blob/master/lib/db/pool.ts#L170)
118523
+ Defined in: [lib/db/pool.ts:178](https://github.com/maiyunnet/kebab/blob/master/lib/db/pool.ts#L178)
118474
118524
 
118475
118525
  执行一条 SQL,按指定类型返回数据行
118476
118526
 
@@ -118496,6 +118546,12 @@ SQL 返回的行结构,由调用方根据查询字段指定
118496
118546
 
118497
118547
  SQL 占位符绑定的值
118498
118548
 
118549
+ ###### opt?
118550
+
118551
+ [`IQueryOptions`](../../interfaces/IQueryOptions.md)
118552
+
118553
+ 查询选项,read 为 true 且已配置从库时路由到只读从库
118554
+
118499
118555
  ##### Returns
118500
118556
 
118501
118557
  `Promise`\<[`IData`](../../interfaces/IData.md)\<`TRow`\>\>
@@ -118694,7 +118750,7 @@ Defined in: [lib/db/tran.ts:28](https://github.com/maiyunnet/kebab/blob/master/l
118694
118750
 
118695
118751
  > **commit**(): `Promise`\<`boolean`\>
118696
118752
 
118697
- Defined in: [lib/db/tran.ts:114](https://github.com/maiyunnet/kebab/blob/master/lib/db/tran.ts#L114)
118753
+ Defined in: [lib/db/tran.ts:123](https://github.com/maiyunnet/kebab/blob/master/lib/db/tran.ts#L123)
118698
118754
 
118699
118755
  #### Returns
118700
118756
 
@@ -118706,7 +118762,7 @@ Defined in: [lib/db/tran.ts:114](https://github.com/maiyunnet/kebab/blob/master/
118706
118762
 
118707
118763
  > **execute**(`sql`, `values?`): `Promise`\<[`IPacket`](../../interfaces/IPacket.md)\>
118708
118764
 
118709
- Defined in: [lib/db/tran.ts:95](https://github.com/maiyunnet/kebab/blob/master/lib/db/tran.ts#L95)
118765
+ Defined in: [lib/db/tran.ts:104](https://github.com/maiyunnet/kebab/blob/master/lib/db/tran.ts#L104)
118710
118766
 
118711
118767
  执行一条 SQL 并获得影响行数对象 packet,连接失败抛出错误
118712
118768
 
@@ -118748,11 +118804,11 @@ Defined in: [lib/db/tran.ts:52](https://github.com/maiyunnet/kebab/blob/master/l
118748
118804
 
118749
118805
  #### Call Signature
118750
118806
 
118751
- > **query**(`sql`, `values?`): `Promise`\<[`IData`](../../interfaces/IData.md)\<`Record`\<`string`, `any`\>\>\>
118807
+ > **query**(`sql`, `values?`, `opt?`): `Promise`\<[`IData`](../../interfaces/IData.md)\<`Record`\<`string`, `any`\>\>\>
118752
118808
 
118753
- Defined in: [lib/db/tran.ts:62](https://github.com/maiyunnet/kebab/blob/master/lib/db/tran.ts#L62)
118809
+ Defined in: [lib/db/tran.ts:63](https://github.com/maiyunnet/kebab/blob/master/lib/db/tran.ts#L63)
118754
118810
 
118755
- 在事务连接中执行一条 SQL
118811
+ 在事务连接中执行一条 SQL(事务内始终走当前主库连接,忽略 read 选项)
118756
118812
 
118757
118813
  ##### Parameters
118758
118814
 
@@ -118768,6 +118824,12 @@ Defined in: [lib/db/tran.ts:62](https://github.com/maiyunnet/kebab/blob/master/l
118768
118824
 
118769
118825
  SQL 占位符绑定的值
118770
118826
 
118827
+ ###### opt?
118828
+
118829
+ [`IQueryOptions`](../../interfaces/IQueryOptions.md)
118830
+
118831
+ 查询选项(事务内忽略)
118832
+
118771
118833
  ##### Returns
118772
118834
 
118773
118835
  `Promise`\<[`IData`](../../interfaces/IData.md)\<`Record`\<`string`, `any`\>\>\>
@@ -118776,11 +118838,11 @@ SQL 占位符绑定的值
118776
118838
 
118777
118839
  #### Call Signature
118778
118840
 
118779
- > **query**\<`TRow`\>(`sql`, `values?`): `Promise`\<[`IData`](../../interfaces/IData.md)\<`TRow`\>\>
118841
+ > **query**\<`TRow`\>(`sql`, `values?`, `opt?`): `Promise`\<[`IData`](../../interfaces/IData.md)\<`TRow`\>\>
118780
118842
 
118781
- Defined in: [lib/db/tran.ts:70](https://github.com/maiyunnet/kebab/blob/master/lib/db/tran.ts#L70)
118843
+ Defined in: [lib/db/tran.ts:72](https://github.com/maiyunnet/kebab/blob/master/lib/db/tran.ts#L72)
118782
118844
 
118783
- 在事务连接中执行一条 SQL,按指定类型返回数据行
118845
+ 在事务连接中执行一条 SQL,按指定类型返回数据行(事务内始终走当前主库连接,忽略 read 选项)
118784
118846
 
118785
118847
  ##### Type Parameters
118786
118848
 
@@ -118804,6 +118866,12 @@ SQL 返回的行结构,由调用方根据查询字段指定
118804
118866
 
118805
118867
  SQL 占位符绑定的值
118806
118868
 
118869
+ ###### opt?
118870
+
118871
+ [`IQueryOptions`](../../interfaces/IQueryOptions.md)
118872
+
118873
+ 查询选项(事务内忽略)
118874
+
118807
118875
  ##### Returns
118808
118876
 
118809
118877
  `Promise`\<[`IData`](../../interfaces/IData.md)\<`TRow`\>\>
@@ -118816,7 +118884,7 @@ SQL 占位符绑定的值
118816
118884
 
118817
118885
  > **rollback**(): `Promise`\<`boolean`\>
118818
118886
 
118819
- Defined in: [lib/db/tran.ts:136](https://github.com/maiyunnet/kebab/blob/master/lib/db/tran.ts#L136)
118887
+ Defined in: [lib/db/tran.ts:145](https://github.com/maiyunnet/kebab/blob/master/lib/db/tran.ts#L145)
118820
118888
 
118821
118889
  #### Returns
118822
118890
 
@@ -136649,6 +136717,8 @@ Defined in: [sys/ctr.ts:1094](https://github.com/maiyunnet/kebab/blob/master/sys
136649
136717
 
136650
136718
  `string`
136651
136719
 
136720
+ data 目录下的文件路径(不含 .json 扩展名)
136721
+
136652
136722
  #### Returns
136653
136723
 
136654
136724
  `Promise`\<`false` \| `T` \| `null`\>
@@ -136734,6 +136804,8 @@ Defined in: [sys/ctr.ts:475](https://github.com/maiyunnet/kebab/blob/master/sys/
136734
136804
 
136735
136805
  `string`
136736
136806
 
136807
+ 视图目录下的文件路径(不含 .ejs 扩展名)
136808
+
136737
136809
  ##### data?
136738
136810
 
136739
136811
  `any` = `{}`
@@ -137961,7 +138033,7 @@ sys/mod/classes/default.md
137961
138033
 
137962
138034
  # Class: default
137963
138035
 
137964
- Defined in: [sys/mod.ts:98](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L98)
138036
+ Defined in: [sys/mod.ts:100](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L100)
137965
138037
 
137966
138038
  开启软更需要在表添加字段:ALTER TABLE `table_name` ADD `time_remove` bigint NOT NULL DEFAULT '0' AFTER `xxx`;
137967
138039
 
@@ -137971,7 +138043,7 @@ Defined in: [sys/mod.ts:98](https://github.com/maiyunnet/kebab/blob/master/sys/m
137971
138043
 
137972
138044
  > **new default**(`opt`): `Mod`
137973
138045
 
137974
- Defined in: [sys/mod.ts:159](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L159)
138046
+ Defined in: [sys/mod.ts:164](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L164)
137975
138047
 
137976
138048
  构造函数
137977
138049
 
@@ -138023,6 +138095,12 @@ MySQL 优化器 Hint,如 `INDEX(\`t\` \`idx_xx\`)`,注入到 SELECT 后
138023
138095
 
138024
138096
  MySQL 表前缀或 PostgreSQL Schema 名,优先级:选项 > 类属性 > 配置
138025
138097
 
138098
+ ###### read?
138099
+
138100
+ `boolean`
138101
+
138102
+ 是否优先使用只读从库,默认 false(走主库)
138103
+
138026
138104
  ###### row?
138027
138105
 
138028
138106
  `Record`\<`string`, `any`\>
@@ -138045,7 +138123,7 @@ MySQL 表前缀或 PostgreSQL Schema 名,优先级:选项 > 类属性 > 配
138045
138123
 
138046
138124
  > `protected` **\_contain**: \{ `key`: `string`; `list`: `string`[]; \} \| `null` = `null`
138047
138125
 
138048
- Defined in: [sys/mod.ts:135](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L135)
138126
+ Defined in: [sys/mod.ts:137](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L137)
138049
138127
 
138050
138128
  必须追加的数据筛选 key 与 values,仅单表模式有效
138051
138129
 
@@ -138055,7 +138133,7 @@ Defined in: [sys/mod.ts:135](https://github.com/maiyunnet/kebab/blob/master/sys/
138055
138133
 
138056
138134
  > `protected` `optional` **\_ctr?**: [`Ctr`](../../ctr/classes/Ctr.md) = `undefined`
138057
138135
 
138058
- Defined in: [sys/mod.ts:150](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L150)
138136
+ Defined in: [sys/mod.ts:152](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L152)
138059
138137
 
138060
138138
  ctr 对象
138061
138139
 
@@ -138065,7 +138143,7 @@ ctr 对象
138065
138143
 
138066
138144
  > `protected` **\_data**: `Record`\<`string`, `any`\> = `{}`
138067
138145
 
138068
- Defined in: [sys/mod.ts:129](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L129)
138146
+ Defined in: [sys/mod.ts:131](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L131)
138069
138147
 
138070
138148
  模型获取的属性
138071
138149
 
@@ -138075,7 +138153,7 @@ Defined in: [sys/mod.ts:129](https://github.com/maiyunnet/kebab/blob/master/sys/
138075
138153
 
138076
138154
  > `protected` **\_db**: [`Transaction`](../../../lib/db/tran/classes/Transaction.md) \| [`Pool`](../../../lib/db/pool/classes/Pool.md)
138077
138155
 
138078
- Defined in: [sys/mod.ts:144](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L144)
138156
+ Defined in: [sys/mod.ts:146](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L146)
138079
138157
 
138080
138158
  数据库连接对象
138081
138159
 
@@ -138085,7 +138163,7 @@ Defined in: [sys/mod.ts:144](https://github.com/maiyunnet/kebab/blob/master/sys/
138085
138163
 
138086
138164
  > `protected` **\_fieldPrefix**: `string` = `''`
138087
138165
 
138088
- Defined in: [sys/mod.ts:153](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L153)
138166
+ Defined in: [sys/mod.ts:155](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L155)
138089
138167
 
138090
138168
  主表筛选前缀,优先 alias,其次表名
138091
138169
 
@@ -138095,7 +138173,7 @@ Defined in: [sys/mod.ts:153](https://github.com/maiyunnet/kebab/blob/master/sys/
138095
138173
 
138096
138174
  > `protected` **\_index**: `string`[] \| `null` = `null`
138097
138175
 
138098
- Defined in: [sys/mod.ts:132](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L132)
138176
+ Defined in: [sys/mod.ts:134](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L134)
138099
138177
 
138100
138178
  当前选择的分表 _ 后缀,多个代表联查
138101
138179
 
@@ -138105,17 +138183,27 @@ Defined in: [sys/mod.ts:132](https://github.com/maiyunnet/kebab/blob/master/sys/
138105
138183
 
138106
138184
  > `protected` **\_jsonUpdates**: `Record`\<`string`, `boolean`\> = `{}`
138107
138185
 
138108
- Defined in: [sys/mod.ts:126](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L126)
138186
+ Defined in: [sys/mod.ts:128](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L128)
138109
138187
 
138110
138188
  要在数据库边界序列化的 JSON 字段
138111
138189
 
138112
138190
  ***
138113
138191
 
138192
+ ### \_read
138193
+
138194
+ > `protected` **\_read**: `boolean` = `false`
138195
+
138196
+ Defined in: [sys/mod.ts:158](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L158)
138197
+
138198
+ 当前查询是否优先使用只读从库
138199
+
138200
+ ***
138201
+
138114
138202
  ### \_sql
138115
138203
 
138116
138204
  > `protected` **\_sql**: [`Sql`](../../../lib/sql/classes/Sql.md)
138117
138205
 
138118
- Defined in: [sys/mod.ts:147](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L147)
138206
+ Defined in: [sys/mod.ts:149](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L149)
138119
138207
 
138120
138208
  Sql 对象
138121
138209
 
@@ -138125,7 +138213,7 @@ Sql 对象
138125
138213
 
138126
138214
  > `protected` **\_total**: `number`[] = `[]`
138127
138215
 
138128
- Defined in: [sys/mod.ts:141](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L141)
138216
+ Defined in: [sys/mod.ts:143](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L143)
138129
138217
 
138130
138218
  已算出的 total
138131
138219
 
@@ -138135,7 +138223,7 @@ Defined in: [sys/mod.ts:141](https://github.com/maiyunnet/kebab/blob/master/sys/
138135
138223
 
138136
138224
  > `protected` **\_updates**: `Record`\<`string`, `boolean`\> = `{}`
138137
138225
 
138138
- Defined in: [sys/mod.ts:123](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L123)
138226
+ Defined in: [sys/mod.ts:125](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L125)
138139
138227
 
138140
138228
  要 update 的内容
138141
138229
 
@@ -138145,7 +138233,7 @@ Defined in: [sys/mod.ts:123](https://github.com/maiyunnet/kebab/blob/master/sys/
138145
138233
 
138146
138234
  > `protected` `static` **\_$index**: `string` \| `string`[] = `''`
138147
138235
 
138148
- Defined in: [sys/mod.ts:117](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L117)
138236
+ Defined in: [sys/mod.ts:119](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L119)
138149
138237
 
138150
138238
  自动 key 冲突目标:MySQL 为索引名;PGSQL 为唯一字段或字段数组,PG 留空使用 _$key,不支持部分或表达式索引
138151
138239
 
@@ -138155,7 +138243,7 @@ Defined in: [sys/mod.ts:117](https://github.com/maiyunnet/kebab/blob/master/sys/
138155
138243
 
138156
138244
  > `protected` `static` **\_$key**: `string` = `''`
138157
138245
 
138158
- Defined in: [sys/mod.ts:114](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L114)
138246
+ Defined in: [sys/mod.ts:116](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L116)
138159
138247
 
138160
138248
  设置后将由 _keyGenerator 函数生成唯一字段
138161
138249
 
@@ -138165,7 +138253,7 @@ Defined in: [sys/mod.ts:114](https://github.com/maiyunnet/kebab/blob/master/sys/
138165
138253
 
138166
138254
  > `protected` `static` **\_$partition**: `string`[] = `[]`
138167
138255
 
138168
- Defined in: [sys/mod.ts:111](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L111)
138256
+ Defined in: [sys/mod.ts:113](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L113)
138169
138257
 
138170
138258
  表的分区字段名,如 ['time_push']
138171
138259
  只填分区字段,不用额外填写主键;save、remove、refresh 默认会把主键一起加入 WHERE。
@@ -138177,7 +138265,7 @@ Defined in: [sys/mod.ts:111](https://github.com/maiyunnet/kebab/blob/master/sys/
138177
138265
 
138178
138266
  > `protected` `static` `optional` **\_$pre?**: `string`
138179
138267
 
138180
- Defined in: [sys/mod.ts:120](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L120)
138268
+ Defined in: [sys/mod.ts:122](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L122)
138181
138269
 
138182
138270
  前缀,MySQL 时为表前缀(如 prefix_),PostgreSQL 时为 Schema 名。顺序:选项前缀 -> 本前缀 -> 配置文件前缀
138183
138271
 
@@ -138187,7 +138275,7 @@ Defined in: [sys/mod.ts:120](https://github.com/maiyunnet/kebab/blob/master/sys/
138187
138275
 
138188
138276
  > `protected` `static` **\_$primary**: `string` = `'id'`
138189
138277
 
138190
- Defined in: [sys/mod.ts:104](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L104)
138278
+ Defined in: [sys/mod.ts:106](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L106)
138191
138279
 
138192
138280
  主键字段名
138193
138281
 
@@ -138197,7 +138285,7 @@ Defined in: [sys/mod.ts:104](https://github.com/maiyunnet/kebab/blob/master/sys/
138197
138285
 
138198
138286
  > `protected` `static` **\_$table**: `string` = `''`
138199
138287
 
138200
- Defined in: [sys/mod.ts:101](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L101)
138288
+ Defined in: [sys/mod.ts:103](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L103)
138201
138289
 
138202
138290
  表名
138203
138291
 
@@ -138207,7 +138295,7 @@ Defined in: [sys/mod.ts:101](https://github.com/maiyunnet/kebab/blob/master/sys/
138207
138295
 
138208
138296
  > `protected` **\_keyGenerator**(): `string`
138209
138297
 
138210
- Defined in: [sys/mod.ts:2132](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2132)
138298
+ Defined in: [sys/mod.ts:2160](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2160)
138211
138299
 
138212
138300
  当 _key 不为空时,则依据继承此方法的方法自动生成填充 key
138213
138301
 
@@ -138223,7 +138311,7 @@ Defined in: [sys/mod.ts:2132](https://github.com/maiyunnet/kebab/blob/master/sys
138223
138311
 
138224
138312
  > **all**(): `Promise`\<`false` \| [`Rows`](Rows.md)\<`Mod` & [`TModRow`](../type-aliases/TModRow.md)\>\>
138225
138313
 
138226
- Defined in: [sys/mod.ts:1332](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1332)
138314
+ Defined in: [sys/mod.ts:1360](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1360)
138227
138315
 
138228
138316
  查询模型列表,查询失败返回 false
138229
138317
 
@@ -138235,7 +138323,7 @@ Defined in: [sys/mod.ts:1332](https://github.com/maiyunnet/kebab/blob/master/sys
138235
138323
 
138236
138324
  > **all**(`key`): `Promise`\<`false` \| `Record`\<`string`, `Mod` & [`TModRow`](../type-aliases/TModRow.md)\>\>
138237
138325
 
138238
- Defined in: [sys/mod.ts:1337](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1337)
138326
+ Defined in: [sys/mod.ts:1365](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1365)
138239
138327
 
138240
138328
  查询模型字典,查询失败返回 false
138241
138329
 
@@ -138255,7 +138343,7 @@ Defined in: [sys/mod.ts:1337](https://github.com/maiyunnet/kebab/blob/master/sys
138255
138343
 
138256
138344
  > **all**\<`TExtra`\>(): `Promise`\<`false` \| [`Rows`](Rows.md)\<`Mod` & `TExtra`\>\>
138257
138345
 
138258
- Defined in: [sys/mod.ts:1339](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1339)
138346
+ Defined in: [sys/mod.ts:1367](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1367)
138259
138347
 
138260
138348
  查询模型列表,并为查询附加的字段指定类型,查询失败返回 false
138261
138349
 
@@ -138273,7 +138361,7 @@ Defined in: [sys/mod.ts:1339](https://github.com/maiyunnet/kebab/blob/master/sys
138273
138361
 
138274
138362
  > **all**\<`TExtra`\>(`key`): `Promise`\<`false` \| `Record`\<`string`, `Mod` & `TExtra`\>\>
138275
138363
 
138276
- Defined in: [sys/mod.ts:1344](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1344)
138364
+ Defined in: [sys/mod.ts:1372](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1372)
138277
138365
 
138278
138366
  查询模型字典,并为查询附加的字段指定类型,查询失败返回 false
138279
138367
 
@@ -138303,7 +138391,7 @@ Defined in: [sys/mod.ts:1344](https://github.com/maiyunnet/kebab/blob/master/sys
138303
138391
 
138304
138392
  > **allArray**(): `Promise`\<`false` \| [`TModRow`](../type-aliases/TModRow.md)[]\>
138305
138393
 
138306
- Defined in: [sys/mod.ts:1520](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1520)
138394
+ Defined in: [sys/mod.ts:1548](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1548)
138307
138395
 
138308
138396
  查询原生行列表,查询失败返回 false
138309
138397
 
@@ -138315,7 +138403,7 @@ Defined in: [sys/mod.ts:1520](https://github.com/maiyunnet/kebab/blob/master/sys
138315
138403
 
138316
138404
  > **allArray**(`key`): `Promise`\<`false` \| `Record`\<`string`, [`TModRow`](../type-aliases/TModRow.md)\>\>
138317
138405
 
138318
- Defined in: [sys/mod.ts:1525](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1525)
138406
+ Defined in: [sys/mod.ts:1553](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1553)
138319
138407
 
138320
138408
  查询原生行字典,查询失败返回 false
138321
138409
 
@@ -138335,7 +138423,7 @@ Defined in: [sys/mod.ts:1525](https://github.com/maiyunnet/kebab/blob/master/sys
138335
138423
 
138336
138424
  > **allArray**\<`TRow`\>(): `Promise`\<`false` \| `TRow`[]\>
138337
138425
 
138338
- Defined in: [sys/mod.ts:1527](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1527)
138426
+ Defined in: [sys/mod.ts:1555](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1555)
138339
138427
 
138340
138428
  查询指定行类型的原生行列表,查询失败返回 false
138341
138429
 
@@ -138353,7 +138441,7 @@ Defined in: [sys/mod.ts:1527](https://github.com/maiyunnet/kebab/blob/master/sys
138353
138441
 
138354
138442
  > **allArray**\<`TRow`\>(`key`): `Promise`\<`false` \| `Record`\<`string`, `TRow`\>\>
138355
138443
 
138356
- Defined in: [sys/mod.ts:1532](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1532)
138444
+ Defined in: [sys/mod.ts:1560](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1560)
138357
138445
 
138358
138446
  查询指定行类型的原生行字典,查询失败返回 false
138359
138447
 
@@ -138381,7 +138469,7 @@ Defined in: [sys/mod.ts:1532](https://github.com/maiyunnet/kebab/blob/master/sys
138381
138469
 
138382
138470
  > **allCursor**\<`T`\>(`count`, `opt`): `Promise`\<`false` \| [`ICursorPage`](../interfaces/ICursorPage.md)\<`T`\>\>
138383
138471
 
138384
- Defined in: [sys/mod.ts:1776](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1776)
138472
+ Defined in: [sys/mod.ts:1804](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1804)
138385
138473
 
138386
138474
  读取一批游标数据,多取一条判断后续记录,不使用 OFFSET,不修改原查询
138387
138475
  排序字段必须全部非空、同向,且组合唯一;SELECT 中须包含对应字段(同名或指定 keys)
@@ -138446,7 +138534,7 @@ SELECT 结果中对应的字段名,默认去掉 by 的表别名
138446
138534
 
138447
138535
  > **append**(`sql`): `this`
138448
138536
 
138449
- Defined in: [sys/mod.ts:2039](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2039)
138537
+ Defined in: [sys/mod.ts:2067](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2067)
138450
138538
 
138451
138539
  在 sql 最后追加字符串
138452
138540
 
@@ -138466,7 +138554,7 @@ Defined in: [sys/mod.ts:2039](https://github.com/maiyunnet/kebab/blob/master/sys
138466
138554
 
138467
138555
  > **by**(`c`, `d?`): `this`
138468
138556
 
138469
- Defined in: [sys/mod.ts:1995](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1995)
138557
+ Defined in: [sys/mod.ts:2023](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2023)
138470
138558
 
138471
138559
  ORDER BY
138472
138560
 
@@ -138494,7 +138582,7 @@ ORDER BY
138494
138582
 
138495
138583
  > **contain**(`contain`): `this`
138496
138584
 
138497
- Defined in: [sys/mod.ts:2048](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2048)
138585
+ Defined in: [sys/mod.ts:2076](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2076)
138498
138586
 
138499
138587
  设置闭包含数据
138500
138588
 
@@ -138522,7 +138610,7 @@ Defined in: [sys/mod.ts:2048](https://github.com/maiyunnet/kebab/blob/master/sys
138522
138610
 
138523
138611
  > **count**(): `Promise`\<`number`\>
138524
138612
 
138525
- Defined in: [sys/mod.ts:1831](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1831)
138613
+ Defined in: [sys/mod.ts:1859](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1859)
138526
138614
 
138527
138615
  根据当前条件,筛选出当前条目该有的数据条数
138528
138616
 
@@ -138536,7 +138624,7 @@ Defined in: [sys/mod.ts:1831](https://github.com/maiyunnet/kebab/blob/master/sys
138536
138624
 
138537
138625
  > **countSql**(): `string`
138538
138626
 
138539
- Defined in: [sys/mod.ts:1852](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1852)
138627
+ Defined in: [sys/mod.ts:1880](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1880)
138540
138628
 
138541
138629
  获取当前条件下的 count 的 SQL 语句
138542
138630
 
@@ -138550,7 +138638,7 @@ Defined in: [sys/mod.ts:1852](https://github.com/maiyunnet/kebab/blob/master/sys
138550
138638
 
138551
138639
  > **create**(): `Promise`\<`boolean` \| `null`\>
138552
138640
 
138553
- Defined in: [sys/mod.ts:940](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L940)
138641
+ Defined in: [sys/mod.ts:957](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L957)
138554
138642
 
138555
138643
  创建数据,自动 key 最多尝试 3 次;PGSQL 仅忽略指定字段的唯一冲突
138556
138644
 
@@ -138566,7 +138654,7 @@ true-成功,false-错误或重试耗尽,null-其他唯一冲突;PGSQL 的 SQL
138566
138654
 
138567
138655
  > **crossJoin**(`f`, `s`, `index?`, `pre?`): `this`
138568
138656
 
138569
- Defined in: [sys/mod.ts:1927](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1927)
138657
+ Defined in: [sys/mod.ts:1955](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1955)
138570
138658
 
138571
138659
  cross join 方法
138572
138660
 
@@ -138616,7 +138704,7 @@ ON 信息
138616
138704
 
138617
138705
  > **explain**(`all?`): `Promise`\<`string` \| `false`\>
138618
138706
 
138619
- Defined in: [sys/mod.ts:1653](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1653)
138707
+ Defined in: [sys/mod.ts:1681](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1681)
138620
138708
 
138621
138709
  ##### Parameters
138622
138710
 
@@ -138632,7 +138720,7 @@ Defined in: [sys/mod.ts:1653](https://github.com/maiyunnet/kebab/blob/master/sys
138632
138720
 
138633
138721
  > **explain**(`all`): `Promise`\<`false` \| `Record`\<`string`, `any`\>\>
138634
138722
 
138635
- Defined in: [sys/mod.ts:1654](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1654)
138723
+ Defined in: [sys/mod.ts:1682](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1682)
138636
138724
 
138637
138725
  ##### Parameters
138638
138726
 
@@ -138650,7 +138738,7 @@ Defined in: [sys/mod.ts:1654](https://github.com/maiyunnet/kebab/blob/master/sys
138650
138738
 
138651
138739
  > **filter**(`s`): `this`
138652
138740
 
138653
- Defined in: [sys/mod.ts:1973](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1973)
138741
+ Defined in: [sys/mod.ts:2001](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2001)
138654
138742
 
138655
138743
  筛选器
138656
138744
 
@@ -138674,7 +138762,7 @@ Defined in: [sys/mod.ts:1973](https://github.com/maiyunnet/kebab/blob/master/sys
138674
138762
 
138675
138763
  > **first**(`lock`, `array`): `Promise`\<`false` \| [`TModRow`](../type-aliases/TModRow.md) \| `null`\>
138676
138764
 
138677
- Defined in: [sys/mod.ts:1208](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1208)
138765
+ Defined in: [sys/mod.ts:1234](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1234)
138678
138766
 
138679
138767
  获取第一条原生记录,查询失败返回 false,未找到返回 null
138680
138768
 
@@ -138696,7 +138784,7 @@ Defined in: [sys/mod.ts:1208](https://github.com/maiyunnet/kebab/blob/master/sys
138696
138784
 
138697
138785
  > **first**(`lock?`, `array?`): `Promise`\<`false` \| `Mod` & [`TModRow`](../type-aliases/TModRow.md) \| `null`\>
138698
138786
 
138699
- Defined in: [sys/mod.ts:1213](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1213)
138787
+ Defined in: [sys/mod.ts:1239](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1239)
138700
138788
 
138701
138789
  获取第一个模型实例,查询失败返回 false,未找到返回 null
138702
138790
 
@@ -138718,7 +138806,7 @@ Defined in: [sys/mod.ts:1213](https://github.com/maiyunnet/kebab/blob/master/sys
138718
138806
 
138719
138807
  > **first**\<`TRow`\>(`lock`, `array`): `Promise`\<`false` \| `TRow` \| `null`\>
138720
138808
 
138721
- Defined in: [sys/mod.ts:1223](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1223)
138809
+ Defined in: [sys/mod.ts:1249](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1249)
138722
138810
 
138723
138811
  获取指定类型的第一条原生记录
138724
138812
 
@@ -138752,7 +138840,7 @@ Defined in: [sys/mod.ts:1223](https://github.com/maiyunnet/kebab/blob/master/sys
138752
138840
 
138753
138841
  > **first**\<`TExtra`\>(`lock?`, `array?`): `Promise`\<`false` \| `Mod` & `TExtra` \| `null`\>
138754
138842
 
138755
- Defined in: [sys/mod.ts:1230](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1230)
138843
+ Defined in: [sys/mod.ts:1256](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1256)
138756
138844
 
138757
138845
  获取第一个模型实例,并为查询附加的字段指定类型
138758
138846
 
@@ -138790,7 +138878,7 @@ Defined in: [sys/mod.ts:1230](https://github.com/maiyunnet/kebab/blob/master/sys
138790
138878
 
138791
138879
  > **firstArray**(`lock?`): `Promise`\<`false` \| [`TModRow`](../type-aliases/TModRow.md) \| `null`\>
138792
138880
 
138793
- Defined in: [sys/mod.ts:1263](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1263)
138881
+ Defined in: [sys/mod.ts:1291](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1291)
138794
138882
 
138795
138883
  获取数据库第一个原生对象
138796
138884
 
@@ -138812,7 +138900,7 @@ Defined in: [sys/mod.ts:1263](https://github.com/maiyunnet/kebab/blob/master/sys
138812
138900
 
138813
138901
  > **firstArray**\<`TRow`\>(`lock?`): `Promise`\<`false` \| `TRow` \| `null`\>
138814
138902
 
138815
- Defined in: [sys/mod.ts:1265](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1265)
138903
+ Defined in: [sys/mod.ts:1293](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1293)
138816
138904
 
138817
138905
  获取指定类型的第一条原生记录,查询失败返回 false,未找到返回 null
138818
138906
 
@@ -138838,7 +138926,7 @@ Defined in: [sys/mod.ts:1265](https://github.com/maiyunnet/kebab/blob/master/sys
138838
138926
 
138839
138927
  > **format**(`sql?`, `data?`): `string`
138840
138928
 
138841
- Defined in: [sys/mod.ts:2075](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2075)
138929
+ Defined in: [sys/mod.ts:2103](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2103)
138842
138930
 
138843
138931
  获取带 data 的 sql 语句
138844
138932
 
@@ -138866,7 +138954,7 @@ sql 语句
138866
138954
 
138867
138955
  > **fullJoin**(`f`, `s`, `index?`, `pre?`): `this`
138868
138956
 
138869
- Defined in: [sys/mod.ts:1915](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1915)
138957
+ Defined in: [sys/mod.ts:1943](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1943)
138870
138958
 
138871
138959
  full join 方法
138872
138960
 
@@ -138908,7 +138996,7 @@ ON 信息
138908
138996
 
138909
138997
  > **get**(`n`): `any`
138910
138998
 
138911
- Defined in: [sys/mod.ts:917](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L917)
138999
+ Defined in: [sys/mod.ts:934](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L934)
138912
139000
 
138913
139001
  获取一个已加载的字段值
138914
139002
 
@@ -138930,7 +139018,7 @@ Defined in: [sys/mod.ts:917](https://github.com/maiyunnet/kebab/blob/master/sys/
138930
139018
 
138931
139019
  > **get**\<`T`\>(`n`): `T` \| `undefined`
138932
139020
 
138933
- Defined in: [sys/mod.ts:919](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L919)
139021
+ Defined in: [sys/mod.ts:936](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L936)
138934
139022
 
138935
139023
  按指定类型获取一个已加载的字段值,未加载时返回 undefined
138936
139024
 
@@ -138956,7 +139044,7 @@ Defined in: [sys/mod.ts:919](https://github.com/maiyunnet/kebab/blob/master/sys/
138956
139044
 
138957
139045
  > **getData**(): `any`[]
138958
139046
 
138959
- Defined in: [sys/mod.ts:2066](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2066)
139047
+ Defined in: [sys/mod.ts:2094](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2094)
138960
139048
 
138961
139049
  获取全部 data
138962
139050
 
@@ -138970,7 +139058,7 @@ Defined in: [sys/mod.ts:2066](https://github.com/maiyunnet/kebab/blob/master/sys
138970
139058
 
138971
139059
  > **getSql**(): `string`
138972
139060
 
138973
- Defined in: [sys/mod.ts:2059](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2059)
139061
+ Defined in: [sys/mod.ts:2087](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2087)
138974
139062
 
138975
139063
  获取 sql 语句
138976
139064
 
@@ -138984,7 +139072,7 @@ Defined in: [sys/mod.ts:2059](https://github.com/maiyunnet/kebab/blob/master/sys
138984
139072
 
138985
139073
  > **group**(`c`): `this`
138986
139074
 
138987
- Defined in: [sys/mod.ts:2004](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2004)
139075
+ Defined in: [sys/mod.ts:2032](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2032)
138988
139076
 
138989
139077
  GROUP BY
138990
139078
 
@@ -139006,7 +139094,7 @@ GROUP BY
139006
139094
 
139007
139095
  > **having**(`s`): `this`
139008
139096
 
139009
- Defined in: [sys/mod.ts:1964](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1964)
139097
+ Defined in: [sys/mod.ts:1992](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1992)
139010
139098
 
139011
139099
  筛选器
139012
139100
 
@@ -139028,7 +139116,7 @@ Defined in: [sys/mod.ts:1964](https://github.com/maiyunnet/kebab/blob/master/sys
139028
139116
 
139029
139117
  > **hint**(`h`): `this`
139030
139118
 
139031
- Defined in: [sys/mod.ts:1955](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1955)
139119
+ Defined in: [sys/mod.ts:1983](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1983)
139032
139120
 
139033
139121
  设置 MySQL 优化器 Hint
139034
139122
  内容会以 Optimizer Hint 注释语法注入到 SELECT 关键字后
@@ -139073,7 +139161,7 @@ Hint 内容
139073
139161
 
139074
139162
  > **innerJoin**(`f`, `s`, `index?`, `pre?`): `this`
139075
139163
 
139076
- Defined in: [sys/mod.ts:1903](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1903)
139164
+ Defined in: [sys/mod.ts:1931](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1931)
139077
139165
 
139078
139166
  inner join 方法
139079
139167
 
@@ -139113,7 +139201,7 @@ ON 信息
139113
139201
 
139114
139202
  > **join**(`f`, `s?`, `type?`, `index?`, `pre?`): `this`
139115
139203
 
139116
- Defined in: [sys/mod.ts:1867](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1867)
139204
+ Defined in: [sys/mod.ts:1895](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1895)
139117
139205
 
139118
139206
  #### Parameters
139119
139207
 
@@ -139157,7 +139245,7 @@ ON 信息
139157
139245
 
139158
139246
  > **langText**(`col`, `lang`): `string`
139159
139247
 
139160
- Defined in: [sys/mod.ts:2112](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2112)
139248
+ Defined in: [sys/mod.ts:2140](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2140)
139161
139249
 
139162
139250
  获取字段的可用语种文本
139163
139251
 
@@ -139185,7 +139273,7 @@ Defined in: [sys/mod.ts:2112](https://github.com/maiyunnet/kebab/blob/master/sys
139185
139273
 
139186
139274
  > **leftJoin**(`f`, `s`, `index?`, `pre?`): `this`
139187
139275
 
139188
- Defined in: [sys/mod.ts:1879](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1879)
139276
+ Defined in: [sys/mod.ts:1907](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1907)
139189
139277
 
139190
139278
  left join 方法
139191
139279
 
@@ -139225,7 +139313,7 @@ ON 信息
139225
139313
 
139226
139314
  > **limit**(`a`, `b?`): `this`
139227
139315
 
139228
- Defined in: [sys/mod.ts:2017](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2017)
139316
+ Defined in: [sys/mod.ts:2045](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2045)
139229
139317
 
139230
139318
  LIMIT
139231
139319
 
@@ -139253,7 +139341,7 @@ LIMIT
139253
139341
 
139254
139342
  > **page**(`count`, `page?`): `this`
139255
139343
 
139256
- Defined in: [sys/mod.ts:2028](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2028)
139344
+ Defined in: [sys/mod.ts:2056](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2056)
139257
139345
 
139258
139346
  分页
139259
139347
 
@@ -139277,11 +139365,33 @@ Defined in: [sys/mod.ts:2028](https://github.com/maiyunnet/kebab/blob/master/sys
139277
139365
 
139278
139366
  ***
139279
139367
 
139368
+ ### read()
139369
+
139370
+ > **read**(`enable?`): `this`
139371
+
139372
+ Defined in: [sys/mod.ts:1228](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1228)
139373
+
139374
+ 设置当前查询是否优先使用只读从库(加锁查询或事务内仍走主库)
139375
+
139376
+ #### Parameters
139377
+
139378
+ ##### enable?
139379
+
139380
+ `boolean` = `true`
139381
+
139382
+ 是否使用只读从库,默认 true
139383
+
139384
+ #### Returns
139385
+
139386
+ `this`
139387
+
139388
+ ***
139389
+
139280
139390
  ### refresh()
139281
139391
 
139282
139392
  > **refresh**(`lock?`): `Promise`\<`boolean` \| `null`\>
139283
139393
 
139284
- Defined in: [sys/mod.ts:1118](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1118)
139394
+ Defined in: [sys/mod.ts:1135](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1135)
139285
139395
 
139286
139396
  刷新当前模型获取最新数据
139287
139397
 
@@ -139305,7 +139415,7 @@ true 成功,null 记录不存在,false 缺少定位字段或查询失败
139305
139415
 
139306
139416
  > **remove**(): `Promise`\<`boolean`\>
139307
139417
 
139308
- Defined in: [sys/mod.ts:1186](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1186)
139418
+ Defined in: [sys/mod.ts:1203](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1203)
139309
139419
 
139310
139420
  按主键和分区字段删除当前记录
139311
139421
 
@@ -139321,7 +139431,7 @@ Defined in: [sys/mod.ts:1186](https://github.com/maiyunnet/kebab/blob/master/sys
139321
139431
 
139322
139432
  > **rightJoin**(`f`, `s`, `index?`, `pre?`): `this`
139323
139433
 
139324
- Defined in: [sys/mod.ts:1891](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1891)
139434
+ Defined in: [sys/mod.ts:1919](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1919)
139325
139435
 
139326
139436
  right join 方法
139327
139437
 
@@ -139361,7 +139471,7 @@ ON 信息
139361
139471
 
139362
139472
  > **save**(`where?`): `Promise`\<`boolean`\>
139363
139473
 
139364
- Defined in: [sys/mod.ts:1150](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1150)
139474
+ Defined in: [sys/mod.ts:1167](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1167)
139365
139475
 
139366
139476
  更新 set 的数据到数据库,有未保存数据时才保存
139367
139477
 
@@ -139401,7 +139511,7 @@ Defined in: [sys/mod.ts:1150](https://github.com/maiyunnet/kebab/blob/master/sys
139401
139511
 
139402
139512
  > **set**\<`T`, `TK`\>(`n`): `void`
139403
139513
 
139404
- Defined in: [sys/mod.ts:881](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L881)
139514
+ Defined in: [sys/mod.ts:898](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L898)
139405
139515
 
139406
139516
  ##### Type Parameters
139407
139517
 
@@ -139427,7 +139537,7 @@ Defined in: [sys/mod.ts:881](https://github.com/maiyunnet/kebab/blob/master/sys/
139427
139537
 
139428
139538
  > **set**\<`T`, `TK`\>(`n`, `v`): `void`
139429
139539
 
139430
- Defined in: [sys/mod.ts:882](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L882)
139540
+ Defined in: [sys/mod.ts:899](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L899)
139431
139541
 
139432
139542
  ##### Type Parameters
139433
139543
 
@@ -139461,7 +139571,7 @@ Defined in: [sys/mod.ts:882](https://github.com/maiyunnet/kebab/blob/master/sys/
139461
139571
 
139462
139572
  > **toArray**(): [`TModRow`](../type-aliases/TModRow.md)
139463
139573
 
139464
- Defined in: [sys/mod.ts:2080](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2080)
139574
+ Defined in: [sys/mod.ts:2108](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2108)
139465
139575
 
139466
139576
  将已加载和已设置的字段复制为一个普通对象
139467
139577
 
@@ -139473,7 +139583,7 @@ Defined in: [sys/mod.ts:2080](https://github.com/maiyunnet/kebab/blob/master/sys
139473
139583
 
139474
139584
  > **toArray**\<`TC`\>(): [`TOnlyProperties`](../type-aliases/TOnlyProperties.md)\<`InstanceType`\<`TC`\>\> & [`TModRow`](../type-aliases/TModRow.md)
139475
139585
 
139476
- Defined in: [sys/mod.ts:2082](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2082)
139586
+ Defined in: [sys/mod.ts:2110](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2110)
139477
139587
 
139478
139588
  将字段复制为普通对象,按指定构造器的实例属性提供类型
139479
139589
 
@@ -139491,7 +139601,7 @@ Defined in: [sys/mod.ts:2082](https://github.com/maiyunnet/kebab/blob/master/sys
139491
139601
 
139492
139602
  > **toArray**\<`TRow`\>(): `TRow`
139493
139603
 
139494
- Defined in: [sys/mod.ts:2084](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2084)
139604
+ Defined in: [sys/mod.ts:2112](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2112)
139495
139605
 
139496
139606
  将字段复制为指定类型的普通对象
139497
139607
 
@@ -139511,7 +139621,7 @@ Defined in: [sys/mod.ts:2084](https://github.com/maiyunnet/kebab/blob/master/sys
139511
139621
 
139512
139622
  > **total**(`f?`): `Promise`\<`number`\>
139513
139623
 
139514
- Defined in: [sys/mod.ts:1711](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1711)
139624
+ Defined in: [sys/mod.ts:1739](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1739)
139515
139625
 
139516
139626
  获取总条数,自动抛弃 LIMIT,仅用于获取数据的情况(select)
139517
139627
 
@@ -139531,7 +139641,7 @@ Defined in: [sys/mod.ts:1711](https://github.com/maiyunnet/kebab/blob/master/sys
139531
139641
 
139532
139642
  > **totalEstimate**(): `Promise`\<`number` \| `false`\>
139533
139643
 
139534
- Defined in: [sys/mod.ts:1737](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1737)
139644
+ Defined in: [sys/mod.ts:1765](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1765)
139535
139645
 
139536
139646
  从 PostgreSQL 执行计划估算查询总行数,移除外层排序和分页,不执行数据扫描
139537
139647
  请在应用游标条件前调用;非 PostgreSQL、框架分表联查或查询失败返回 false,绝不回退到 COUNT
@@ -139548,7 +139658,7 @@ Defined in: [sys/mod.ts:1737](https://github.com/maiyunnet/kebab/blob/master/sys
139548
139658
 
139549
139659
  > **union**(`f`, `type?`): `this`
139550
139660
 
139551
- Defined in: [sys/mod.ts:1275](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1275)
139661
+ Defined in: [sys/mod.ts:1303](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1303)
139552
139662
 
139553
139663
  联合查询表数据
139554
139664
 
@@ -139576,7 +139686,7 @@ Defined in: [sys/mod.ts:1275](https://github.com/maiyunnet/kebab/blob/master/sys
139576
139686
 
139577
139687
  > **unionAll**(`f`): `this`
139578
139688
 
139579
- Defined in: [sys/mod.ts:1305](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1305)
139689
+ Defined in: [sys/mod.ts:1333](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1333)
139580
139690
 
139581
139691
  所有联合查询表数据
139582
139692
 
@@ -139598,7 +139708,7 @@ Defined in: [sys/mod.ts:1305](https://github.com/maiyunnet/kebab/blob/master/sys
139598
139708
 
139599
139709
  > **unsaved**(): `boolean`
139600
139710
 
139601
- Defined in: [sys/mod.ts:2103](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2103)
139711
+ Defined in: [sys/mod.ts:2131](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2131)
139602
139712
 
139603
139713
  当前是否设置了未保存
139604
139714
 
@@ -139612,7 +139722,7 @@ Defined in: [sys/mod.ts:2103](https://github.com/maiyunnet/kebab/blob/master/sys
139612
139722
 
139613
139723
  > **updates**(): `Record`\<`string`, `any`\>
139614
139724
 
139615
- Defined in: [sys/mod.ts:2092](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2092)
139725
+ Defined in: [sys/mod.ts:2120](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2120)
139616
139726
 
139617
139727
  获取当前设置要提交的数据
139618
139728
 
@@ -139626,7 +139736,7 @@ Defined in: [sys/mod.ts:2092](https://github.com/maiyunnet/kebab/blob/master/sys
139626
139736
 
139627
139737
  > **upsert**(`conflict`): `Promise`\<`boolean`\>
139628
139738
 
139629
- Defined in: [sys/mod.ts:1037](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1037)
139739
+ Defined in: [sys/mod.ts:1054](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1054)
139630
139740
 
139631
139741
  插入数据,如果业务唯一键已存在则更新,保留已有主键和自动 key
139632
139742
  PGSQL 为原子 UPSERT,自动 key 只生成一次,SQL 错误需回滚事务
@@ -139652,7 +139762,7 @@ MySQL 分步执行;自动 key 有多个唯一索引时须配置 _$index,整
139652
139762
 
139653
139763
  > **where**(`s`): `this`
139654
139764
 
139655
- Defined in: [sys/mod.ts:1984](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1984)
139765
+ Defined in: [sys/mod.ts:2012](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2012)
139656
139766
 
139657
139767
  是 filter 的别名
139658
139768
 
@@ -139674,7 +139784,7 @@ Defined in: [sys/mod.ts:1984](https://github.com/maiyunnet/kebab/blob/master/sys
139674
139784
 
139675
139785
  > `static` **column**(`field`): `object`
139676
139786
 
139677
- Defined in: [sys/mod.ts:224](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L224)
139787
+ Defined in: [sys/mod.ts:232](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L232)
139678
139788
 
139679
139789
  创建字段对象
139680
139790
 
@@ -139706,7 +139816,7 @@ Defined in: [sys/mod.ts:224](https://github.com/maiyunnet/kebab/blob/master/sys/
139706
139816
 
139707
139817
  > `static` **find**\<`T`\>(`db`, `val`, `opt?`): `Promise`\<`false` \| `T` & `Record`\<`string`, `any`\> \| `null`\>
139708
139818
 
139709
- Defined in: [sys/mod.ts:672](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L672)
139819
+ Defined in: [sys/mod.ts:684](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L684)
139710
139820
 
139711
139821
  根据主键(或 key 字段)获取对象
139712
139822
 
@@ -139760,6 +139870,12 @@ Defined in: [sys/mod.ts:672](https://github.com/maiyunnet/kebab/blob/master/sys/
139760
139870
 
139761
139871
  `string`
139762
139872
 
139873
+ ###### read?
139874
+
139875
+ `boolean`
139876
+
139877
+ 是否优先使用只读从库,默认 false(走主库);加锁或事务内仍走主库
139878
+
139763
139879
  #### Returns
139764
139880
 
139765
139881
  `Promise`\<`false` \| `T` & `Record`\<`string`, `any`\> \| `null`\>
@@ -139770,7 +139886,7 @@ Defined in: [sys/mod.ts:672](https://github.com/maiyunnet/kebab/blob/master/sys/
139770
139886
 
139771
139887
  > `static` **getCreate**\<`T`\>(`db`, `opt?`): `T`
139772
139888
 
139773
- Defined in: [sys/mod.ts:654](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L654)
139889
+ Defined in: [sys/mod.ts:666](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L666)
139774
139890
 
139775
139891
  获取创建对象,通常用于新建数据库条目
139776
139892
 
@@ -139814,7 +139930,7 @@ Defined in: [sys/mod.ts:654](https://github.com/maiyunnet/kebab/blob/master/sys/
139814
139930
 
139815
139931
  > `static` **insert**(`db`, `cs`, `vs?`, `opt?`): `Promise`\<`boolean` \| `null`\>
139816
139932
 
139817
- Defined in: [sys/mod.ts:253](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L253)
139933
+ Defined in: [sys/mod.ts:261](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L261)
139818
139934
 
139819
139935
  添加一个序列(允许超过 65536 的占位符会被拆分多次执行)
139820
139936
 
@@ -139868,7 +139984,7 @@ Defined in: [sys/mod.ts:253](https://github.com/maiyunnet/kebab/blob/master/sys/
139868
139984
 
139869
139985
  > `static` **insertSql**(`db`, `cs`, `vs?`, `opt?`): `string`
139870
139986
 
139871
- Defined in: [sys/mod.ts:316](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L316)
139987
+ Defined in: [sys/mod.ts:324](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L324)
139872
139988
 
139873
139989
  获取添加一个序列的模拟 SQL
139874
139990
 
@@ -139922,7 +140038,7 @@ Defined in: [sys/mod.ts:316](https://github.com/maiyunnet/kebab/blob/master/sys/
139922
140038
 
139923
140039
  > `static` **json**\<`T`\>(`obj`): `T`
139924
140040
 
139925
- Defined in: [sys/mod.ts:242](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L242)
140041
+ Defined in: [sys/mod.ts:250](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L250)
139926
140042
 
139927
140043
  标记 JSON 字段;模型内保持原始对象,写入数据库时再序列化
139928
140044
 
@@ -139950,7 +140066,7 @@ Defined in: [sys/mod.ts:242](https://github.com/maiyunnet/kebab/blob/master/sys/
139950
140066
 
139951
140067
  > `static` **one**(`db`, `s`, `opt`): `Promise`\<`false` \| [`TModRow`](../type-aliases/TModRow.md) \| `null`\>
139952
140068
 
139953
- Defined in: [sys/mod.ts:702](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L702)
140069
+ Defined in: [sys/mod.ts:717](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L717)
139954
140070
 
139955
140071
  按条件读取一条原生记录,查询失败返回 false,未找到返回 null
139956
140072
 
@@ -139976,7 +140092,7 @@ Defined in: [sys/mod.ts:702](https://github.com/maiyunnet/kebab/blob/master/sys/
139976
140092
 
139977
140093
  > `static` **one**\<`T`\>(`db`, `s`, `opt?`): `Promise`\<`false` \| `T` & [`TModRow`](../type-aliases/TModRow.md) \| `null`\>
139978
140094
 
139979
- Defined in: [sys/mod.ts:708](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L708)
140095
+ Defined in: [sys/mod.ts:723](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L723)
139980
140096
 
139981
140097
  按条件读取一个模型实例,查询失败返回 false,未找到返回 null
139982
140098
 
@@ -140008,7 +140124,7 @@ Defined in: [sys/mod.ts:708](https://github.com/maiyunnet/kebab/blob/master/sys/
140008
140124
 
140009
140125
  > `static` **one**\<`TRow`\>(`db`, `s`, `opt`): `Promise`\<`false` \| `TRow` \| `null`\>
140010
140126
 
140011
- Defined in: [sys/mod.ts:714](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L714)
140127
+ Defined in: [sys/mod.ts:729](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L729)
140012
140128
 
140013
140129
  按条件读取一条指定类型的原生记录,查询失败返回 false,未找到返回 null
140014
140130
 
@@ -140044,7 +140160,7 @@ Defined in: [sys/mod.ts:714](https://github.com/maiyunnet/kebab/blob/master/sys/
140044
140160
 
140045
140161
  > `static` **oneArray**(`db`, `s`, `opt?`): `Promise`\<`false` \| [`TModRow`](../type-aliases/TModRow.md) \| `null`\>
140046
140162
 
140047
- Defined in: [sys/mod.ts:772](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L772)
140163
+ Defined in: [sys/mod.ts:789](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L789)
140048
140164
 
140049
140165
  通过 where 条件筛选单条数据返回原生对象
140050
140166
 
@@ -140078,7 +140194,7 @@ Defined in: [sys/mod.ts:772](https://github.com/maiyunnet/kebab/blob/master/sys/
140078
140194
 
140079
140195
  > `static` **oneArray**\<`TRow`\>(`db`, `s`, `opt?`): `Promise`\<`false` \| `TRow` \| `null`\>
140080
140196
 
140081
- Defined in: [sys/mod.ts:778](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L778)
140197
+ Defined in: [sys/mod.ts:795](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L795)
140082
140198
 
140083
140199
  按条件读取一条指定类型的原生记录,查询失败返回 false,未找到返回 null
140084
140200
 
@@ -140112,7 +140228,7 @@ Defined in: [sys/mod.ts:778](https://github.com/maiyunnet/kebab/blob/master/sys/
140112
140228
 
140113
140229
  > `static` **primarys**(`db`, `where?`, `opt?`): `Promise`\<`false` \| `any`[]\>
140114
140230
 
140115
- Defined in: [sys/mod.ts:797](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L797)
140231
+ Defined in: [sys/mod.ts:814](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L814)
140116
140232
 
140117
140233
  根据 where 条件获取主键值列表
140118
140234
 
@@ -140146,6 +140262,10 @@ where 条件
140146
140262
 
140147
140263
  `string`
140148
140264
 
140265
+ ###### read?
140266
+
140267
+ `boolean`
140268
+
140149
140269
  #### Returns
140150
140270
 
140151
140271
  `Promise`\<`false` \| `any`[]\>
@@ -140156,7 +140276,7 @@ where 条件
140156
140276
 
140157
140277
  > `static` **removeByWhere**(`db`, `where`, `opt?`): `Promise`\<`number` \| `false` \| `null`\>
140158
140278
 
140159
- Defined in: [sys/mod.ts:342](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L342)
140279
+ Defined in: [sys/mod.ts:350](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L350)
140160
140280
 
140161
140281
  根据条件移除条目
140162
140282
 
@@ -140208,7 +140328,7 @@ Defined in: [sys/mod.ts:342](https://github.com/maiyunnet/kebab/blob/master/sys/
140208
140328
 
140209
140329
  > `static` **removeByWhereSql**(`db`, `where`, `opt?`): [`Sql`](../../../lib/sql/classes/Sql.md)
140210
140330
 
140211
- Defined in: [sys/mod.ts:386](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L386)
140331
+ Defined in: [sys/mod.ts:394](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L394)
140212
140332
 
140213
140333
  根据条件移除条目(仅获取 SQL 对象)
140214
140334
 
@@ -140260,7 +140380,7 @@ Defined in: [sys/mod.ts:386](https://github.com/maiyunnet/kebab/blob/master/sys/
140260
140380
 
140261
140381
  > `static` **select**\<`T`\>(`db`, `c`, `opt?`): `T`
140262
140382
 
140263
- Defined in: [sys/mod.ts:591](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L591)
140383
+ Defined in: [sys/mod.ts:599](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L599)
140264
140384
 
140265
140385
  select 自定字段
140266
140386
 
@@ -140320,6 +140440,10 @@ select 自定字段
140320
140440
 
140321
140441
  `string`
140322
140442
 
140443
+ ###### read?
140444
+
140445
+ `boolean`
140446
+
140323
140447
  #### Returns
140324
140448
 
140325
140449
  `T`
@@ -140332,7 +140456,7 @@ select 自定字段
140332
140456
 
140333
140457
  > `static` **toArrayByRecord**\<`T`\>(`obj`): `Record`\<`string`, [`TModRow`](../type-aliases/TModRow.md)\>
140334
140458
 
140335
- Defined in: [sys/mod.ts:825](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L825)
140459
+ Defined in: [sys/mod.ts:842](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L842)
140336
140460
 
140337
140461
  将模型字典转换为普通对象字典,沿用原有键
140338
140462
 
@@ -140360,7 +140484,7 @@ Defined in: [sys/mod.ts:825](https://github.com/maiyunnet/kebab/blob/master/sys/
140360
140484
 
140361
140485
  > `static` **toArrayByRecord**\<`TRow`\>(`obj`): `Record`\<`string`, `TRow`\>
140362
140486
 
140363
- Defined in: [sys/mod.ts:829](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L829)
140487
+ Defined in: [sys/mod.ts:846](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L846)
140364
140488
 
140365
140489
  将模型字典转换为指定行类型的普通对象字典
140366
140490
 
@@ -140386,7 +140510,7 @@ Defined in: [sys/mod.ts:829](https://github.com/maiyunnet/kebab/blob/master/sys/
140386
140510
 
140387
140511
  > `static` **updateByWhere**(`db`, `data`, `where`, `opt?`): `Promise`\<`number` \| `false` \| `null`\>
140388
140512
 
140389
- Defined in: [sys/mod.ts:419](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L419)
140513
+ Defined in: [sys/mod.ts:427](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L427)
140390
140514
 
140391
140515
  根据条件更新数据
140392
140516
 
@@ -140444,7 +140568,7 @@ Defined in: [sys/mod.ts:419](https://github.com/maiyunnet/kebab/blob/master/sys/
140444
140568
 
140445
140569
  > `static` **updateByWhereSql**(`db`, `data`, `where`, `opt?`): [`Sql`](../../../lib/sql/classes/Sql.md)
140446
140570
 
140447
- Defined in: [sys/mod.ts:465](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L465)
140571
+ Defined in: [sys/mod.ts:473](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L473)
140448
140572
 
140449
140573
  根据条件更新数据(仅获取 SQL 对象)
140450
140574
 
@@ -140502,7 +140626,7 @@ Defined in: [sys/mod.ts:465](https://github.com/maiyunnet/kebab/blob/master/sys/
140502
140626
 
140503
140627
  > `static` **updateList**(`db`, `data`, `key`, `opt?`): `Promise`\<`boolean` \| `null`\>
140504
140628
 
140505
- Defined in: [sys/mod.ts:503](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L503)
140629
+ Defined in: [sys/mod.ts:511](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L511)
140506
140630
 
140507
140631
  批量更新数据
140508
140632
 
@@ -140560,7 +140684,7 @@ Defined in: [sys/mod.ts:503](https://github.com/maiyunnet/kebab/blob/master/sys/
140560
140684
 
140561
140685
  > `static` **value**(`val`): `object`
140562
140686
 
140563
- Defined in: [sys/mod.ts:233](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L233)
140687
+ Defined in: [sys/mod.ts:241](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L241)
140564
140688
 
140565
140689
  创建字面量值对象,用于 where 条件中 v[0] 需要是值而非字段名的场景
140566
140690
 
@@ -140592,7 +140716,7 @@ Defined in: [sys/mod.ts:233](https://github.com/maiyunnet/kebab/blob/master/sys/
140592
140716
 
140593
140717
  > `static` **where**\<`T`\>(`db`, `s?`, `opt?`): `T`
140594
140718
 
140595
- Defined in: [sys/mod.ts:623](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L623)
140719
+ Defined in: [sys/mod.ts:633](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L633)
140596
140720
 
140597
140721
  通过 where 条件获取模型
140598
140722
 
@@ -140652,6 +140776,10 @@ Defined in: [sys/mod.ts:623](https://github.com/maiyunnet/kebab/blob/master/sys/
140652
140776
 
140653
140777
  `string`
140654
140778
 
140779
+ ###### read?
140780
+
140781
+ `boolean`
140782
+
140655
140783
  #### Returns
140656
140784
 
140657
140785
  `T`
@@ -140667,7 +140795,7 @@ sys/mod/classes/Rows.md
140667
140795
 
140668
140796
  # Class: Rows\<T\>
140669
140797
 
140670
- Defined in: [sys/mod.ts:49](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L49)
140798
+ Defined in: [sys/mod.ts:51](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L51)
140671
140799
 
140672
140800
  条数列表
140673
140801
 
@@ -140687,7 +140815,7 @@ Defined in: [sys/mod.ts:49](https://github.com/maiyunnet/kebab/blob/master/sys/m
140687
140815
 
140688
140816
  > **new Rows**\<`T`\>(`initialItems?`): `Rows`\<`T`\>
140689
140817
 
140690
- Defined in: [sys/mod.ts:53](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L53)
140818
+ Defined in: [sys/mod.ts:55](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L55)
140691
140819
 
140692
140820
  #### Parameters
140693
140821
 
@@ -140707,7 +140835,7 @@ Defined in: [sys/mod.ts:53](https://github.com/maiyunnet/kebab/blob/master/sys/m
140707
140835
 
140708
140836
  > **get** **length**(): `number`
140709
140837
 
140710
- Defined in: [sys/mod.ts:58](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L58)
140838
+ Defined in: [sys/mod.ts:60](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L60)
140711
140839
 
140712
140840
  总行数
140713
140841
 
@@ -140725,7 +140853,7 @@ Defined in: [sys/mod.ts:58](https://github.com/maiyunnet/kebab/blob/master/sys/m
140725
140853
 
140726
140854
  > **\[iterator\]**(): `IterableIterator`\<`T`\>
140727
140855
 
140728
- Defined in: [sys/mod.ts:90](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L90)
140856
+ Defined in: [sys/mod.ts:92](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L92)
140729
140857
 
140730
140858
  for of
140731
140859
 
@@ -140743,7 +140871,7 @@ for of
140743
140871
 
140744
140872
  > **filter**(`predicate`): `Rows`\<`T`\>
140745
140873
 
140746
- Defined in: [sys/mod.ts:76](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L76)
140874
+ Defined in: [sys/mod.ts:78](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L78)
140747
140875
 
140748
140876
  根据规则筛掉项,predicate 返回 true 代表保留
140749
140877
 
@@ -140763,7 +140891,7 @@ Defined in: [sys/mod.ts:76](https://github.com/maiyunnet/kebab/blob/master/sys/m
140763
140891
 
140764
140892
  > **item**(`index`): `T`
140765
140893
 
140766
- Defined in: [sys/mod.ts:63](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L63)
140894
+ Defined in: [sys/mod.ts:65](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L65)
140767
140895
 
140768
140896
  通过索引获取一个对象
140769
140897
 
@@ -140787,7 +140915,7 @@ Defined in: [sys/mod.ts:63](https://github.com/maiyunnet/kebab/blob/master/sys/m
140787
140915
 
140788
140916
  > **map**\<`TU`\>(`callbackfn`): `TU`[]
140789
140917
 
140790
- Defined in: [sys/mod.ts:81](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L81)
140918
+ Defined in: [sys/mod.ts:83](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L83)
140791
140919
 
140792
140920
  重塑对象内容为数组
140793
140921
 
@@ -140815,7 +140943,7 @@ Defined in: [sys/mod.ts:81](https://github.com/maiyunnet/kebab/blob/master/sys/m
140815
140943
 
140816
140944
  > **toArray**(): [`TModRow`](../type-aliases/TModRow.md)[]
140817
140945
 
140818
- Defined in: [sys/mod.ts:68](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L68)
140946
+ Defined in: [sys/mod.ts:70](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L70)
140819
140947
 
140820
140948
  将模型转换为普通对象数组
140821
140949
 
@@ -140831,7 +140959,7 @@ Defined in: [sys/mod.ts:68](https://github.com/maiyunnet/kebab/blob/master/sys/m
140831
140959
 
140832
140960
  > **toArray**\<`TRow`\>(): `TRow`[]
140833
140961
 
140834
- Defined in: [sys/mod.ts:70](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L70)
140962
+ Defined in: [sys/mod.ts:72](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L72)
140835
140963
 
140836
140964
  将模型转换为指定行类型的普通对象数组
140837
140965
 
@@ -140888,7 +141016,7 @@ sys/mod/interfaces/ICursorPage.md
140888
141016
 
140889
141017
  # Interface: ICursorPage\<T\>
140890
141018
 
140891
- Defined in: [sys/mod.ts:41](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L41)
141019
+ Defined in: [sys/mod.ts:43](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L43)
140892
141020
 
140893
141021
  一批游标查询结果,hasMore 表示扫描方向上还有记录
140894
141022
 
@@ -140904,7 +141032,7 @@ Defined in: [sys/mod.ts:41](https://github.com/maiyunnet/kebab/blob/master/sys/m
140904
141032
 
140905
141033
  > **hasMore**: `boolean`
140906
141034
 
140907
- Defined in: [sys/mod.ts:43](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L43)
141035
+ Defined in: [sys/mod.ts:45](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L45)
140908
141036
 
140909
141037
  ***
140910
141038
 
@@ -140912,7 +141040,7 @@ Defined in: [sys/mod.ts:43](https://github.com/maiyunnet/kebab/blob/master/sys/m
140912
141040
 
140913
141041
  > **list**: `T`[]
140914
141042
 
140915
- Defined in: [sys/mod.ts:42](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L42)
141043
+ Defined in: [sys/mod.ts:44](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L44)
140916
141044
 
140917
141045
  ***
140918
141046
 
@@ -140920,7 +141048,7 @@ Defined in: [sys/mod.ts:42](https://github.com/maiyunnet/kebab/blob/master/sys/m
140920
141048
 
140921
141049
  > **next**: [`TCursorValue`](../../../lib/sql/type-aliases/TCursorValue.md)[] \| `null`
140922
141050
 
140923
- Defined in: [sys/mod.ts:44](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L44)
141051
+ Defined in: [sys/mod.ts:46](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L46)
140924
141052
 
140925
141053
  ***
140926
141054
 
@@ -140928,7 +141056,7 @@ Defined in: [sys/mod.ts:44](https://github.com/maiyunnet/kebab/blob/master/sys/m
140928
141056
 
140929
141057
  > **previous**: [`TCursorValue`](../../../lib/sql/type-aliases/TCursorValue.md)[] \| `null`
140930
141058
 
140931
- Defined in: [sys/mod.ts:45](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L45)
141059
+ Defined in: [sys/mod.ts:47](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L47)
140932
141060
 
140933
141061
  sys/mod/interfaces/IModOneOptions.md
140934
141062
  ---
@@ -141007,6 +141135,16 @@ MySQL 表前缀或 PostgreSQL Schema 名
141007
141135
 
141008
141136
  ***
141009
141137
 
141138
+ ### read?
141139
+
141140
+ > `optional` **read?**: `boolean`
141141
+
141142
+ Defined in: [sys/mod.ts:39](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L39)
141143
+
141144
+ 是否优先使用只读从库,默认 false(走主库);加锁或事务内仍走主库
141145
+
141146
+ ***
141147
+
141010
141148
  ### select?
141011
141149
 
141012
141150
  > `optional` **select?**: `string` \| `string`[]
@@ -141026,7 +141164,7 @@ sys/mod/interfaces/IModUnionItem.md
141026
141164
 
141027
141165
  # Interface: IModUnionItem
141028
141166
 
141029
- Defined in: [sys/mod.ts:2147](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2147)
141167
+ Defined in: [sys/mod.ts:2175](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2175)
141030
141168
 
141031
141169
  ## Properties
141032
141170
 
@@ -141034,7 +141172,7 @@ Defined in: [sys/mod.ts:2147](https://github.com/maiyunnet/kebab/blob/master/sys
141034
141172
 
141035
141173
  > **field**: `string`
141036
141174
 
141037
- Defined in: [sys/mod.ts:2148](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2148)
141175
+ Defined in: [sys/mod.ts:2176](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2176)
141038
141176
 
141039
141177
  ***
141040
141178
 
@@ -141042,7 +141180,7 @@ Defined in: [sys/mod.ts:2148](https://github.com/maiyunnet/kebab/blob/master/sys
141042
141180
 
141043
141181
  > `optional` **where?**: `any`
141044
141182
 
141045
- Defined in: [sys/mod.ts:2149](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2149)
141183
+ Defined in: [sys/mod.ts:2177](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2177)
141046
141184
 
141047
141185
  sys/mod/interfaces/IRows.md
141048
141186
  ---
@@ -141055,7 +141193,7 @@ sys/mod/interfaces/IRows.md
141055
141193
 
141056
141194
  # Interface: IRows\<T\>
141057
141195
 
141058
- Defined in: [sys/mod.ts:2141](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2141)
141196
+ Defined in: [sys/mod.ts:2169](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2169)
141059
141197
 
141060
141198
  模型记录集合接口
141061
141199
 
@@ -141075,7 +141213,7 @@ Defined in: [sys/mod.ts:2141](https://github.com/maiyunnet/kebab/blob/master/sys
141075
141213
 
141076
141214
  > `readonly` **length**: `number`
141077
141215
 
141078
- Defined in: [sys/mod.ts:2142](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2142)
141216
+ Defined in: [sys/mod.ts:2170](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2170)
141079
141217
 
141080
141218
  ## Methods
141081
141219
 
@@ -141083,7 +141221,7 @@ Defined in: [sys/mod.ts:2142](https://github.com/maiyunnet/kebab/blob/master/sys
141083
141221
 
141084
141222
  > **item**(`index`): `T`
141085
141223
 
141086
- Defined in: [sys/mod.ts:2143](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2143)
141224
+ Defined in: [sys/mod.ts:2171](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2171)
141087
141225
 
141088
141226
  #### Parameters
141089
141227
 
@@ -141101,7 +141239,7 @@ Defined in: [sys/mod.ts:2143](https://github.com/maiyunnet/kebab/blob/master/sys
141101
141239
 
141102
141240
  > **toArray**(): `Record`\<`string`, `any`\>[]
141103
141241
 
141104
- Defined in: [sys/mod.ts:2144](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2144)
141242
+ Defined in: [sys/mod.ts:2172](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2172)
141105
141243
 
141106
141244
  #### Returns
141107
141245