@maiyunnet/kebab 10.0.0 → 10.1.1

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.1"` = `'10.1.1'`
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
 
@@ -120184,7 +120252,7 @@ lib/kv/classes/Kv.md
120184
120252
 
120185
120253
  # Class: Kv
120186
120254
 
120187
- Defined in: [lib/kv.ts:126](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L126)
120255
+ Defined in: [lib/kv.ts:161](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L161)
120188
120256
 
120189
120257
  键值存储操作类(兼容 Redis 与 Kvrocks)
120190
120258
 
@@ -120204,7 +120272,7 @@ const res = await kv.replace('test', 111);
120204
120272
 
120205
120273
  > **new Kv**(`etc`): `Kv`
120206
120274
 
120207
- Defined in: [lib/kv.ts:137](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L137)
120275
+ Defined in: [lib/kv.ts:172](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L172)
120208
120276
 
120209
120277
  #### Parameters
120210
120278
 
@@ -120222,7 +120290,7 @@ Defined in: [lib/kv.ts:137](https://github.com/maiyunnet/kebab/blob/master/lib/k
120222
120290
 
120223
120291
  > **add**(`key`, `val`, `ttl?`): `Promise`\<`boolean`\>
120224
120292
 
120225
- Defined in: [lib/kv.ts:250](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L250)
120293
+ Defined in: [lib/kv.ts:306](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L306)
120226
120294
 
120227
120295
  添加一个值,存在则不变
120228
120296
 
@@ -120256,7 +120324,7 @@ Defined in: [lib/kv.ts:250](https://github.com/maiyunnet/kebab/blob/master/lib/k
120256
120324
 
120257
120325
  > **append**(`key`, `val`): `Promise`\<`boolean`\>
120258
120326
 
120259
- Defined in: [lib/kv.ts:277](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L277)
120327
+ Defined in: [lib/kv.ts:333](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L333)
120260
120328
 
120261
120329
  向已存在的值后追加数据
120262
120330
 
@@ -120284,7 +120352,7 @@ Defined in: [lib/kv.ts:277](https://github.com/maiyunnet/kebab/blob/master/lib/k
120284
120352
 
120285
120353
  > **bLMove**(`sourceKey`, `destKey`, `soo`, `deo`, `timeout`): `Promise`\<`string` \| `false` \| `null`\>
120286
120354
 
120287
- Defined in: [lib/kv.ts:943](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L943)
120355
+ Defined in: [lib/kv.ts:999](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L999)
120288
120356
 
120289
120357
  阻塞式在两个列表间移动元素(使用独立连接,避免阻塞共享连接)
120290
120358
 
@@ -120330,7 +120398,7 @@ Defined in: [lib/kv.ts:943](https://github.com/maiyunnet/kebab/blob/master/lib/k
120330
120398
 
120331
120399
  > **bRPop**(`key`, `timeout`): `Promise`\<`false` \| `Record`\<`string`, `string`\>\>
120332
120400
 
120333
- Defined in: [lib/kv.ts:994](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L994)
120401
+ Defined in: [lib/kv.ts:1050](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1050)
120334
120402
 
120335
120403
  阻塞式从列表右侧弹出元素(使用独立连接,避免阻塞共享连接)
120336
120404
 
@@ -120358,7 +120426,7 @@ Defined in: [lib/kv.ts:994](https://github.com/maiyunnet/kebab/blob/master/lib/k
120358
120426
 
120359
120427
  > **decr**(`key`, `num?`): `Promise`\<`number` \| `false`\>
120360
120428
 
120361
- Defined in: [lib/kv.ts:534](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L534)
120429
+ Defined in: [lib/kv.ts:590](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L590)
120362
120430
 
120363
120431
  自减
120364
120432
 
@@ -120386,7 +120454,7 @@ Defined in: [lib/kv.ts:534](https://github.com/maiyunnet/kebab/blob/master/lib/k
120386
120454
 
120387
120455
  > **del**(`keys`): `Promise`\<`boolean`\>
120388
120456
 
120389
- Defined in: [lib/kv.ts:484](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L484)
120457
+ Defined in: [lib/kv.ts:540](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L540)
120390
120458
 
120391
120459
  删除已存在的值
120392
120460
 
@@ -120408,9 +120476,9 @@ Defined in: [lib/kv.ts:484](https://github.com/maiyunnet/kebab/blob/master/lib/k
120408
120476
 
120409
120477
  > **eval**(`script`, `keys`, `args`): `Promise`\<`unknown`\>
120410
120478
 
120411
- Defined in: [lib/kv.ts:185](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L185)
120479
+ Defined in: [lib/kv.ts:220](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L220)
120412
120480
 
120413
- 在共享连接上执行一个 Redis Lua 脚本
120481
+ 在共享连接上执行一个 Redis Lua 脚本,首次走 EVAL 加载,后续走 EVALSHA 并在 NOSCRIPT 时自动回退
120414
120482
 
120415
120483
  #### Parameters
120416
120484
 
@@ -120444,7 +120512,7 @@ Redis 原始结果,nil 返回 null,连接或执行失败返回 false
120444
120512
 
120445
120513
  > **exists**(`keys`): `Promise`\<`number`\>
120446
120514
 
120447
- Defined in: [lib/kv.ts:309](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L309)
120515
+ Defined in: [lib/kv.ts:365](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L365)
120448
120516
 
120449
120517
  检测 key 是否存在
120450
120518
 
@@ -120466,7 +120534,7 @@ Defined in: [lib/kv.ts:309](https://github.com/maiyunnet/kebab/blob/master/lib/k
120466
120534
 
120467
120535
  > **expire**(`key`, `ttl`): `Promise`\<`boolean`\>
120468
120536
 
120469
- Defined in: [lib/kv.ts:562](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L562)
120537
+ Defined in: [lib/kv.ts:618](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L618)
120470
120538
 
120471
120539
  仅修改过期时间不修改值
120472
120540
 
@@ -120494,7 +120562,7 @@ Defined in: [lib/kv.ts:562](https://github.com/maiyunnet/kebab/blob/master/lib/k
120494
120562
 
120495
120563
  > **flushDb**(): `Promise`\<`boolean`\>
120496
120564
 
120497
- Defined in: [lib/kv.ts:632](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L632)
120565
+ Defined in: [lib/kv.ts:688](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L688)
120498
120566
 
120499
120567
  清除当前所选数据库的所有内容
120500
120568
 
@@ -120508,7 +120576,7 @@ Defined in: [lib/kv.ts:632](https://github.com/maiyunnet/kebab/blob/master/lib/k
120508
120576
 
120509
120577
  > **get**(`key`): `Promise`\<`string` \| `false` \| `null`\>
120510
120578
 
120511
- Defined in: [lib/kv.ts:331](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L331)
120579
+ Defined in: [lib/kv.ts:387](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L387)
120512
120580
 
120513
120581
  获取字符串
120514
120582
 
@@ -120532,7 +120600,7 @@ Defined in: [lib/kv.ts:331](https://github.com/maiyunnet/kebab/blob/master/lib/k
120532
120600
 
120533
120601
  > **getClient**(): `Promise`\<[`TRedisClient`](../type-aliases/TRedisClient.md) \| `null`\>
120534
120602
 
120535
- Defined in: [lib/kv.ts:157](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L157)
120603
+ Defined in: [lib/kv.ts:192](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L192)
120536
120604
 
120537
120605
  获取底层官方 redis 客户端实例(用于执行原生扩展命令)
120538
120606
 
@@ -120550,7 +120618,7 @@ Defined in: [lib/kv.ts:157](https://github.com/maiyunnet/kebab/blob/master/lib/k
120550
120618
 
120551
120619
  > **getDelJson**(`key`): `Promise`\<`any`\>
120552
120620
 
120553
- Defined in: [lib/kv.ts:455](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L455)
120621
+ Defined in: [lib/kv.ts:511](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L511)
120554
120622
 
120555
120623
  原子读取并删除键,再解析 JSON
120556
120624
 
@@ -120572,7 +120640,7 @@ Defined in: [lib/kv.ts:455](https://github.com/maiyunnet/kebab/blob/master/lib/k
120572
120640
 
120573
120641
  > **getDelJson**\<`T`\>(`key`): `Promise`\<`false` \| `T` \| `null`\>
120574
120642
 
120575
- Defined in: [lib/kv.ts:462](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L462)
120643
+ Defined in: [lib/kv.ts:518](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L518)
120576
120644
 
120577
120645
  原子读取并删除键,再解析 JSON
120578
120646
 
@@ -120606,7 +120674,7 @@ Defined in: [lib/kv.ts:462](https://github.com/maiyunnet/kebab/blob/master/lib/k
120606
120674
 
120607
120675
  > **getJson**(`key`): `Promise`\<`any`\>
120608
120676
 
120609
- Defined in: [lib/kv.ts:434](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L434)
120677
+ Defined in: [lib/kv.ts:490](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L490)
120610
120678
 
120611
120679
  读取并解析键中的 JSON
120612
120680
 
@@ -120628,7 +120696,7 @@ Defined in: [lib/kv.ts:434](https://github.com/maiyunnet/kebab/blob/master/lib/k
120628
120696
 
120629
120697
  > **getJson**\<`T`\>(`key`): `Promise`\<`false` \| `T` \| `null`\>
120630
120698
 
120631
- Defined in: [lib/kv.ts:441](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L441)
120699
+ Defined in: [lib/kv.ts:497](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L497)
120632
120700
 
120633
120701
  读取并解析键中的 JSON
120634
120702
 
@@ -120660,7 +120728,7 @@ Defined in: [lib/kv.ts:441](https://github.com/maiyunnet/kebab/blob/master/lib/k
120660
120728
 
120661
120729
  > **getPre**(): `string`
120662
120730
 
120663
- Defined in: [lib/kv.ts:149](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L149)
120731
+ Defined in: [lib/kv.ts:184](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L184)
120664
120732
 
120665
120733
  获取当前 Kv 实际生效的键名前缀
120666
120734
 
@@ -120676,7 +120744,7 @@ Defined in: [lib/kv.ts:149](https://github.com/maiyunnet/kebab/blob/master/lib/k
120676
120744
 
120677
120745
  > **hDel**(`key`, `fields`): `Promise`\<`number` \| `false`\>
120678
120746
 
120679
- Defined in: [lib/kv.ts:818](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L818)
120747
+ Defined in: [lib/kv.ts:874](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L874)
120680
120748
 
120681
120749
  删除哈希键
120682
120750
 
@@ -120704,7 +120772,7 @@ Defined in: [lib/kv.ts:818](https://github.com/maiyunnet/kebab/blob/master/lib/k
120704
120772
 
120705
120773
  > **hExists**(`key`, `field`): `Promise`\<`boolean`\>
120706
120774
 
120707
- Defined in: [lib/kv.ts:839](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L839)
120775
+ Defined in: [lib/kv.ts:895](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L895)
120708
120776
 
120709
120777
  判断哈希字段是否存在
120710
120778
 
@@ -120732,7 +120800,7 @@ Defined in: [lib/kv.ts:839](https://github.com/maiyunnet/kebab/blob/master/lib/k
120732
120800
 
120733
120801
  > **hGet**(`key`, `field`): `Promise`\<`string` \| `false` \| `null`\>
120734
120802
 
120735
- Defined in: [lib/kv.ts:729](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L729)
120803
+ Defined in: [lib/kv.ts:785](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L785)
120736
120804
 
120737
120805
  获取哈希值
120738
120806
 
@@ -120760,7 +120828,7 @@ Defined in: [lib/kv.ts:729](https://github.com/maiyunnet/kebab/blob/master/lib/k
120760
120828
 
120761
120829
  > **hGetAll**(`key`): `Promise`\<`false` \| `Record`\<`string`, `string` \| `null`\>\>
120762
120830
 
120763
- Defined in: [lib/kv.ts:800](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L800)
120831
+ Defined in: [lib/kv.ts:856](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L856)
120764
120832
 
120765
120833
  批量获取哈希键值对
120766
120834
 
@@ -120784,7 +120852,7 @@ Defined in: [lib/kv.ts:800](https://github.com/maiyunnet/kebab/blob/master/lib/k
120784
120852
 
120785
120853
  > **hGetJson**(`key`, `field`): `Promise`\<`any`\>
120786
120854
 
120787
- Defined in: [lib/kv.ts:749](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L749)
120855
+ Defined in: [lib/kv.ts:805](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L805)
120788
120856
 
120789
120857
  读取并解析哈希字段中的 JSON
120790
120858
 
@@ -120812,7 +120880,7 @@ Defined in: [lib/kv.ts:749](https://github.com/maiyunnet/kebab/blob/master/lib/k
120812
120880
 
120813
120881
  > **hGetJson**\<`T`\>(`key`, `field`): `Promise`\<`false` \| `T` \| `null`\>
120814
120882
 
120815
- Defined in: [lib/kv.ts:757](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L757)
120883
+ Defined in: [lib/kv.ts:813](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L813)
120816
120884
 
120817
120885
  读取并解析哈希字段中的 JSON
120818
120886
 
@@ -120850,7 +120918,7 @@ Defined in: [lib/kv.ts:757](https://github.com/maiyunnet/kebab/blob/master/lib/k
120850
120918
 
120851
120919
  > **hIncr**(`key`, `field`, `increment`): `Promise`\<`number` \| `false`\>
120852
120920
 
120853
- Defined in: [lib/kv.ts:858](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L858)
120921
+ Defined in: [lib/kv.ts:914](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L914)
120854
120922
 
120855
120923
  设置哈希自增自减
120856
120924
 
@@ -120884,7 +120952,7 @@ key
120884
120952
 
120885
120953
  > **hKeys**(`key`): `Promise`\<`false` \| `string`[]\>
120886
120954
 
120887
- Defined in: [lib/kv.ts:880](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L880)
120955
+ Defined in: [lib/kv.ts:936](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L936)
120888
120956
 
120889
120957
  获取哈希所有字段
120890
120958
 
@@ -120906,7 +120974,7 @@ Defined in: [lib/kv.ts:880](https://github.com/maiyunnet/kebab/blob/master/lib/k
120906
120974
 
120907
120975
  > **hMGet**(`key`, `fields`): `Promise`\<`false` \| `Record`\<`string`, `string` \| `null`\>\>
120908
120976
 
120909
- Defined in: [lib/kv.ts:775](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L775)
120977
+ Defined in: [lib/kv.ts:831](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L831)
120910
120978
 
120911
120979
  批量获取哈希值
120912
120980
 
@@ -120934,7 +121002,7 @@ Defined in: [lib/kv.ts:775](https://github.com/maiyunnet/kebab/blob/master/lib/k
120934
121002
 
120935
121003
  > **hMSet**(`key`, `rows`): `Promise`\<`boolean`\>
120936
121004
 
120937
- Defined in: [lib/kv.ts:699](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L699)
121005
+ Defined in: [lib/kv.ts:755](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L755)
120938
121006
 
120939
121007
  批量设置哈希值
120940
121008
 
@@ -120962,7 +121030,7 @@ field / val 对象
120962
121030
 
120963
121031
  > **hSet**(`key`, `field`, `val`, `mod?`): `Promise`\<`boolean`\>
120964
121032
 
120965
- Defined in: [lib/kv.ts:669](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L669)
121033
+ Defined in: [lib/kv.ts:725](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L725)
120966
121034
 
120967
121035
  设置哈希表值
120968
121036
 
@@ -121002,7 +121070,7 @@ key 名
121002
121070
 
121003
121071
  > **incr**(`key`, `num?`): `Promise`\<`number` \| `false`\>
121004
121072
 
121005
- Defined in: [lib/kv.ts:506](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L506)
121073
+ Defined in: [lib/kv.ts:562](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L562)
121006
121074
 
121007
121075
  自增
121008
121076
 
@@ -121030,7 +121098,7 @@ Defined in: [lib/kv.ts:506](https://github.com/maiyunnet/kebab/blob/master/lib/k
121030
121098
 
121031
121099
  > **keys**(`pattern`): `Promise`\<`false` \| `string`[]\>
121032
121100
 
121033
- Defined in: [lib/kv.ts:579](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L579)
121101
+ Defined in: [lib/kv.ts:635](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L635)
121034
121102
 
121035
121103
  获取服务器上的所有 key 列表
121036
121104
 
@@ -121052,7 +121120,7 @@ Defined in: [lib/kv.ts:579](https://github.com/maiyunnet/kebab/blob/master/lib/k
121052
121120
 
121053
121121
  > **lLen**(`key`): `Promise`\<`number` \| `false`\>
121054
121122
 
121055
- Defined in: [lib/kv.ts:1035](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1035)
121123
+ Defined in: [lib/kv.ts:1091](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1091)
121056
121124
 
121057
121125
  获取列表长度
121058
121126
 
@@ -121074,7 +121142,7 @@ Defined in: [lib/kv.ts:1035](https://github.com/maiyunnet/kebab/blob/master/lib/
121074
121142
 
121075
121143
  > **lPop**(`key`): `Promise`\<`string` \| `false` \| `null`\>
121076
121144
 
121077
- Defined in: [lib/kv.ts:959](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L959)
121145
+ Defined in: [lib/kv.ts:1015](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1015)
121078
121146
 
121079
121147
  从列表左侧弹出元素
121080
121148
 
@@ -121096,7 +121164,7 @@ Defined in: [lib/kv.ts:959](https://github.com/maiyunnet/kebab/blob/master/lib/k
121096
121164
 
121097
121165
  > **lPush**(`key`, `values`): `Promise`\<`number` \| `false`\>
121098
121166
 
121099
- Defined in: [lib/kv.ts:898](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L898)
121167
+ Defined in: [lib/kv.ts:954](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L954)
121100
121168
 
121101
121169
  从列表左侧推入元素
121102
121170
 
@@ -121124,7 +121192,7 @@ Defined in: [lib/kv.ts:898](https://github.com/maiyunnet/kebab/blob/master/lib/k
121124
121192
 
121125
121193
  > **lRange**(`key`, `start`, `stop`): `Promise`\<`false` \| `string`[]\>
121126
121194
 
121127
- Defined in: [lib/kv.ts:1018](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1018)
121195
+ Defined in: [lib/kv.ts:1074](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1074)
121128
121196
 
121129
121197
  获取列表指定区间元素
121130
121198
 
@@ -121158,7 +121226,7 @@ Defined in: [lib/kv.ts:1018](https://github.com/maiyunnet/kebab/blob/master/lib/
121158
121226
 
121159
121227
  > **mGet**(`keys`): `Promise`\<`false` \| `Record`\<`string`, `string` \| `null`\>\>
121160
121228
 
121161
- Defined in: [lib/kv.ts:382](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L382)
121229
+ Defined in: [lib/kv.ts:438](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L438)
121162
121230
 
121163
121231
  批量获取值
121164
121232
 
@@ -121180,7 +121248,7 @@ key 序列
121180
121248
 
121181
121249
  > **mSet**(`rows`): `Promise`\<`boolean`\>
121182
121250
 
121183
- Defined in: [lib/kv.ts:408](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L408)
121251
+ Defined in: [lib/kv.ts:464](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L464)
121184
121252
 
121185
121253
  批量设置键值
121186
121254
 
@@ -121202,7 +121270,7 @@ key / val 对象
121202
121270
 
121203
121271
  > **ping**(): `Promise`\<`string` \| `false`\>
121204
121272
 
121205
- Defined in: [lib/kv.ts:649](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L649)
121273
+ Defined in: [lib/kv.ts:705](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L705)
121206
121274
 
121207
121275
  发送 ping
121208
121276
 
@@ -121216,7 +121284,7 @@ Defined in: [lib/kv.ts:649](https://github.com/maiyunnet/kebab/blob/master/lib/k
121216
121284
 
121217
121285
  > **pipeline**(): `Promise`\<`any`\>
121218
121286
 
121219
- Defined in: [lib/kv.ts:165](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L165)
121287
+ Defined in: [lib/kv.ts:200](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L200)
121220
121288
 
121221
121289
  获取一个绑定在共享连接上的原生 multi / pipeline 对象(通过 execAsPipeline() 或 exec() 执行,无需关闭)
121222
121290
 
@@ -121232,7 +121300,7 @@ Defined in: [lib/kv.ts:165](https://github.com/maiyunnet/kebab/blob/master/lib/k
121232
121300
 
121233
121301
  > **prepend**(`key`, `val`): `Promise`\<`boolean`\>
121234
121302
 
121235
- Defined in: [lib/kv.ts:295](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L295)
121303
+ Defined in: [lib/kv.ts:351](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L351)
121236
121304
 
121237
121305
  向已存在的值之前追加数据
121238
121306
 
@@ -121260,7 +121328,7 @@ Defined in: [lib/kv.ts:295](https://github.com/maiyunnet/kebab/blob/master/lib/k
121260
121328
 
121261
121329
  > **pttl**(`key`): `Promise`\<`number` \| `null`\>
121262
121330
 
121263
- Defined in: [lib/kv.ts:365](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L365)
121331
+ Defined in: [lib/kv.ts:421](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L421)
121264
121332
 
121265
121333
  获取相应的剩余有效期毫秒数
121266
121334
 
@@ -121282,7 +121350,7 @@ Defined in: [lib/kv.ts:365](https://github.com/maiyunnet/kebab/blob/master/lib/k
121282
121350
 
121283
121351
  > **replace**(`key`, `val`, `ttl?`): `Promise`\<`boolean`\>
121284
121352
 
121285
- Defined in: [lib/kv.ts:264](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L264)
121353
+ Defined in: [lib/kv.ts:320](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L320)
121286
121354
 
121287
121355
  替换一个存在的值
121288
121356
 
@@ -121316,7 +121384,7 @@ Defined in: [lib/kv.ts:264](https://github.com/maiyunnet/kebab/blob/master/lib/k
121316
121384
 
121317
121385
  > **rPop**(`key`): `Promise`\<`string` \| `false` \| `null`\>
121318
121386
 
121319
- Defined in: [lib/kv.ts:976](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L976)
121387
+ Defined in: [lib/kv.ts:1032](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1032)
121320
121388
 
121321
121389
  从列表右侧弹出元素
121322
121390
 
@@ -121338,7 +121406,7 @@ Defined in: [lib/kv.ts:976](https://github.com/maiyunnet/kebab/blob/master/lib/k
121338
121406
 
121339
121407
  > **rPush**(`key`, `values`): `Promise`\<`number` \| `false`\>
121340
121408
 
121341
- Defined in: [lib/kv.ts:919](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L919)
121409
+ Defined in: [lib/kv.ts:975](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L975)
121342
121410
 
121343
121411
  从列表右侧推入元素
121344
121412
 
@@ -121366,7 +121434,7 @@ Defined in: [lib/kv.ts:919](https://github.com/maiyunnet/kebab/blob/master/lib/k
121366
121434
 
121367
121435
  > **scan**(`cursor?`, `pattern?`, `count?`): `Promise`\<`false` \| [`IScanResult`](../interfaces/IScanResult.md)\<`string`\>\>
121368
121436
 
121369
- Defined in: [lib/kv.ts:603](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L603)
121437
+ Defined in: [lib/kv.ts:659](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L659)
121370
121438
 
121371
121439
  根据条件获取服务器上的 keys(兼容 Redis 数字串游标与 Kvrocks 字符串游标)
121372
121440
 
@@ -121400,7 +121468,7 @@ Defined in: [lib/kv.ts:603](https://github.com/maiyunnet/kebab/blob/master/lib/k
121400
121468
 
121401
121469
  > **set**(`key`, `val`, `ttl?`, `mod?`): `Promise`\<`boolean`\>
121402
121470
 
121403
- Defined in: [lib/kv.ts:208](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L208)
121471
+ Defined in: [lib/kv.ts:264](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L264)
121404
121472
 
121405
121473
  设定一个值
121406
121474
 
@@ -121440,7 +121508,7 @@ Defined in: [lib/kv.ts:208](https://github.com/maiyunnet/kebab/blob/master/lib/k
121440
121508
 
121441
121509
  > **ttl**(`key`): `Promise`\<`number` \| `null`\>
121442
121510
 
121443
- Defined in: [lib/kv.ts:348](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L348)
121511
+ Defined in: [lib/kv.ts:404](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L404)
121444
121512
 
121445
121513
  获取相应的剩余有效期秒数
121446
121514
 
@@ -121466,7 +121534,7 @@ Defined in: [lib/kv.ts:348](https://github.com/maiyunnet/kebab/blob/master/lib/k
121466
121534
 
121467
121535
  > **zAdd**(`key`, `score`, `member`): `Promise`\<`boolean`\>
121468
121536
 
121469
- Defined in: [lib/kv.ts:1054](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1054)
121537
+ Defined in: [lib/kv.ts:1110](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1110)
121470
121538
 
121471
121539
  添加有序集合元素(单个元素)
121472
121540
 
@@ -121498,7 +121566,7 @@ key 名
121498
121566
 
121499
121567
  > **zAdd**(`key`, `elements`, `options`): `Promise`\<`number` \| `false` \| `null`\>
121500
121568
 
121501
- Defined in: [lib/kv.ts:1061](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1061)
121569
+ Defined in: [lib/kv.ts:1117](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1117)
121502
121570
 
121503
121571
  添加有序集合元素(多个元素,含 INCR 选项)
121504
121572
 
@@ -121530,7 +121598,7 @@ key 名
121530
121598
 
121531
121599
  > **zAdd**(`key`, `elements`, `options?`): `Promise`\<`number` \| `false`\>
121532
121600
 
121533
- Defined in: [lib/kv.ts:1072](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1072)
121601
+ Defined in: [lib/kv.ts:1128](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1128)
121534
121602
 
121535
121603
  添加有序集合元素(多个元素)
121536
121604
 
@@ -121564,7 +121632,7 @@ key 名
121564
121632
 
121565
121633
  > **zRangeWithScores**(`key`, `start`, `stop`, `options?`): `Promise`\<`false` \| `object`[]\>
121566
121634
 
121567
- Defined in: [lib/kv.ts:1136](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1136)
121635
+ Defined in: [lib/kv.ts:1192](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1192)
121568
121636
 
121569
121637
  查询有序集合成员及分数
121570
121638
 
@@ -121604,7 +121672,7 @@ Defined in: [lib/kv.ts:1136](https://github.com/maiyunnet/kebab/blob/master/lib/
121604
121672
 
121605
121673
  > **zRem**(`key`, `members`): `Promise`\<`number` \| `false`\>
121606
121674
 
121607
- Defined in: [lib/kv.ts:1183](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1183)
121675
+ Defined in: [lib/kv.ts:1239](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1239)
121608
121676
 
121609
121677
  移除有序集合成员
121610
121678
 
@@ -121639,7 +121707,7 @@ lib/kv/functions/get.md
121639
121707
 
121640
121708
  > **get**(`ctrEtc`, `oetc?`): [`Kv`](../classes/Kv.md)
121641
121709
 
121642
- Defined in: [lib/kv.ts:1348](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1348)
121710
+ Defined in: [lib/kv.ts:1404](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1404)
121643
121711
 
121644
121712
  获取 Kv 对象
121645
121713
 
@@ -121737,7 +121805,7 @@ lib/kv/interfaces/IConnectionInfo.md
121737
121805
 
121738
121806
  # Interface: IConnectionInfo
121739
121807
 
121740
- Defined in: [lib/kv.ts:1412](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1412)
121808
+ Defined in: [lib/kv.ts:1468](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1468)
121741
121809
 
121742
121810
  Redis 连接缓存项
121743
121811
 
@@ -121747,7 +121815,7 @@ Redis 连接缓存项
121747
121815
 
121748
121816
  > **host**: `string`
121749
121817
 
121750
- Defined in: [lib/kv.ts:1414](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1414)
121818
+ Defined in: [lib/kv.ts:1470](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1470)
121751
121819
 
121752
121820
  服务端地址(IP 或域名)
121753
121821
 
@@ -121757,7 +121825,7 @@ Defined in: [lib/kv.ts:1414](https://github.com/maiyunnet/kebab/blob/master/lib/
121757
121825
 
121758
121826
  > **index**: `number`
121759
121827
 
121760
- Defined in: [lib/kv.ts:1418](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1418)
121828
+ Defined in: [lib/kv.ts:1474](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1474)
121761
121829
 
121762
121830
  实际选择的数据库编号
121763
121831
 
@@ -121767,7 +121835,7 @@ Defined in: [lib/kv.ts:1418](https://github.com/maiyunnet/kebab/blob/master/lib/
121767
121835
 
121768
121836
  > **port**: `number`
121769
121837
 
121770
- Defined in: [lib/kv.ts:1416](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1416)
121838
+ Defined in: [lib/kv.ts:1472](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1472)
121771
121839
 
121772
121840
  服务端端口
121773
121841
 
@@ -121777,7 +121845,7 @@ Defined in: [lib/kv.ts:1416](https://github.com/maiyunnet/kebab/blob/master/lib/
121777
121845
 
121778
121846
  > **pwd**: `string`
121779
121847
 
121780
- Defined in: [lib/kv.ts:1422](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1422)
121848
+ Defined in: [lib/kv.ts:1478](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1478)
121781
121849
 
121782
121850
  认证密码或 Kvrocks namespace token
121783
121851
 
@@ -121787,7 +121855,7 @@ Defined in: [lib/kv.ts:1422](https://github.com/maiyunnet/kebab/blob/master/lib/
121787
121855
 
121788
121856
  > **ready**: `Promise`\<[`TRedisClient`](../type-aliases/TRedisClient.md) \| `null`\>
121789
121857
 
121790
- Defined in: [lib/kv.ts:1426](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1426)
121858
+ Defined in: [lib/kv.ts:1482](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1482)
121791
121859
 
121792
121860
  并发请求等待同一次建连,成功返回客户端,失败返回 null
121793
121861
 
@@ -121797,7 +121865,7 @@ Defined in: [lib/kv.ts:1426](https://github.com/maiyunnet/kebab/blob/master/lib/
121797
121865
 
121798
121866
  > **tls**: `string`
121799
121867
 
121800
- Defined in: [lib/kv.ts:1424](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1424)
121868
+ Defined in: [lib/kv.ts:1480](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1480)
121801
121869
 
121802
121870
  TLS 配置区分键(空串表示明文,'1' 表示默认 TLS,其余为对象序列化键)
121803
121871
 
@@ -121807,7 +121875,7 @@ TLS 配置区分键(空串表示明文,'1' 表示默认 TLS,其余为对
121807
121875
 
121808
121876
  > **user**: `string`
121809
121877
 
121810
- Defined in: [lib/kv.ts:1420](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1420)
121878
+ Defined in: [lib/kv.ts:1476](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1476)
121811
121879
 
121812
121880
  ACL 用户名
121813
121881
 
@@ -121822,7 +121890,7 @@ lib/kv/interfaces/IScanResult.md
121822
121890
 
121823
121891
  # Interface: IScanResult\<T\>
121824
121892
 
121825
- Defined in: [lib/kv.ts:1380](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1380)
121893
+ Defined in: [lib/kv.ts:1436](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1436)
121826
121894
 
121827
121895
  SCAN 分页结果
121828
121896
 
@@ -121838,7 +121906,7 @@ SCAN 分页结果
121838
121906
 
121839
121907
  > **cursor**: `string`
121840
121908
 
121841
- Defined in: [lib/kv.ts:1382](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1382)
121909
+ Defined in: [lib/kv.ts:1438](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1438)
121842
121910
 
121843
121911
  下一页游标('0' 表示结束;兼容 Redis 数字串与 Kvrocks 原生字符串游标)
121844
121912
 
@@ -121848,7 +121916,7 @@ Defined in: [lib/kv.ts:1382](https://github.com/maiyunnet/kebab/blob/master/lib/
121848
121916
 
121849
121917
  > **items**: `T`[]
121850
121918
 
121851
- Defined in: [lib/kv.ts:1384](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1384)
121919
+ Defined in: [lib/kv.ts:1440](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1440)
121852
121920
 
121853
121921
  当前页匹配到的键名列表(已去除项目前缀)
121854
121922
 
@@ -121863,7 +121931,7 @@ lib/kv/interfaces/IZAddOptions.md
121863
121931
 
121864
121932
  # Interface: IZAddOptions
121865
121933
 
121866
- Defined in: [lib/kv.ts:1400](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1400)
121934
+ Defined in: [lib/kv.ts:1456](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1456)
121867
121935
 
121868
121936
  ZADD 选项
121869
121937
 
@@ -121873,7 +121941,7 @@ ZADD 选项
121873
121941
 
121874
121942
  > `optional` **CH?**: `boolean`
121875
121943
 
121876
- Defined in: [lib/kv.ts:1406](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1406)
121944
+ Defined in: [lib/kv.ts:1462](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1462)
121877
121945
 
121878
121946
  返回值改为受影响总数(新增 + 分数变化的成员数),默认仅返回新增成员数
121879
121947
 
@@ -121883,7 +121951,7 @@ Defined in: [lib/kv.ts:1406](https://github.com/maiyunnet/kebab/blob/master/lib/
121883
121951
 
121884
121952
  > `optional` **comparison?**: `"GT"` \| `"LT"`
121885
121953
 
121886
- Defined in: [lib/kv.ts:1404](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1404)
121954
+ Defined in: [lib/kv.ts:1460](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1460)
121887
121955
 
121888
121956
  分数比较条件:GT 仅新分数大于旧分数时更新,LT 仅新分数小于旧分数时更新(不影响新增成员)
121889
121957
 
@@ -121893,7 +121961,7 @@ Defined in: [lib/kv.ts:1404](https://github.com/maiyunnet/kebab/blob/master/lib/
121893
121961
 
121894
121962
  > `optional` **condition?**: `"NX"` \| `"XX"`
121895
121963
 
121896
- Defined in: [lib/kv.ts:1402](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1402)
121964
+ Defined in: [lib/kv.ts:1458](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1458)
121897
121965
 
121898
121966
  写入条件:NX 仅添加不存在的成员,XX 仅更新已存在的成员
121899
121967
 
@@ -121903,7 +121971,7 @@ Defined in: [lib/kv.ts:1402](https://github.com/maiyunnet/kebab/blob/master/lib/
121903
121971
 
121904
121972
  > `optional` **INCR?**: `boolean`
121905
121973
 
121906
- Defined in: [lib/kv.ts:1408](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1408)
121974
+ Defined in: [lib/kv.ts:1464](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1464)
121907
121975
 
121908
121976
  改为在原分数上累加(类似 ZINCRBY,仅支持单个成员),返回更新后的新分数
121909
121977
 
@@ -121918,7 +121986,7 @@ lib/kv/interfaces/IZRangeOptions.md
121918
121986
 
121919
121987
  # Interface: IZRangeOptions
121920
121988
 
121921
- Defined in: [lib/kv.ts:1388](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1388)
121989
+ Defined in: [lib/kv.ts:1444](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1444)
121922
121990
 
121923
121991
  ZRANGE 查询选项
121924
121992
 
@@ -121928,7 +121996,7 @@ ZRANGE 查询选项
121928
121996
 
121929
121997
  > `optional` **by?**: `"SCORE"` \| `"LEX"`
121930
121998
 
121931
- Defined in: [lib/kv.ts:1390](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1390)
121999
+ Defined in: [lib/kv.ts:1446](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1446)
121932
122000
 
121933
122001
  查询方式:SCORE 按分数范围,LEX 按字典序
121934
122002
 
@@ -121938,7 +122006,7 @@ Defined in: [lib/kv.ts:1390](https://github.com/maiyunnet/kebab/blob/master/lib/
121938
122006
 
121939
122007
  > `optional` **count?**: `number`
121940
122008
 
121941
- Defined in: [lib/kv.ts:1396](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1396)
122009
+ Defined in: [lib/kv.ts:1452](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1452)
121942
122010
 
121943
122011
  分页条数,需与 offset 同用
121944
122012
 
@@ -121948,7 +122016,7 @@ Defined in: [lib/kv.ts:1396](https://github.com/maiyunnet/kebab/blob/master/lib/
121948
122016
 
121949
122017
  > `optional` **offset?**: `number`
121950
122018
 
121951
- Defined in: [lib/kv.ts:1394](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1394)
122019
+ Defined in: [lib/kv.ts:1450](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1450)
121952
122020
 
121953
122021
  分页偏移量,需与 count 同用
121954
122022
 
@@ -121958,7 +122026,7 @@ Defined in: [lib/kv.ts:1394](https://github.com/maiyunnet/kebab/blob/master/lib/
121958
122026
 
121959
122027
  > `optional` **rev?**: `boolean`
121960
122028
 
121961
- Defined in: [lib/kv.ts:1392](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1392)
122029
+ Defined in: [lib/kv.ts:1448](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1448)
121962
122030
 
121963
122031
  是否倒序返回
121964
122032
 
@@ -121975,7 +122043,7 @@ lib/kv/type-aliases/TRedisClient.md
121975
122043
 
121976
122044
  > **TRedisClient** = `redis.RedisClientType`\<`Record`\<`string`, `never`\>, `Record`\<`string`, `never`\>, `Record`\<`string`, `never`\>, `2`\>
121977
122045
 
121978
- Defined in: [lib/kv.ts:1369](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1369)
122046
+ Defined in: [lib/kv.ts:1425](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1425)
121979
122047
 
121980
122048
  底层官方 redis 客户端类型(固定 RESP2)
121981
122049
 
@@ -121992,7 +122060,7 @@ lib/kv/type-aliases/TRedisMulti.md
121992
122060
 
121993
122061
  > **TRedisMulti** = `ReturnType`\<[`TRedisClient`](TRedisClient.md)\[`"multi"`\]\>
121994
122062
 
121995
- Defined in: [lib/kv.ts:1377](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1377)
122063
+ Defined in: [lib/kv.ts:1433](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1433)
121996
122064
 
121997
122065
  底层原生 multi / pipeline 类型
121998
122066
 
@@ -123628,9 +123696,9 @@ lib/ratelimit/functions/checkFixed.md
123628
123696
 
123629
123697
  > **checkFixed**(`kv`, `key`, `opt?`): `Promise`\<[`ICheckResult`](../interfaces/ICheckResult.md)\>
123630
123698
 
123631
- Defined in: [lib/ratelimit.ts:77](https://github.com/maiyunnet/kebab/blob/master/lib/ratelimit.ts#L77)
123699
+ Defined in: [lib/ratelimit.ts:27](https://github.com/maiyunnet/kebab/blob/master/lib/ratelimit.ts#L27)
123632
123700
 
123633
- 简易固定窗口限速检查(性能更高,精度较低)
123701
+ 检查指定 key 是否超出固定窗口限额,窗口从首次请求开始且超限请求同样计入次数
123634
123702
 
123635
123703
  ## Parameters
123636
123704
 
@@ -123648,30 +123716,16 @@ KV 实例
123648
123716
 
123649
123717
  ### opt?
123650
123718
 
123651
- 限速选项
123652
-
123653
- #### max?
123654
-
123655
- `number`
123656
-
123657
- 窗口内最大请求数,默认 60
123658
-
123659
- #### pre?
123660
-
123661
- `string`
123662
-
123663
- key 前缀,默认 rl:
123664
-
123665
- #### window?
123666
-
123667
- `number`
123719
+ [`ICheckOptions`](../interfaces/ICheckOptions.md) = `{}`
123668
123720
 
123669
- 窗口时间(秒),默认 60
123721
+ 限速选项
123670
123722
 
123671
123723
  ## Returns
123672
123724
 
123673
123725
  `Promise`\<[`ICheckResult`](../interfaces/ICheckResult.md)\>
123674
123726
 
123727
+ 检查结果;后续请求沿用首次请求设置的过期时间,Redis 无法检查时默认放行并标记 unavailable,failClosed 为 true 时拒绝
123728
+
123675
123729
  lib/ratelimit/functions/check.md
123676
123730
  ---
123677
123731
 
@@ -123685,9 +123739,9 @@ lib/ratelimit/functions/check.md
123685
123739
 
123686
123740
  > **check**(`kv`, `key`, `opt?`): `Promise`\<[`ICheckResult`](../interfaces/ICheckResult.md)\>
123687
123741
 
123688
- Defined in: [lib/ratelimit.ts:18](https://github.com/maiyunnet/kebab/blob/master/lib/ratelimit.ts#L18)
123742
+ Defined in: [lib/ratelimit.ts:16](https://github.com/maiyunnet/kebab/blob/master/lib/ratelimit.ts#L16)
123689
123743
 
123690
- 检查指定 key 是否超速,使用多段近似滑动窗口算法
123744
+ 检查指定 key 是否超出近似滑动窗口限额,超限请求同样计入次数
123691
123745
 
123692
123746
  ## Parameters
123693
123747
 
@@ -123705,31 +123759,15 @@ KV 实例
123705
123759
 
123706
123760
  ### opt?
123707
123761
 
123708
- 限速选项
123709
-
123710
- #### max?
123711
-
123712
- `number`
123713
-
123714
- 窗口内最大请求数,默认 60
123762
+ [`ICheckOptions`](../interfaces/ICheckOptions.md) = `{}`
123715
123763
 
123716
- #### pre?
123717
-
123718
- `string`
123719
-
123720
- key 前缀,默认 rl:
123721
-
123722
- #### window?
123723
-
123724
- `number`
123725
-
123726
- 窗口时间(秒),默认 60
123764
+ 限速选项
123727
123765
 
123728
123766
  ## Returns
123729
123767
 
123730
123768
  `Promise`\<[`ICheckResult`](../interfaces/ICheckResult.md)\>
123731
123769
 
123732
- 返回结果对象
123770
+ 检查结果;窗口开头最多多计一个时间段,Redis 无法检查时默认放行并标记 unavailable,failClosed 为 true 时拒绝
123733
123771
 
123734
123772
  lib/ratelimit/index.md
123735
123773
  ---
@@ -123744,6 +123782,7 @@ lib/ratelimit/index.md
123744
123782
 
123745
123783
  ## Interfaces
123746
123784
 
123785
+ - [ICheckOptions](interfaces/ICheckOptions.md)
123747
123786
  - [ICheckResult](interfaces/ICheckResult.md)
123748
123787
 
123749
123788
  ## Functions
@@ -123751,6 +123790,61 @@ lib/ratelimit/index.md
123751
123790
  - [check](functions/check.md)
123752
123791
  - [checkFixed](functions/checkFixed.md)
123753
123792
 
123793
+ lib/ratelimit/interfaces/ICheckOptions.md
123794
+ ---
123795
+
123796
+ [**Documents for @maiyunnet/kebab**](../../../index.md)
123797
+
123798
+ ***
123799
+
123800
+ [Documents for @maiyunnet/kebab](../../../index.md) / [lib/ratelimit](../index.md) / ICheckOptions
123801
+
123802
+ # Interface: ICheckOptions
123803
+
123804
+ Defined in: [lib/ratelimit.ts:34](https://github.com/maiyunnet/kebab/blob/master/lib/ratelimit.ts#L34)
123805
+
123806
+ 限速检查选项
123807
+
123808
+ ## Properties
123809
+
123810
+ ### failClosed?
123811
+
123812
+ > `optional` **failClosed?**: `boolean`
123813
+
123814
+ Defined in: [lib/ratelimit.ts:42](https://github.com/maiyunnet/kebab/blob/master/lib/ratelimit.ts#L42)
123815
+
123816
+ Redis 无法检查时是否拒绝请求,默认 false(放行)
123817
+
123818
+ ***
123819
+
123820
+ ### max?
123821
+
123822
+ > `optional` **max?**: `number`
123823
+
123824
+ Defined in: [lib/ratelimit.ts:38](https://github.com/maiyunnet/kebab/blob/master/lib/ratelimit.ts#L38)
123825
+
123826
+ 窗口内最大请求数,默认 60
123827
+
123828
+ ***
123829
+
123830
+ ### pre?
123831
+
123832
+ > `optional` **pre?**: `string`
123833
+
123834
+ Defined in: [lib/ratelimit.ts:40](https://github.com/maiyunnet/kebab/blob/master/lib/ratelimit.ts#L40)
123835
+
123836
+ key 前缀,默认 rl:
123837
+
123838
+ ***
123839
+
123840
+ ### window?
123841
+
123842
+ > `optional` **window?**: `number`
123843
+
123844
+ Defined in: [lib/ratelimit.ts:36](https://github.com/maiyunnet/kebab/blob/master/lib/ratelimit.ts#L36)
123845
+
123846
+ 窗口时间(秒),默认 60
123847
+
123754
123848
  lib/ratelimit/interfaces/ICheckResult.md
123755
123849
  ---
123756
123850
 
@@ -123762,7 +123856,7 @@ lib/ratelimit/interfaces/ICheckResult.md
123762
123856
 
123763
123857
  # Interface: ICheckResult
123764
123858
 
123765
- Defined in: [lib/ratelimit.ts:117](https://github.com/maiyunnet/kebab/blob/master/lib/ratelimit.ts#L117)
123859
+ Defined in: [lib/ratelimit.ts:46](https://github.com/maiyunnet/kebab/blob/master/lib/ratelimit.ts#L46)
123766
123860
 
123767
123861
  限速检查结果
123768
123862
 
@@ -123772,7 +123866,7 @@ Defined in: [lib/ratelimit.ts:117](https://github.com/maiyunnet/kebab/blob/maste
123772
123866
 
123773
123867
  > **allowed**: `boolean`
123774
123868
 
123775
- Defined in: [lib/ratelimit.ts:119](https://github.com/maiyunnet/kebab/blob/master/lib/ratelimit.ts#L119)
123869
+ Defined in: [lib/ratelimit.ts:48](https://github.com/maiyunnet/kebab/blob/master/lib/ratelimit.ts#L48)
123776
123870
 
123777
123871
  是否允许通过
123778
123872
 
@@ -123782,7 +123876,7 @@ Defined in: [lib/ratelimit.ts:119](https://github.com/maiyunnet/kebab/blob/maste
123782
123876
 
123783
123877
  > **limit**: `number`
123784
123878
 
123785
- Defined in: [lib/ratelimit.ts:123](https://github.com/maiyunnet/kebab/blob/master/lib/ratelimit.ts#L123)
123879
+ Defined in: [lib/ratelimit.ts:52](https://github.com/maiyunnet/kebab/blob/master/lib/ratelimit.ts#L52)
123786
123880
 
123787
123881
  总限额
123788
123882
 
@@ -123792,9 +123886,9 @@ Defined in: [lib/ratelimit.ts:123](https://github.com/maiyunnet/kebab/blob/maste
123792
123886
 
123793
123887
  > **remaining**: `number`
123794
123888
 
123795
- Defined in: [lib/ratelimit.ts:121](https://github.com/maiyunnet/kebab/blob/master/lib/ratelimit.ts#L121)
123889
+ Defined in: [lib/ratelimit.ts:50](https://github.com/maiyunnet/kebab/blob/master/lib/ratelimit.ts#L50)
123796
123890
 
123797
- 剩余可用次数
123891
+ 当前剩余可用次数
123798
123892
 
123799
123893
  ***
123800
123894
 
@@ -123802,9 +123896,19 @@ Defined in: [lib/ratelimit.ts:121](https://github.com/maiyunnet/kebab/blob/maste
123802
123896
 
123803
123897
  > **reset**: `number`
123804
123898
 
123805
- Defined in: [lib/ratelimit.ts:125](https://github.com/maiyunnet/kebab/blob/master/lib/ratelimit.ts#L125)
123899
+ Defined in: [lib/ratelimit.ts:54](https://github.com/maiyunnet/kebab/blob/master/lib/ratelimit.ts#L54)
123900
+
123901
+ 预计恢复额度的 Unix 秒,滑动窗口按此后没有新请求估算
123902
+
123903
+ ***
123904
+
123905
+ ### unavailable?
123806
123906
 
123807
- 窗口重置时间(Unix 时间戳秒)
123907
+ > `optional` **unavailable?**: `true`
123908
+
123909
+ Defined in: [lib/ratelimit.ts:56](https://github.com/maiyunnet/kebab/blob/master/lib/ratelimit.ts#L56)
123910
+
123911
+ Redis 无法检查限额时为 true
123808
123912
 
123809
123913
  lib/s3/classes/S3.md
123810
123914
  ---
@@ -136649,6 +136753,8 @@ Defined in: [sys/ctr.ts:1094](https://github.com/maiyunnet/kebab/blob/master/sys
136649
136753
 
136650
136754
  `string`
136651
136755
 
136756
+ data 目录下的文件路径(不含 .json 扩展名)
136757
+
136652
136758
  #### Returns
136653
136759
 
136654
136760
  `Promise`\<`false` \| `T` \| `null`\>
@@ -136734,6 +136840,8 @@ Defined in: [sys/ctr.ts:475](https://github.com/maiyunnet/kebab/blob/master/sys/
136734
136840
 
136735
136841
  `string`
136736
136842
 
136843
+ 视图目录下的文件路径(不含 .ejs 扩展名)
136844
+
136737
136845
  ##### data?
136738
136846
 
136739
136847
  `any` = `{}`
@@ -137961,7 +138069,7 @@ sys/mod/classes/default.md
137961
138069
 
137962
138070
  # Class: default
137963
138071
 
137964
- Defined in: [sys/mod.ts:98](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L98)
138072
+ Defined in: [sys/mod.ts:100](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L100)
137965
138073
 
137966
138074
  开启软更需要在表添加字段:ALTER TABLE `table_name` ADD `time_remove` bigint NOT NULL DEFAULT '0' AFTER `xxx`;
137967
138075
 
@@ -137971,7 +138079,7 @@ Defined in: [sys/mod.ts:98](https://github.com/maiyunnet/kebab/blob/master/sys/m
137971
138079
 
137972
138080
  > **new default**(`opt`): `Mod`
137973
138081
 
137974
- Defined in: [sys/mod.ts:159](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L159)
138082
+ Defined in: [sys/mod.ts:164](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L164)
137975
138083
 
137976
138084
  构造函数
137977
138085
 
@@ -138023,6 +138131,12 @@ MySQL 优化器 Hint,如 `INDEX(\`t\` \`idx_xx\`)`,注入到 SELECT 后
138023
138131
 
138024
138132
  MySQL 表前缀或 PostgreSQL Schema 名,优先级:选项 > 类属性 > 配置
138025
138133
 
138134
+ ###### read?
138135
+
138136
+ `boolean`
138137
+
138138
+ 是否优先使用只读从库,默认 false(走主库)
138139
+
138026
138140
  ###### row?
138027
138141
 
138028
138142
  `Record`\<`string`, `any`\>
@@ -138045,7 +138159,7 @@ MySQL 表前缀或 PostgreSQL Schema 名,优先级:选项 > 类属性 > 配
138045
138159
 
138046
138160
  > `protected` **\_contain**: \{ `key`: `string`; `list`: `string`[]; \} \| `null` = `null`
138047
138161
 
138048
- Defined in: [sys/mod.ts:135](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L135)
138162
+ Defined in: [sys/mod.ts:137](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L137)
138049
138163
 
138050
138164
  必须追加的数据筛选 key 与 values,仅单表模式有效
138051
138165
 
@@ -138055,7 +138169,7 @@ Defined in: [sys/mod.ts:135](https://github.com/maiyunnet/kebab/blob/master/sys/
138055
138169
 
138056
138170
  > `protected` `optional` **\_ctr?**: [`Ctr`](../../ctr/classes/Ctr.md) = `undefined`
138057
138171
 
138058
- Defined in: [sys/mod.ts:150](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L150)
138172
+ Defined in: [sys/mod.ts:152](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L152)
138059
138173
 
138060
138174
  ctr 对象
138061
138175
 
@@ -138065,7 +138179,7 @@ ctr 对象
138065
138179
 
138066
138180
  > `protected` **\_data**: `Record`\<`string`, `any`\> = `{}`
138067
138181
 
138068
- Defined in: [sys/mod.ts:129](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L129)
138182
+ Defined in: [sys/mod.ts:131](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L131)
138069
138183
 
138070
138184
  模型获取的属性
138071
138185
 
@@ -138075,7 +138189,7 @@ Defined in: [sys/mod.ts:129](https://github.com/maiyunnet/kebab/blob/master/sys/
138075
138189
 
138076
138190
  > `protected` **\_db**: [`Transaction`](../../../lib/db/tran/classes/Transaction.md) \| [`Pool`](../../../lib/db/pool/classes/Pool.md)
138077
138191
 
138078
- Defined in: [sys/mod.ts:144](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L144)
138192
+ Defined in: [sys/mod.ts:146](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L146)
138079
138193
 
138080
138194
  数据库连接对象
138081
138195
 
@@ -138085,7 +138199,7 @@ Defined in: [sys/mod.ts:144](https://github.com/maiyunnet/kebab/blob/master/sys/
138085
138199
 
138086
138200
  > `protected` **\_fieldPrefix**: `string` = `''`
138087
138201
 
138088
- Defined in: [sys/mod.ts:153](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L153)
138202
+ Defined in: [sys/mod.ts:155](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L155)
138089
138203
 
138090
138204
  主表筛选前缀,优先 alias,其次表名
138091
138205
 
@@ -138095,7 +138209,7 @@ Defined in: [sys/mod.ts:153](https://github.com/maiyunnet/kebab/blob/master/sys/
138095
138209
 
138096
138210
  > `protected` **\_index**: `string`[] \| `null` = `null`
138097
138211
 
138098
- Defined in: [sys/mod.ts:132](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L132)
138212
+ Defined in: [sys/mod.ts:134](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L134)
138099
138213
 
138100
138214
  当前选择的分表 _ 后缀,多个代表联查
138101
138215
 
@@ -138105,17 +138219,27 @@ Defined in: [sys/mod.ts:132](https://github.com/maiyunnet/kebab/blob/master/sys/
138105
138219
 
138106
138220
  > `protected` **\_jsonUpdates**: `Record`\<`string`, `boolean`\> = `{}`
138107
138221
 
138108
- Defined in: [sys/mod.ts:126](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L126)
138222
+ Defined in: [sys/mod.ts:128](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L128)
138109
138223
 
138110
138224
  要在数据库边界序列化的 JSON 字段
138111
138225
 
138112
138226
  ***
138113
138227
 
138228
+ ### \_read
138229
+
138230
+ > `protected` **\_read**: `boolean` = `false`
138231
+
138232
+ Defined in: [sys/mod.ts:158](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L158)
138233
+
138234
+ 当前查询是否优先使用只读从库
138235
+
138236
+ ***
138237
+
138114
138238
  ### \_sql
138115
138239
 
138116
138240
  > `protected` **\_sql**: [`Sql`](../../../lib/sql/classes/Sql.md)
138117
138241
 
138118
- Defined in: [sys/mod.ts:147](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L147)
138242
+ Defined in: [sys/mod.ts:149](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L149)
138119
138243
 
138120
138244
  Sql 对象
138121
138245
 
@@ -138125,7 +138249,7 @@ Sql 对象
138125
138249
 
138126
138250
  > `protected` **\_total**: `number`[] = `[]`
138127
138251
 
138128
- Defined in: [sys/mod.ts:141](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L141)
138252
+ Defined in: [sys/mod.ts:143](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L143)
138129
138253
 
138130
138254
  已算出的 total
138131
138255
 
@@ -138135,7 +138259,7 @@ Defined in: [sys/mod.ts:141](https://github.com/maiyunnet/kebab/blob/master/sys/
138135
138259
 
138136
138260
  > `protected` **\_updates**: `Record`\<`string`, `boolean`\> = `{}`
138137
138261
 
138138
- Defined in: [sys/mod.ts:123](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L123)
138262
+ Defined in: [sys/mod.ts:125](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L125)
138139
138263
 
138140
138264
  要 update 的内容
138141
138265
 
@@ -138145,7 +138269,7 @@ Defined in: [sys/mod.ts:123](https://github.com/maiyunnet/kebab/blob/master/sys/
138145
138269
 
138146
138270
  > `protected` `static` **\_$index**: `string` \| `string`[] = `''`
138147
138271
 
138148
- Defined in: [sys/mod.ts:117](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L117)
138272
+ Defined in: [sys/mod.ts:119](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L119)
138149
138273
 
138150
138274
  自动 key 冲突目标:MySQL 为索引名;PGSQL 为唯一字段或字段数组,PG 留空使用 _$key,不支持部分或表达式索引
138151
138275
 
@@ -138155,7 +138279,7 @@ Defined in: [sys/mod.ts:117](https://github.com/maiyunnet/kebab/blob/master/sys/
138155
138279
 
138156
138280
  > `protected` `static` **\_$key**: `string` = `''`
138157
138281
 
138158
- Defined in: [sys/mod.ts:114](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L114)
138282
+ Defined in: [sys/mod.ts:116](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L116)
138159
138283
 
138160
138284
  设置后将由 _keyGenerator 函数生成唯一字段
138161
138285
 
@@ -138165,7 +138289,7 @@ Defined in: [sys/mod.ts:114](https://github.com/maiyunnet/kebab/blob/master/sys/
138165
138289
 
138166
138290
  > `protected` `static` **\_$partition**: `string`[] = `[]`
138167
138291
 
138168
- Defined in: [sys/mod.ts:111](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L111)
138292
+ Defined in: [sys/mod.ts:113](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L113)
138169
138293
 
138170
138294
  表的分区字段名,如 ['time_push']
138171
138295
  只填分区字段,不用额外填写主键;save、remove、refresh 默认会把主键一起加入 WHERE。
@@ -138177,7 +138301,7 @@ Defined in: [sys/mod.ts:111](https://github.com/maiyunnet/kebab/blob/master/sys/
138177
138301
 
138178
138302
  > `protected` `static` `optional` **\_$pre?**: `string`
138179
138303
 
138180
- Defined in: [sys/mod.ts:120](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L120)
138304
+ Defined in: [sys/mod.ts:122](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L122)
138181
138305
 
138182
138306
  前缀,MySQL 时为表前缀(如 prefix_),PostgreSQL 时为 Schema 名。顺序:选项前缀 -> 本前缀 -> 配置文件前缀
138183
138307
 
@@ -138187,7 +138311,7 @@ Defined in: [sys/mod.ts:120](https://github.com/maiyunnet/kebab/blob/master/sys/
138187
138311
 
138188
138312
  > `protected` `static` **\_$primary**: `string` = `'id'`
138189
138313
 
138190
- Defined in: [sys/mod.ts:104](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L104)
138314
+ Defined in: [sys/mod.ts:106](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L106)
138191
138315
 
138192
138316
  主键字段名
138193
138317
 
@@ -138197,7 +138321,7 @@ Defined in: [sys/mod.ts:104](https://github.com/maiyunnet/kebab/blob/master/sys/
138197
138321
 
138198
138322
  > `protected` `static` **\_$table**: `string` = `''`
138199
138323
 
138200
- Defined in: [sys/mod.ts:101](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L101)
138324
+ Defined in: [sys/mod.ts:103](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L103)
138201
138325
 
138202
138326
  表名
138203
138327
 
@@ -138207,7 +138331,7 @@ Defined in: [sys/mod.ts:101](https://github.com/maiyunnet/kebab/blob/master/sys/
138207
138331
 
138208
138332
  > `protected` **\_keyGenerator**(): `string`
138209
138333
 
138210
- Defined in: [sys/mod.ts:2132](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2132)
138334
+ Defined in: [sys/mod.ts:2160](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2160)
138211
138335
 
138212
138336
  当 _key 不为空时,则依据继承此方法的方法自动生成填充 key
138213
138337
 
@@ -138223,7 +138347,7 @@ Defined in: [sys/mod.ts:2132](https://github.com/maiyunnet/kebab/blob/master/sys
138223
138347
 
138224
138348
  > **all**(): `Promise`\<`false` \| [`Rows`](Rows.md)\<`Mod` & [`TModRow`](../type-aliases/TModRow.md)\>\>
138225
138349
 
138226
- Defined in: [sys/mod.ts:1332](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1332)
138350
+ Defined in: [sys/mod.ts:1360](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1360)
138227
138351
 
138228
138352
  查询模型列表,查询失败返回 false
138229
138353
 
@@ -138235,7 +138359,7 @@ Defined in: [sys/mod.ts:1332](https://github.com/maiyunnet/kebab/blob/master/sys
138235
138359
 
138236
138360
  > **all**(`key`): `Promise`\<`false` \| `Record`\<`string`, `Mod` & [`TModRow`](../type-aliases/TModRow.md)\>\>
138237
138361
 
138238
- Defined in: [sys/mod.ts:1337](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1337)
138362
+ Defined in: [sys/mod.ts:1365](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1365)
138239
138363
 
138240
138364
  查询模型字典,查询失败返回 false
138241
138365
 
@@ -138255,7 +138379,7 @@ Defined in: [sys/mod.ts:1337](https://github.com/maiyunnet/kebab/blob/master/sys
138255
138379
 
138256
138380
  > **all**\<`TExtra`\>(): `Promise`\<`false` \| [`Rows`](Rows.md)\<`Mod` & `TExtra`\>\>
138257
138381
 
138258
- Defined in: [sys/mod.ts:1339](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1339)
138382
+ Defined in: [sys/mod.ts:1367](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1367)
138259
138383
 
138260
138384
  查询模型列表,并为查询附加的字段指定类型,查询失败返回 false
138261
138385
 
@@ -138273,7 +138397,7 @@ Defined in: [sys/mod.ts:1339](https://github.com/maiyunnet/kebab/blob/master/sys
138273
138397
 
138274
138398
  > **all**\<`TExtra`\>(`key`): `Promise`\<`false` \| `Record`\<`string`, `Mod` & `TExtra`\>\>
138275
138399
 
138276
- Defined in: [sys/mod.ts:1344](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1344)
138400
+ Defined in: [sys/mod.ts:1372](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1372)
138277
138401
 
138278
138402
  查询模型字典,并为查询附加的字段指定类型,查询失败返回 false
138279
138403
 
@@ -138303,7 +138427,7 @@ Defined in: [sys/mod.ts:1344](https://github.com/maiyunnet/kebab/blob/master/sys
138303
138427
 
138304
138428
  > **allArray**(): `Promise`\<`false` \| [`TModRow`](../type-aliases/TModRow.md)[]\>
138305
138429
 
138306
- Defined in: [sys/mod.ts:1520](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1520)
138430
+ Defined in: [sys/mod.ts:1548](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1548)
138307
138431
 
138308
138432
  查询原生行列表,查询失败返回 false
138309
138433
 
@@ -138315,7 +138439,7 @@ Defined in: [sys/mod.ts:1520](https://github.com/maiyunnet/kebab/blob/master/sys
138315
138439
 
138316
138440
  > **allArray**(`key`): `Promise`\<`false` \| `Record`\<`string`, [`TModRow`](../type-aliases/TModRow.md)\>\>
138317
138441
 
138318
- Defined in: [sys/mod.ts:1525](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1525)
138442
+ Defined in: [sys/mod.ts:1553](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1553)
138319
138443
 
138320
138444
  查询原生行字典,查询失败返回 false
138321
138445
 
@@ -138335,7 +138459,7 @@ Defined in: [sys/mod.ts:1525](https://github.com/maiyunnet/kebab/blob/master/sys
138335
138459
 
138336
138460
  > **allArray**\<`TRow`\>(): `Promise`\<`false` \| `TRow`[]\>
138337
138461
 
138338
- Defined in: [sys/mod.ts:1527](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1527)
138462
+ Defined in: [sys/mod.ts:1555](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1555)
138339
138463
 
138340
138464
  查询指定行类型的原生行列表,查询失败返回 false
138341
138465
 
@@ -138353,7 +138477,7 @@ Defined in: [sys/mod.ts:1527](https://github.com/maiyunnet/kebab/blob/master/sys
138353
138477
 
138354
138478
  > **allArray**\<`TRow`\>(`key`): `Promise`\<`false` \| `Record`\<`string`, `TRow`\>\>
138355
138479
 
138356
- Defined in: [sys/mod.ts:1532](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1532)
138480
+ Defined in: [sys/mod.ts:1560](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1560)
138357
138481
 
138358
138482
  查询指定行类型的原生行字典,查询失败返回 false
138359
138483
 
@@ -138381,7 +138505,7 @@ Defined in: [sys/mod.ts:1532](https://github.com/maiyunnet/kebab/blob/master/sys
138381
138505
 
138382
138506
  > **allCursor**\<`T`\>(`count`, `opt`): `Promise`\<`false` \| [`ICursorPage`](../interfaces/ICursorPage.md)\<`T`\>\>
138383
138507
 
138384
- Defined in: [sys/mod.ts:1776](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1776)
138508
+ Defined in: [sys/mod.ts:1804](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1804)
138385
138509
 
138386
138510
  读取一批游标数据,多取一条判断后续记录,不使用 OFFSET,不修改原查询
138387
138511
  排序字段必须全部非空、同向,且组合唯一;SELECT 中须包含对应字段(同名或指定 keys)
@@ -138446,7 +138570,7 @@ SELECT 结果中对应的字段名,默认去掉 by 的表别名
138446
138570
 
138447
138571
  > **append**(`sql`): `this`
138448
138572
 
138449
- Defined in: [sys/mod.ts:2039](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2039)
138573
+ Defined in: [sys/mod.ts:2067](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2067)
138450
138574
 
138451
138575
  在 sql 最后追加字符串
138452
138576
 
@@ -138466,7 +138590,7 @@ Defined in: [sys/mod.ts:2039](https://github.com/maiyunnet/kebab/blob/master/sys
138466
138590
 
138467
138591
  > **by**(`c`, `d?`): `this`
138468
138592
 
138469
- Defined in: [sys/mod.ts:1995](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1995)
138593
+ Defined in: [sys/mod.ts:2023](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2023)
138470
138594
 
138471
138595
  ORDER BY
138472
138596
 
@@ -138494,7 +138618,7 @@ ORDER BY
138494
138618
 
138495
138619
  > **contain**(`contain`): `this`
138496
138620
 
138497
- Defined in: [sys/mod.ts:2048](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2048)
138621
+ Defined in: [sys/mod.ts:2076](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2076)
138498
138622
 
138499
138623
  设置闭包含数据
138500
138624
 
@@ -138522,7 +138646,7 @@ Defined in: [sys/mod.ts:2048](https://github.com/maiyunnet/kebab/blob/master/sys
138522
138646
 
138523
138647
  > **count**(): `Promise`\<`number`\>
138524
138648
 
138525
- Defined in: [sys/mod.ts:1831](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1831)
138649
+ Defined in: [sys/mod.ts:1859](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1859)
138526
138650
 
138527
138651
  根据当前条件,筛选出当前条目该有的数据条数
138528
138652
 
@@ -138536,7 +138660,7 @@ Defined in: [sys/mod.ts:1831](https://github.com/maiyunnet/kebab/blob/master/sys
138536
138660
 
138537
138661
  > **countSql**(): `string`
138538
138662
 
138539
- Defined in: [sys/mod.ts:1852](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1852)
138663
+ Defined in: [sys/mod.ts:1880](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1880)
138540
138664
 
138541
138665
  获取当前条件下的 count 的 SQL 语句
138542
138666
 
@@ -138550,7 +138674,7 @@ Defined in: [sys/mod.ts:1852](https://github.com/maiyunnet/kebab/blob/master/sys
138550
138674
 
138551
138675
  > **create**(): `Promise`\<`boolean` \| `null`\>
138552
138676
 
138553
- Defined in: [sys/mod.ts:940](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L940)
138677
+ Defined in: [sys/mod.ts:957](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L957)
138554
138678
 
138555
138679
  创建数据,自动 key 最多尝试 3 次;PGSQL 仅忽略指定字段的唯一冲突
138556
138680
 
@@ -138566,7 +138690,7 @@ true-成功,false-错误或重试耗尽,null-其他唯一冲突;PGSQL 的 SQL
138566
138690
 
138567
138691
  > **crossJoin**(`f`, `s`, `index?`, `pre?`): `this`
138568
138692
 
138569
- Defined in: [sys/mod.ts:1927](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1927)
138693
+ Defined in: [sys/mod.ts:1955](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1955)
138570
138694
 
138571
138695
  cross join 方法
138572
138696
 
@@ -138616,7 +138740,7 @@ ON 信息
138616
138740
 
138617
138741
  > **explain**(`all?`): `Promise`\<`string` \| `false`\>
138618
138742
 
138619
- Defined in: [sys/mod.ts:1653](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1653)
138743
+ Defined in: [sys/mod.ts:1681](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1681)
138620
138744
 
138621
138745
  ##### Parameters
138622
138746
 
@@ -138632,7 +138756,7 @@ Defined in: [sys/mod.ts:1653](https://github.com/maiyunnet/kebab/blob/master/sys
138632
138756
 
138633
138757
  > **explain**(`all`): `Promise`\<`false` \| `Record`\<`string`, `any`\>\>
138634
138758
 
138635
- Defined in: [sys/mod.ts:1654](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1654)
138759
+ Defined in: [sys/mod.ts:1682](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1682)
138636
138760
 
138637
138761
  ##### Parameters
138638
138762
 
@@ -138650,7 +138774,7 @@ Defined in: [sys/mod.ts:1654](https://github.com/maiyunnet/kebab/blob/master/sys
138650
138774
 
138651
138775
  > **filter**(`s`): `this`
138652
138776
 
138653
- Defined in: [sys/mod.ts:1973](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1973)
138777
+ Defined in: [sys/mod.ts:2001](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2001)
138654
138778
 
138655
138779
  筛选器
138656
138780
 
@@ -138674,7 +138798,7 @@ Defined in: [sys/mod.ts:1973](https://github.com/maiyunnet/kebab/blob/master/sys
138674
138798
 
138675
138799
  > **first**(`lock`, `array`): `Promise`\<`false` \| [`TModRow`](../type-aliases/TModRow.md) \| `null`\>
138676
138800
 
138677
- Defined in: [sys/mod.ts:1208](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1208)
138801
+ Defined in: [sys/mod.ts:1234](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1234)
138678
138802
 
138679
138803
  获取第一条原生记录,查询失败返回 false,未找到返回 null
138680
138804
 
@@ -138696,7 +138820,7 @@ Defined in: [sys/mod.ts:1208](https://github.com/maiyunnet/kebab/blob/master/sys
138696
138820
 
138697
138821
  > **first**(`lock?`, `array?`): `Promise`\<`false` \| `Mod` & [`TModRow`](../type-aliases/TModRow.md) \| `null`\>
138698
138822
 
138699
- Defined in: [sys/mod.ts:1213](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1213)
138823
+ Defined in: [sys/mod.ts:1239](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1239)
138700
138824
 
138701
138825
  获取第一个模型实例,查询失败返回 false,未找到返回 null
138702
138826
 
@@ -138718,7 +138842,7 @@ Defined in: [sys/mod.ts:1213](https://github.com/maiyunnet/kebab/blob/master/sys
138718
138842
 
138719
138843
  > **first**\<`TRow`\>(`lock`, `array`): `Promise`\<`false` \| `TRow` \| `null`\>
138720
138844
 
138721
- Defined in: [sys/mod.ts:1223](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1223)
138845
+ Defined in: [sys/mod.ts:1249](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1249)
138722
138846
 
138723
138847
  获取指定类型的第一条原生记录
138724
138848
 
@@ -138752,7 +138876,7 @@ Defined in: [sys/mod.ts:1223](https://github.com/maiyunnet/kebab/blob/master/sys
138752
138876
 
138753
138877
  > **first**\<`TExtra`\>(`lock?`, `array?`): `Promise`\<`false` \| `Mod` & `TExtra` \| `null`\>
138754
138878
 
138755
- Defined in: [sys/mod.ts:1230](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1230)
138879
+ Defined in: [sys/mod.ts:1256](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1256)
138756
138880
 
138757
138881
  获取第一个模型实例,并为查询附加的字段指定类型
138758
138882
 
@@ -138790,7 +138914,7 @@ Defined in: [sys/mod.ts:1230](https://github.com/maiyunnet/kebab/blob/master/sys
138790
138914
 
138791
138915
  > **firstArray**(`lock?`): `Promise`\<`false` \| [`TModRow`](../type-aliases/TModRow.md) \| `null`\>
138792
138916
 
138793
- Defined in: [sys/mod.ts:1263](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1263)
138917
+ Defined in: [sys/mod.ts:1291](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1291)
138794
138918
 
138795
138919
  获取数据库第一个原生对象
138796
138920
 
@@ -138812,7 +138936,7 @@ Defined in: [sys/mod.ts:1263](https://github.com/maiyunnet/kebab/blob/master/sys
138812
138936
 
138813
138937
  > **firstArray**\<`TRow`\>(`lock?`): `Promise`\<`false` \| `TRow` \| `null`\>
138814
138938
 
138815
- Defined in: [sys/mod.ts:1265](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1265)
138939
+ Defined in: [sys/mod.ts:1293](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1293)
138816
138940
 
138817
138941
  获取指定类型的第一条原生记录,查询失败返回 false,未找到返回 null
138818
138942
 
@@ -138838,7 +138962,7 @@ Defined in: [sys/mod.ts:1265](https://github.com/maiyunnet/kebab/blob/master/sys
138838
138962
 
138839
138963
  > **format**(`sql?`, `data?`): `string`
138840
138964
 
138841
- Defined in: [sys/mod.ts:2075](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2075)
138965
+ Defined in: [sys/mod.ts:2103](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2103)
138842
138966
 
138843
138967
  获取带 data 的 sql 语句
138844
138968
 
@@ -138866,7 +138990,7 @@ sql 语句
138866
138990
 
138867
138991
  > **fullJoin**(`f`, `s`, `index?`, `pre?`): `this`
138868
138992
 
138869
- Defined in: [sys/mod.ts:1915](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1915)
138993
+ Defined in: [sys/mod.ts:1943](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1943)
138870
138994
 
138871
138995
  full join 方法
138872
138996
 
@@ -138908,7 +139032,7 @@ ON 信息
138908
139032
 
138909
139033
  > **get**(`n`): `any`
138910
139034
 
138911
- Defined in: [sys/mod.ts:917](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L917)
139035
+ Defined in: [sys/mod.ts:934](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L934)
138912
139036
 
138913
139037
  获取一个已加载的字段值
138914
139038
 
@@ -138930,7 +139054,7 @@ Defined in: [sys/mod.ts:917](https://github.com/maiyunnet/kebab/blob/master/sys/
138930
139054
 
138931
139055
  > **get**\<`T`\>(`n`): `T` \| `undefined`
138932
139056
 
138933
- Defined in: [sys/mod.ts:919](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L919)
139057
+ Defined in: [sys/mod.ts:936](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L936)
138934
139058
 
138935
139059
  按指定类型获取一个已加载的字段值,未加载时返回 undefined
138936
139060
 
@@ -138956,7 +139080,7 @@ Defined in: [sys/mod.ts:919](https://github.com/maiyunnet/kebab/blob/master/sys/
138956
139080
 
138957
139081
  > **getData**(): `any`[]
138958
139082
 
138959
- Defined in: [sys/mod.ts:2066](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2066)
139083
+ Defined in: [sys/mod.ts:2094](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2094)
138960
139084
 
138961
139085
  获取全部 data
138962
139086
 
@@ -138970,7 +139094,7 @@ Defined in: [sys/mod.ts:2066](https://github.com/maiyunnet/kebab/blob/master/sys
138970
139094
 
138971
139095
  > **getSql**(): `string`
138972
139096
 
138973
- Defined in: [sys/mod.ts:2059](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2059)
139097
+ Defined in: [sys/mod.ts:2087](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2087)
138974
139098
 
138975
139099
  获取 sql 语句
138976
139100
 
@@ -138984,7 +139108,7 @@ Defined in: [sys/mod.ts:2059](https://github.com/maiyunnet/kebab/blob/master/sys
138984
139108
 
138985
139109
  > **group**(`c`): `this`
138986
139110
 
138987
- Defined in: [sys/mod.ts:2004](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2004)
139111
+ Defined in: [sys/mod.ts:2032](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2032)
138988
139112
 
138989
139113
  GROUP BY
138990
139114
 
@@ -139006,7 +139130,7 @@ GROUP BY
139006
139130
 
139007
139131
  > **having**(`s`): `this`
139008
139132
 
139009
- Defined in: [sys/mod.ts:1964](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1964)
139133
+ Defined in: [sys/mod.ts:1992](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1992)
139010
139134
 
139011
139135
  筛选器
139012
139136
 
@@ -139028,7 +139152,7 @@ Defined in: [sys/mod.ts:1964](https://github.com/maiyunnet/kebab/blob/master/sys
139028
139152
 
139029
139153
  > **hint**(`h`): `this`
139030
139154
 
139031
- Defined in: [sys/mod.ts:1955](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1955)
139155
+ Defined in: [sys/mod.ts:1983](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1983)
139032
139156
 
139033
139157
  设置 MySQL 优化器 Hint
139034
139158
  内容会以 Optimizer Hint 注释语法注入到 SELECT 关键字后
@@ -139073,7 +139197,7 @@ Hint 内容
139073
139197
 
139074
139198
  > **innerJoin**(`f`, `s`, `index?`, `pre?`): `this`
139075
139199
 
139076
- Defined in: [sys/mod.ts:1903](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1903)
139200
+ Defined in: [sys/mod.ts:1931](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1931)
139077
139201
 
139078
139202
  inner join 方法
139079
139203
 
@@ -139113,7 +139237,7 @@ ON 信息
139113
139237
 
139114
139238
  > **join**(`f`, `s?`, `type?`, `index?`, `pre?`): `this`
139115
139239
 
139116
- Defined in: [sys/mod.ts:1867](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1867)
139240
+ Defined in: [sys/mod.ts:1895](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1895)
139117
139241
 
139118
139242
  #### Parameters
139119
139243
 
@@ -139157,7 +139281,7 @@ ON 信息
139157
139281
 
139158
139282
  > **langText**(`col`, `lang`): `string`
139159
139283
 
139160
- Defined in: [sys/mod.ts:2112](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2112)
139284
+ Defined in: [sys/mod.ts:2140](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2140)
139161
139285
 
139162
139286
  获取字段的可用语种文本
139163
139287
 
@@ -139185,7 +139309,7 @@ Defined in: [sys/mod.ts:2112](https://github.com/maiyunnet/kebab/blob/master/sys
139185
139309
 
139186
139310
  > **leftJoin**(`f`, `s`, `index?`, `pre?`): `this`
139187
139311
 
139188
- Defined in: [sys/mod.ts:1879](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1879)
139312
+ Defined in: [sys/mod.ts:1907](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1907)
139189
139313
 
139190
139314
  left join 方法
139191
139315
 
@@ -139225,7 +139349,7 @@ ON 信息
139225
139349
 
139226
139350
  > **limit**(`a`, `b?`): `this`
139227
139351
 
139228
- Defined in: [sys/mod.ts:2017](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2017)
139352
+ Defined in: [sys/mod.ts:2045](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2045)
139229
139353
 
139230
139354
  LIMIT
139231
139355
 
@@ -139253,7 +139377,7 @@ LIMIT
139253
139377
 
139254
139378
  > **page**(`count`, `page?`): `this`
139255
139379
 
139256
- Defined in: [sys/mod.ts:2028](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2028)
139380
+ Defined in: [sys/mod.ts:2056](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2056)
139257
139381
 
139258
139382
  分页
139259
139383
 
@@ -139277,11 +139401,33 @@ Defined in: [sys/mod.ts:2028](https://github.com/maiyunnet/kebab/blob/master/sys
139277
139401
 
139278
139402
  ***
139279
139403
 
139404
+ ### read()
139405
+
139406
+ > **read**(`enable?`): `this`
139407
+
139408
+ Defined in: [sys/mod.ts:1228](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1228)
139409
+
139410
+ 设置当前查询是否优先使用只读从库(加锁查询或事务内仍走主库)
139411
+
139412
+ #### Parameters
139413
+
139414
+ ##### enable?
139415
+
139416
+ `boolean` = `true`
139417
+
139418
+ 是否使用只读从库,默认 true
139419
+
139420
+ #### Returns
139421
+
139422
+ `this`
139423
+
139424
+ ***
139425
+
139280
139426
  ### refresh()
139281
139427
 
139282
139428
  > **refresh**(`lock?`): `Promise`\<`boolean` \| `null`\>
139283
139429
 
139284
- Defined in: [sys/mod.ts:1118](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1118)
139430
+ Defined in: [sys/mod.ts:1135](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1135)
139285
139431
 
139286
139432
  刷新当前模型获取最新数据
139287
139433
 
@@ -139305,7 +139451,7 @@ true 成功,null 记录不存在,false 缺少定位字段或查询失败
139305
139451
 
139306
139452
  > **remove**(): `Promise`\<`boolean`\>
139307
139453
 
139308
- Defined in: [sys/mod.ts:1186](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1186)
139454
+ Defined in: [sys/mod.ts:1203](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1203)
139309
139455
 
139310
139456
  按主键和分区字段删除当前记录
139311
139457
 
@@ -139321,7 +139467,7 @@ Defined in: [sys/mod.ts:1186](https://github.com/maiyunnet/kebab/blob/master/sys
139321
139467
 
139322
139468
  > **rightJoin**(`f`, `s`, `index?`, `pre?`): `this`
139323
139469
 
139324
- Defined in: [sys/mod.ts:1891](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1891)
139470
+ Defined in: [sys/mod.ts:1919](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1919)
139325
139471
 
139326
139472
  right join 方法
139327
139473
 
@@ -139361,7 +139507,7 @@ ON 信息
139361
139507
 
139362
139508
  > **save**(`where?`): `Promise`\<`boolean`\>
139363
139509
 
139364
- Defined in: [sys/mod.ts:1150](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1150)
139510
+ Defined in: [sys/mod.ts:1167](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1167)
139365
139511
 
139366
139512
  更新 set 的数据到数据库,有未保存数据时才保存
139367
139513
 
@@ -139401,7 +139547,7 @@ Defined in: [sys/mod.ts:1150](https://github.com/maiyunnet/kebab/blob/master/sys
139401
139547
 
139402
139548
  > **set**\<`T`, `TK`\>(`n`): `void`
139403
139549
 
139404
- Defined in: [sys/mod.ts:881](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L881)
139550
+ Defined in: [sys/mod.ts:898](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L898)
139405
139551
 
139406
139552
  ##### Type Parameters
139407
139553
 
@@ -139427,7 +139573,7 @@ Defined in: [sys/mod.ts:881](https://github.com/maiyunnet/kebab/blob/master/sys/
139427
139573
 
139428
139574
  > **set**\<`T`, `TK`\>(`n`, `v`): `void`
139429
139575
 
139430
- Defined in: [sys/mod.ts:882](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L882)
139576
+ Defined in: [sys/mod.ts:899](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L899)
139431
139577
 
139432
139578
  ##### Type Parameters
139433
139579
 
@@ -139461,7 +139607,7 @@ Defined in: [sys/mod.ts:882](https://github.com/maiyunnet/kebab/blob/master/sys/
139461
139607
 
139462
139608
  > **toArray**(): [`TModRow`](../type-aliases/TModRow.md)
139463
139609
 
139464
- Defined in: [sys/mod.ts:2080](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2080)
139610
+ Defined in: [sys/mod.ts:2108](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2108)
139465
139611
 
139466
139612
  将已加载和已设置的字段复制为一个普通对象
139467
139613
 
@@ -139473,7 +139619,7 @@ Defined in: [sys/mod.ts:2080](https://github.com/maiyunnet/kebab/blob/master/sys
139473
139619
 
139474
139620
  > **toArray**\<`TC`\>(): [`TOnlyProperties`](../type-aliases/TOnlyProperties.md)\<`InstanceType`\<`TC`\>\> & [`TModRow`](../type-aliases/TModRow.md)
139475
139621
 
139476
- Defined in: [sys/mod.ts:2082](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2082)
139622
+ Defined in: [sys/mod.ts:2110](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2110)
139477
139623
 
139478
139624
  将字段复制为普通对象,按指定构造器的实例属性提供类型
139479
139625
 
@@ -139491,7 +139637,7 @@ Defined in: [sys/mod.ts:2082](https://github.com/maiyunnet/kebab/blob/master/sys
139491
139637
 
139492
139638
  > **toArray**\<`TRow`\>(): `TRow`
139493
139639
 
139494
- Defined in: [sys/mod.ts:2084](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2084)
139640
+ Defined in: [sys/mod.ts:2112](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2112)
139495
139641
 
139496
139642
  将字段复制为指定类型的普通对象
139497
139643
 
@@ -139511,7 +139657,7 @@ Defined in: [sys/mod.ts:2084](https://github.com/maiyunnet/kebab/blob/master/sys
139511
139657
 
139512
139658
  > **total**(`f?`): `Promise`\<`number`\>
139513
139659
 
139514
- Defined in: [sys/mod.ts:1711](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1711)
139660
+ Defined in: [sys/mod.ts:1739](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1739)
139515
139661
 
139516
139662
  获取总条数,自动抛弃 LIMIT,仅用于获取数据的情况(select)
139517
139663
 
@@ -139531,7 +139677,7 @@ Defined in: [sys/mod.ts:1711](https://github.com/maiyunnet/kebab/blob/master/sys
139531
139677
 
139532
139678
  > **totalEstimate**(): `Promise`\<`number` \| `false`\>
139533
139679
 
139534
- Defined in: [sys/mod.ts:1737](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1737)
139680
+ Defined in: [sys/mod.ts:1765](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1765)
139535
139681
 
139536
139682
  从 PostgreSQL 执行计划估算查询总行数,移除外层排序和分页,不执行数据扫描
139537
139683
  请在应用游标条件前调用;非 PostgreSQL、框架分表联查或查询失败返回 false,绝不回退到 COUNT
@@ -139548,7 +139694,7 @@ Defined in: [sys/mod.ts:1737](https://github.com/maiyunnet/kebab/blob/master/sys
139548
139694
 
139549
139695
  > **union**(`f`, `type?`): `this`
139550
139696
 
139551
- Defined in: [sys/mod.ts:1275](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1275)
139697
+ Defined in: [sys/mod.ts:1303](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1303)
139552
139698
 
139553
139699
  联合查询表数据
139554
139700
 
@@ -139576,7 +139722,7 @@ Defined in: [sys/mod.ts:1275](https://github.com/maiyunnet/kebab/blob/master/sys
139576
139722
 
139577
139723
  > **unionAll**(`f`): `this`
139578
139724
 
139579
- Defined in: [sys/mod.ts:1305](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1305)
139725
+ Defined in: [sys/mod.ts:1333](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1333)
139580
139726
 
139581
139727
  所有联合查询表数据
139582
139728
 
@@ -139598,7 +139744,7 @@ Defined in: [sys/mod.ts:1305](https://github.com/maiyunnet/kebab/blob/master/sys
139598
139744
 
139599
139745
  > **unsaved**(): `boolean`
139600
139746
 
139601
- Defined in: [sys/mod.ts:2103](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2103)
139747
+ Defined in: [sys/mod.ts:2131](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2131)
139602
139748
 
139603
139749
  当前是否设置了未保存
139604
139750
 
@@ -139612,7 +139758,7 @@ Defined in: [sys/mod.ts:2103](https://github.com/maiyunnet/kebab/blob/master/sys
139612
139758
 
139613
139759
  > **updates**(): `Record`\<`string`, `any`\>
139614
139760
 
139615
- Defined in: [sys/mod.ts:2092](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2092)
139761
+ Defined in: [sys/mod.ts:2120](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2120)
139616
139762
 
139617
139763
  获取当前设置要提交的数据
139618
139764
 
@@ -139626,7 +139772,7 @@ Defined in: [sys/mod.ts:2092](https://github.com/maiyunnet/kebab/blob/master/sys
139626
139772
 
139627
139773
  > **upsert**(`conflict`): `Promise`\<`boolean`\>
139628
139774
 
139629
- Defined in: [sys/mod.ts:1037](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1037)
139775
+ Defined in: [sys/mod.ts:1054](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1054)
139630
139776
 
139631
139777
  插入数据,如果业务唯一键已存在则更新,保留已有主键和自动 key
139632
139778
  PGSQL 为原子 UPSERT,自动 key 只生成一次,SQL 错误需回滚事务
@@ -139652,7 +139798,7 @@ MySQL 分步执行;自动 key 有多个唯一索引时须配置 _$index,整
139652
139798
 
139653
139799
  > **where**(`s`): `this`
139654
139800
 
139655
- Defined in: [sys/mod.ts:1984](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1984)
139801
+ Defined in: [sys/mod.ts:2012](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2012)
139656
139802
 
139657
139803
  是 filter 的别名
139658
139804
 
@@ -139674,7 +139820,7 @@ Defined in: [sys/mod.ts:1984](https://github.com/maiyunnet/kebab/blob/master/sys
139674
139820
 
139675
139821
  > `static` **column**(`field`): `object`
139676
139822
 
139677
- Defined in: [sys/mod.ts:224](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L224)
139823
+ Defined in: [sys/mod.ts:232](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L232)
139678
139824
 
139679
139825
  创建字段对象
139680
139826
 
@@ -139706,7 +139852,7 @@ Defined in: [sys/mod.ts:224](https://github.com/maiyunnet/kebab/blob/master/sys/
139706
139852
 
139707
139853
  > `static` **find**\<`T`\>(`db`, `val`, `opt?`): `Promise`\<`false` \| `T` & `Record`\<`string`, `any`\> \| `null`\>
139708
139854
 
139709
- Defined in: [sys/mod.ts:672](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L672)
139855
+ Defined in: [sys/mod.ts:684](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L684)
139710
139856
 
139711
139857
  根据主键(或 key 字段)获取对象
139712
139858
 
@@ -139760,6 +139906,12 @@ Defined in: [sys/mod.ts:672](https://github.com/maiyunnet/kebab/blob/master/sys/
139760
139906
 
139761
139907
  `string`
139762
139908
 
139909
+ ###### read?
139910
+
139911
+ `boolean`
139912
+
139913
+ 是否优先使用只读从库,默认 false(走主库);加锁或事务内仍走主库
139914
+
139763
139915
  #### Returns
139764
139916
 
139765
139917
  `Promise`\<`false` \| `T` & `Record`\<`string`, `any`\> \| `null`\>
@@ -139770,7 +139922,7 @@ Defined in: [sys/mod.ts:672](https://github.com/maiyunnet/kebab/blob/master/sys/
139770
139922
 
139771
139923
  > `static` **getCreate**\<`T`\>(`db`, `opt?`): `T`
139772
139924
 
139773
- Defined in: [sys/mod.ts:654](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L654)
139925
+ Defined in: [sys/mod.ts:666](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L666)
139774
139926
 
139775
139927
  获取创建对象,通常用于新建数据库条目
139776
139928
 
@@ -139814,7 +139966,7 @@ Defined in: [sys/mod.ts:654](https://github.com/maiyunnet/kebab/blob/master/sys/
139814
139966
 
139815
139967
  > `static` **insert**(`db`, `cs`, `vs?`, `opt?`): `Promise`\<`boolean` \| `null`\>
139816
139968
 
139817
- Defined in: [sys/mod.ts:253](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L253)
139969
+ Defined in: [sys/mod.ts:261](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L261)
139818
139970
 
139819
139971
  添加一个序列(允许超过 65536 的占位符会被拆分多次执行)
139820
139972
 
@@ -139868,7 +140020,7 @@ Defined in: [sys/mod.ts:253](https://github.com/maiyunnet/kebab/blob/master/sys/
139868
140020
 
139869
140021
  > `static` **insertSql**(`db`, `cs`, `vs?`, `opt?`): `string`
139870
140022
 
139871
- Defined in: [sys/mod.ts:316](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L316)
140023
+ Defined in: [sys/mod.ts:324](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L324)
139872
140024
 
139873
140025
  获取添加一个序列的模拟 SQL
139874
140026
 
@@ -139922,7 +140074,7 @@ Defined in: [sys/mod.ts:316](https://github.com/maiyunnet/kebab/blob/master/sys/
139922
140074
 
139923
140075
  > `static` **json**\<`T`\>(`obj`): `T`
139924
140076
 
139925
- Defined in: [sys/mod.ts:242](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L242)
140077
+ Defined in: [sys/mod.ts:250](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L250)
139926
140078
 
139927
140079
  标记 JSON 字段;模型内保持原始对象,写入数据库时再序列化
139928
140080
 
@@ -139950,7 +140102,7 @@ Defined in: [sys/mod.ts:242](https://github.com/maiyunnet/kebab/blob/master/sys/
139950
140102
 
139951
140103
  > `static` **one**(`db`, `s`, `opt`): `Promise`\<`false` \| [`TModRow`](../type-aliases/TModRow.md) \| `null`\>
139952
140104
 
139953
- Defined in: [sys/mod.ts:702](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L702)
140105
+ Defined in: [sys/mod.ts:717](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L717)
139954
140106
 
139955
140107
  按条件读取一条原生记录,查询失败返回 false,未找到返回 null
139956
140108
 
@@ -139976,7 +140128,7 @@ Defined in: [sys/mod.ts:702](https://github.com/maiyunnet/kebab/blob/master/sys/
139976
140128
 
139977
140129
  > `static` **one**\<`T`\>(`db`, `s`, `opt?`): `Promise`\<`false` \| `T` & [`TModRow`](../type-aliases/TModRow.md) \| `null`\>
139978
140130
 
139979
- Defined in: [sys/mod.ts:708](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L708)
140131
+ Defined in: [sys/mod.ts:723](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L723)
139980
140132
 
139981
140133
  按条件读取一个模型实例,查询失败返回 false,未找到返回 null
139982
140134
 
@@ -140008,7 +140160,7 @@ Defined in: [sys/mod.ts:708](https://github.com/maiyunnet/kebab/blob/master/sys/
140008
140160
 
140009
140161
  > `static` **one**\<`TRow`\>(`db`, `s`, `opt`): `Promise`\<`false` \| `TRow` \| `null`\>
140010
140162
 
140011
- Defined in: [sys/mod.ts:714](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L714)
140163
+ Defined in: [sys/mod.ts:729](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L729)
140012
140164
 
140013
140165
  按条件读取一条指定类型的原生记录,查询失败返回 false,未找到返回 null
140014
140166
 
@@ -140044,7 +140196,7 @@ Defined in: [sys/mod.ts:714](https://github.com/maiyunnet/kebab/blob/master/sys/
140044
140196
 
140045
140197
  > `static` **oneArray**(`db`, `s`, `opt?`): `Promise`\<`false` \| [`TModRow`](../type-aliases/TModRow.md) \| `null`\>
140046
140198
 
140047
- Defined in: [sys/mod.ts:772](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L772)
140199
+ Defined in: [sys/mod.ts:789](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L789)
140048
140200
 
140049
140201
  通过 where 条件筛选单条数据返回原生对象
140050
140202
 
@@ -140078,7 +140230,7 @@ Defined in: [sys/mod.ts:772](https://github.com/maiyunnet/kebab/blob/master/sys/
140078
140230
 
140079
140231
  > `static` **oneArray**\<`TRow`\>(`db`, `s`, `opt?`): `Promise`\<`false` \| `TRow` \| `null`\>
140080
140232
 
140081
- Defined in: [sys/mod.ts:778](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L778)
140233
+ Defined in: [sys/mod.ts:795](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L795)
140082
140234
 
140083
140235
  按条件读取一条指定类型的原生记录,查询失败返回 false,未找到返回 null
140084
140236
 
@@ -140112,7 +140264,7 @@ Defined in: [sys/mod.ts:778](https://github.com/maiyunnet/kebab/blob/master/sys/
140112
140264
 
140113
140265
  > `static` **primarys**(`db`, `where?`, `opt?`): `Promise`\<`false` \| `any`[]\>
140114
140266
 
140115
- Defined in: [sys/mod.ts:797](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L797)
140267
+ Defined in: [sys/mod.ts:814](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L814)
140116
140268
 
140117
140269
  根据 where 条件获取主键值列表
140118
140270
 
@@ -140146,6 +140298,10 @@ where 条件
140146
140298
 
140147
140299
  `string`
140148
140300
 
140301
+ ###### read?
140302
+
140303
+ `boolean`
140304
+
140149
140305
  #### Returns
140150
140306
 
140151
140307
  `Promise`\<`false` \| `any`[]\>
@@ -140156,7 +140312,7 @@ where 条件
140156
140312
 
140157
140313
  > `static` **removeByWhere**(`db`, `where`, `opt?`): `Promise`\<`number` \| `false` \| `null`\>
140158
140314
 
140159
- Defined in: [sys/mod.ts:342](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L342)
140315
+ Defined in: [sys/mod.ts:350](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L350)
140160
140316
 
140161
140317
  根据条件移除条目
140162
140318
 
@@ -140208,7 +140364,7 @@ Defined in: [sys/mod.ts:342](https://github.com/maiyunnet/kebab/blob/master/sys/
140208
140364
 
140209
140365
  > `static` **removeByWhereSql**(`db`, `where`, `opt?`): [`Sql`](../../../lib/sql/classes/Sql.md)
140210
140366
 
140211
- Defined in: [sys/mod.ts:386](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L386)
140367
+ Defined in: [sys/mod.ts:394](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L394)
140212
140368
 
140213
140369
  根据条件移除条目(仅获取 SQL 对象)
140214
140370
 
@@ -140260,7 +140416,7 @@ Defined in: [sys/mod.ts:386](https://github.com/maiyunnet/kebab/blob/master/sys/
140260
140416
 
140261
140417
  > `static` **select**\<`T`\>(`db`, `c`, `opt?`): `T`
140262
140418
 
140263
- Defined in: [sys/mod.ts:591](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L591)
140419
+ Defined in: [sys/mod.ts:599](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L599)
140264
140420
 
140265
140421
  select 自定字段
140266
140422
 
@@ -140320,6 +140476,10 @@ select 自定字段
140320
140476
 
140321
140477
  `string`
140322
140478
 
140479
+ ###### read?
140480
+
140481
+ `boolean`
140482
+
140323
140483
  #### Returns
140324
140484
 
140325
140485
  `T`
@@ -140332,7 +140492,7 @@ select 自定字段
140332
140492
 
140333
140493
  > `static` **toArrayByRecord**\<`T`\>(`obj`): `Record`\<`string`, [`TModRow`](../type-aliases/TModRow.md)\>
140334
140494
 
140335
- Defined in: [sys/mod.ts:825](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L825)
140495
+ Defined in: [sys/mod.ts:842](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L842)
140336
140496
 
140337
140497
  将模型字典转换为普通对象字典,沿用原有键
140338
140498
 
@@ -140360,7 +140520,7 @@ Defined in: [sys/mod.ts:825](https://github.com/maiyunnet/kebab/blob/master/sys/
140360
140520
 
140361
140521
  > `static` **toArrayByRecord**\<`TRow`\>(`obj`): `Record`\<`string`, `TRow`\>
140362
140522
 
140363
- Defined in: [sys/mod.ts:829](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L829)
140523
+ Defined in: [sys/mod.ts:846](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L846)
140364
140524
 
140365
140525
  将模型字典转换为指定行类型的普通对象字典
140366
140526
 
@@ -140386,7 +140546,7 @@ Defined in: [sys/mod.ts:829](https://github.com/maiyunnet/kebab/blob/master/sys/
140386
140546
 
140387
140547
  > `static` **updateByWhere**(`db`, `data`, `where`, `opt?`): `Promise`\<`number` \| `false` \| `null`\>
140388
140548
 
140389
- Defined in: [sys/mod.ts:419](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L419)
140549
+ Defined in: [sys/mod.ts:427](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L427)
140390
140550
 
140391
140551
  根据条件更新数据
140392
140552
 
@@ -140444,7 +140604,7 @@ Defined in: [sys/mod.ts:419](https://github.com/maiyunnet/kebab/blob/master/sys/
140444
140604
 
140445
140605
  > `static` **updateByWhereSql**(`db`, `data`, `where`, `opt?`): [`Sql`](../../../lib/sql/classes/Sql.md)
140446
140606
 
140447
- Defined in: [sys/mod.ts:465](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L465)
140607
+ Defined in: [sys/mod.ts:473](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L473)
140448
140608
 
140449
140609
  根据条件更新数据(仅获取 SQL 对象)
140450
140610
 
@@ -140502,7 +140662,7 @@ Defined in: [sys/mod.ts:465](https://github.com/maiyunnet/kebab/blob/master/sys/
140502
140662
 
140503
140663
  > `static` **updateList**(`db`, `data`, `key`, `opt?`): `Promise`\<`boolean` \| `null`\>
140504
140664
 
140505
- Defined in: [sys/mod.ts:503](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L503)
140665
+ Defined in: [sys/mod.ts:511](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L511)
140506
140666
 
140507
140667
  批量更新数据
140508
140668
 
@@ -140560,7 +140720,7 @@ Defined in: [sys/mod.ts:503](https://github.com/maiyunnet/kebab/blob/master/sys/
140560
140720
 
140561
140721
  > `static` **value**(`val`): `object`
140562
140722
 
140563
- Defined in: [sys/mod.ts:233](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L233)
140723
+ Defined in: [sys/mod.ts:241](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L241)
140564
140724
 
140565
140725
  创建字面量值对象,用于 where 条件中 v[0] 需要是值而非字段名的场景
140566
140726
 
@@ -140592,7 +140752,7 @@ Defined in: [sys/mod.ts:233](https://github.com/maiyunnet/kebab/blob/master/sys/
140592
140752
 
140593
140753
  > `static` **where**\<`T`\>(`db`, `s?`, `opt?`): `T`
140594
140754
 
140595
- Defined in: [sys/mod.ts:623](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L623)
140755
+ Defined in: [sys/mod.ts:633](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L633)
140596
140756
 
140597
140757
  通过 where 条件获取模型
140598
140758
 
@@ -140652,6 +140812,10 @@ Defined in: [sys/mod.ts:623](https://github.com/maiyunnet/kebab/blob/master/sys/
140652
140812
 
140653
140813
  `string`
140654
140814
 
140815
+ ###### read?
140816
+
140817
+ `boolean`
140818
+
140655
140819
  #### Returns
140656
140820
 
140657
140821
  `T`
@@ -140667,7 +140831,7 @@ sys/mod/classes/Rows.md
140667
140831
 
140668
140832
  # Class: Rows\<T\>
140669
140833
 
140670
- Defined in: [sys/mod.ts:49](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L49)
140834
+ Defined in: [sys/mod.ts:51](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L51)
140671
140835
 
140672
140836
  条数列表
140673
140837
 
@@ -140687,7 +140851,7 @@ Defined in: [sys/mod.ts:49](https://github.com/maiyunnet/kebab/blob/master/sys/m
140687
140851
 
140688
140852
  > **new Rows**\<`T`\>(`initialItems?`): `Rows`\<`T`\>
140689
140853
 
140690
- Defined in: [sys/mod.ts:53](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L53)
140854
+ Defined in: [sys/mod.ts:55](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L55)
140691
140855
 
140692
140856
  #### Parameters
140693
140857
 
@@ -140707,7 +140871,7 @@ Defined in: [sys/mod.ts:53](https://github.com/maiyunnet/kebab/blob/master/sys/m
140707
140871
 
140708
140872
  > **get** **length**(): `number`
140709
140873
 
140710
- Defined in: [sys/mod.ts:58](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L58)
140874
+ Defined in: [sys/mod.ts:60](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L60)
140711
140875
 
140712
140876
  总行数
140713
140877
 
@@ -140725,7 +140889,7 @@ Defined in: [sys/mod.ts:58](https://github.com/maiyunnet/kebab/blob/master/sys/m
140725
140889
 
140726
140890
  > **\[iterator\]**(): `IterableIterator`\<`T`\>
140727
140891
 
140728
- Defined in: [sys/mod.ts:90](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L90)
140892
+ Defined in: [sys/mod.ts:92](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L92)
140729
140893
 
140730
140894
  for of
140731
140895
 
@@ -140743,7 +140907,7 @@ for of
140743
140907
 
140744
140908
  > **filter**(`predicate`): `Rows`\<`T`\>
140745
140909
 
140746
- Defined in: [sys/mod.ts:76](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L76)
140910
+ Defined in: [sys/mod.ts:78](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L78)
140747
140911
 
140748
140912
  根据规则筛掉项,predicate 返回 true 代表保留
140749
140913
 
@@ -140763,7 +140927,7 @@ Defined in: [sys/mod.ts:76](https://github.com/maiyunnet/kebab/blob/master/sys/m
140763
140927
 
140764
140928
  > **item**(`index`): `T`
140765
140929
 
140766
- Defined in: [sys/mod.ts:63](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L63)
140930
+ Defined in: [sys/mod.ts:65](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L65)
140767
140931
 
140768
140932
  通过索引获取一个对象
140769
140933
 
@@ -140787,7 +140951,7 @@ Defined in: [sys/mod.ts:63](https://github.com/maiyunnet/kebab/blob/master/sys/m
140787
140951
 
140788
140952
  > **map**\<`TU`\>(`callbackfn`): `TU`[]
140789
140953
 
140790
- Defined in: [sys/mod.ts:81](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L81)
140954
+ Defined in: [sys/mod.ts:83](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L83)
140791
140955
 
140792
140956
  重塑对象内容为数组
140793
140957
 
@@ -140815,7 +140979,7 @@ Defined in: [sys/mod.ts:81](https://github.com/maiyunnet/kebab/blob/master/sys/m
140815
140979
 
140816
140980
  > **toArray**(): [`TModRow`](../type-aliases/TModRow.md)[]
140817
140981
 
140818
- Defined in: [sys/mod.ts:68](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L68)
140982
+ Defined in: [sys/mod.ts:70](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L70)
140819
140983
 
140820
140984
  将模型转换为普通对象数组
140821
140985
 
@@ -140831,7 +140995,7 @@ Defined in: [sys/mod.ts:68](https://github.com/maiyunnet/kebab/blob/master/sys/m
140831
140995
 
140832
140996
  > **toArray**\<`TRow`\>(): `TRow`[]
140833
140997
 
140834
- Defined in: [sys/mod.ts:70](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L70)
140998
+ Defined in: [sys/mod.ts:72](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L72)
140835
140999
 
140836
141000
  将模型转换为指定行类型的普通对象数组
140837
141001
 
@@ -140888,7 +141052,7 @@ sys/mod/interfaces/ICursorPage.md
140888
141052
 
140889
141053
  # Interface: ICursorPage\<T\>
140890
141054
 
140891
- Defined in: [sys/mod.ts:41](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L41)
141055
+ Defined in: [sys/mod.ts:43](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L43)
140892
141056
 
140893
141057
  一批游标查询结果,hasMore 表示扫描方向上还有记录
140894
141058
 
@@ -140904,7 +141068,7 @@ Defined in: [sys/mod.ts:41](https://github.com/maiyunnet/kebab/blob/master/sys/m
140904
141068
 
140905
141069
  > **hasMore**: `boolean`
140906
141070
 
140907
- Defined in: [sys/mod.ts:43](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L43)
141071
+ Defined in: [sys/mod.ts:45](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L45)
140908
141072
 
140909
141073
  ***
140910
141074
 
@@ -140912,7 +141076,7 @@ Defined in: [sys/mod.ts:43](https://github.com/maiyunnet/kebab/blob/master/sys/m
140912
141076
 
140913
141077
  > **list**: `T`[]
140914
141078
 
140915
- Defined in: [sys/mod.ts:42](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L42)
141079
+ Defined in: [sys/mod.ts:44](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L44)
140916
141080
 
140917
141081
  ***
140918
141082
 
@@ -140920,7 +141084,7 @@ Defined in: [sys/mod.ts:42](https://github.com/maiyunnet/kebab/blob/master/sys/m
140920
141084
 
140921
141085
  > **next**: [`TCursorValue`](../../../lib/sql/type-aliases/TCursorValue.md)[] \| `null`
140922
141086
 
140923
- Defined in: [sys/mod.ts:44](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L44)
141087
+ Defined in: [sys/mod.ts:46](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L46)
140924
141088
 
140925
141089
  ***
140926
141090
 
@@ -140928,7 +141092,7 @@ Defined in: [sys/mod.ts:44](https://github.com/maiyunnet/kebab/blob/master/sys/m
140928
141092
 
140929
141093
  > **previous**: [`TCursorValue`](../../../lib/sql/type-aliases/TCursorValue.md)[] \| `null`
140930
141094
 
140931
- Defined in: [sys/mod.ts:45](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L45)
141095
+ Defined in: [sys/mod.ts:47](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L47)
140932
141096
 
140933
141097
  sys/mod/interfaces/IModOneOptions.md
140934
141098
  ---
@@ -141007,6 +141171,16 @@ MySQL 表前缀或 PostgreSQL Schema 名
141007
141171
 
141008
141172
  ***
141009
141173
 
141174
+ ### read?
141175
+
141176
+ > `optional` **read?**: `boolean`
141177
+
141178
+ Defined in: [sys/mod.ts:39](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L39)
141179
+
141180
+ 是否优先使用只读从库,默认 false(走主库);加锁或事务内仍走主库
141181
+
141182
+ ***
141183
+
141010
141184
  ### select?
141011
141185
 
141012
141186
  > `optional` **select?**: `string` \| `string`[]
@@ -141026,7 +141200,7 @@ sys/mod/interfaces/IModUnionItem.md
141026
141200
 
141027
141201
  # Interface: IModUnionItem
141028
141202
 
141029
- Defined in: [sys/mod.ts:2147](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2147)
141203
+ Defined in: [sys/mod.ts:2175](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2175)
141030
141204
 
141031
141205
  ## Properties
141032
141206
 
@@ -141034,7 +141208,7 @@ Defined in: [sys/mod.ts:2147](https://github.com/maiyunnet/kebab/blob/master/sys
141034
141208
 
141035
141209
  > **field**: `string`
141036
141210
 
141037
- Defined in: [sys/mod.ts:2148](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2148)
141211
+ Defined in: [sys/mod.ts:2176](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2176)
141038
141212
 
141039
141213
  ***
141040
141214
 
@@ -141042,7 +141216,7 @@ Defined in: [sys/mod.ts:2148](https://github.com/maiyunnet/kebab/blob/master/sys
141042
141216
 
141043
141217
  > `optional` **where?**: `any`
141044
141218
 
141045
- Defined in: [sys/mod.ts:2149](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2149)
141219
+ Defined in: [sys/mod.ts:2177](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2177)
141046
141220
 
141047
141221
  sys/mod/interfaces/IRows.md
141048
141222
  ---
@@ -141055,7 +141229,7 @@ sys/mod/interfaces/IRows.md
141055
141229
 
141056
141230
  # Interface: IRows\<T\>
141057
141231
 
141058
- Defined in: [sys/mod.ts:2141](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2141)
141232
+ Defined in: [sys/mod.ts:2169](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2169)
141059
141233
 
141060
141234
  模型记录集合接口
141061
141235
 
@@ -141075,7 +141249,7 @@ Defined in: [sys/mod.ts:2141](https://github.com/maiyunnet/kebab/blob/master/sys
141075
141249
 
141076
141250
  > `readonly` **length**: `number`
141077
141251
 
141078
- Defined in: [sys/mod.ts:2142](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2142)
141252
+ Defined in: [sys/mod.ts:2170](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2170)
141079
141253
 
141080
141254
  ## Methods
141081
141255
 
@@ -141083,7 +141257,7 @@ Defined in: [sys/mod.ts:2142](https://github.com/maiyunnet/kebab/blob/master/sys
141083
141257
 
141084
141258
  > **item**(`index`): `T`
141085
141259
 
141086
- Defined in: [sys/mod.ts:2143](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2143)
141260
+ Defined in: [sys/mod.ts:2171](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2171)
141087
141261
 
141088
141262
  #### Parameters
141089
141263
 
@@ -141101,7 +141275,7 @@ Defined in: [sys/mod.ts:2143](https://github.com/maiyunnet/kebab/blob/master/sys
141101
141275
 
141102
141276
  > **toArray**(): `Record`\<`string`, `any`\>[]
141103
141277
 
141104
- Defined in: [sys/mod.ts:2144](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2144)
141278
+ Defined in: [sys/mod.ts:2172](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L2172)
141105
141279
 
141106
141280
  #### Returns
141107
141281