-
Notifications
You must be signed in to change notification settings - Fork 1
/
contrib.html
872 lines (510 loc) · 36 KB
/
contrib.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="icon" href="_static/tortoise.png">
<title>Contrib - Tortoise ORM v0.22.2 Documentation</title>
<style>:root{--md-text-font:"Roboto";--md-code-font:"Roboto Mono"}</style>
<link rel="stylesheet" type="text/css" href="_static/sphinx_immaterial_theme.b454d0e296e565629.min.css?v=3a14c3c3" />
<link rel="stylesheet" type="text/css" href="_static/copybutton.css?v=76b2166b" />
<script>__md_scope=new URL(".",location),__md_hash=e=>[...e].reduce((e,_)=>(e<<5)-e+_.charCodeAt(0),0),__md_get=(e,_=localStorage,t=__md_scope)=>JSON.parse(_.getItem(t.pathname+"."+e)),__md_set=(e,_,t=localStorage,a=__md_scope)=>{try{t.setItem(a.pathname+"."+e,JSON.stringify(_))}catch(e){}}</script>
<script id="__analytics">function __md_analytics(){function n(){dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[],n("js",new Date),n("config","G-MJ7RHW2FRB"),document.addEventListener("DOMContentLoaded",function(){document.forms.search&&document.forms.search.query.addEventListener("blur",function(){this.value&&n("event","search",{search_term:this.value})}),document$.subscribe(function(){var a=document.forms.feedback;if(void 0!==a)for(var e of a.querySelectorAll("[type=submit]"))e.addEventListener("click",function(e){e.preventDefault();var t=document.location.pathname,e=this.getAttribute("data-md-value");n("event","feedback",{page:t,data:e}),a.firstElementChild.disabled=!0;e=a.querySelector(".md-feedback__note [data-md-value='"+e+"']");e&&(e.hidden=!1)}),a.hidden=!1}),location$.subscribe(function(e){n("config","G-MJ7RHW2FRB",{page_path:e.pathname})})});var e=document.createElement("script");e.async=!0,e.src="https://www.googletagmanager.com/gtag/js?id=G-MJ7RHW2FRB",document.getElementById("__analytics").insertAdjacentElement("afterEnd",e)}</script>
<script>"undefined"!=typeof __md_analytics&&__md_analytics()</script>
</head>
<body dir="ltr" data-md-color-scheme="default" data-md-color-primary="green" data-md-color-accent="blue">
<script>var palette=__md_get("__palette");if(palette&&"object"==typeof palette.color)for(var key of Object.keys(palette.color))document.body.setAttribute("data-md-color-"+key,palette.color[key])</script>
<input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
<input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
<label class="md-overlay" for="__drawer"></label>
<div data-md-component="skip">
</div>
<div data-md-component="announce">
</div>
<div data-md-component="outdated" hidden>
</div>
<header class="md-header" data-md-component="header">
<nav class="md-header__inner md-grid" aria-label="Header">
<a href="toc.html" title="Tortoise ORM v0.22.2 Documentation" class="md-header__button md-logo" aria-label="Tortoise ORM v0.22.2 Documentation" data-md-component="logo">
<img src="_static/tortoise.png" alt="logo">
</a>
<label class="md-header__button md-icon" for="__drawer">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2Z"/></svg>
</label>
<div class="md-header__title" data-md-component="header-title">
<div class="md-header__ellipsis">
<div class="md-header__topic">
<span class="md-ellipsis">
Tortoise ORM 0.22.2 Documentation
</span>
</div>
<div class="md-header__topic" data-md-component="header-topic">
<span class="md-ellipsis">
Contrib
</span>
</div>
</div>
</div>
<form class="md-header__option" data-md-component="palette">
<input class="md-option" data-md-color-media="(prefers-color-scheme: light)" data-md-color-scheme="default" data-md-color-primary="green" data-md-color-accent="blue" aria-label="Switch to dark mode" type="radio" name="__palette" id="__palette_1">
<label class="md-header__button md-icon" title="Switch to dark mode" for="__palette_2" hidden>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a7 7 0 0 1 7 7c0 2.38-1.19 4.47-3 5.74V17a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1v-2.26C6.19 13.47 5 11.38 5 9a7 7 0 0 1 7-7M9 21v-1h6v1a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1m3-17a5 5 0 0 0-5 5c0 2.05 1.23 3.81 3 4.58V16h4v-2.42c1.77-.77 3-2.53 3-4.58a5 5 0 0 0-5-5Z"/></svg>
</label>
<input class="md-option" data-md-color-media="(prefers-color-scheme: dark)" data-md-color-scheme="slate" data-md-color-primary="deep-orange" data-md-color-accent="lime" aria-label="Switch to light mode" type="radio" name="__palette" id="__palette_2">
<label class="md-header__button md-icon" title="Switch to light mode" for="__palette_1" hidden>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a7 7 0 0 0-7 7c0 2.38 1.19 4.47 3 5.74V17a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-2.26c1.81-1.27 3-3.36 3-5.74a7 7 0 0 0-7-7M9 21a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1v-1H9v1Z"/></svg>
</label>
</form>
<label class="md-header__button md-icon" for="__search">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z"/></svg>
</label>
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
<input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" required>
<label class="md-search__icon md-icon" for="__search">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z"/></svg>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12Z"/></svg>
</label>
<nav class="md-search__options" aria-label="Search">
<a href="javascript:void(0)" class="md-search__icon md-icon" title="Share" aria-label="Share" data-clipboard data-clipboard-text="" data-md-component="search-share" tabindex="-1">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7 0-.24-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9a3 3 0 0 0-3 3 3 3 0 0 0 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.15c-.05.21-.08.43-.08.66 0 1.61 1.31 2.91 2.92 2.91 1.61 0 2.92-1.3 2.92-2.91A2.92 2.92 0 0 0 18 16.08Z"/></svg>
</a>
<button type="reset" class="md-search__icon md-icon" title="Clear" aria-label="Clear" tabindex="-1">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41Z"/></svg>
</button>
</nav>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
<div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
</div>
</div>
</div>
</div>
<div class="md-header__source">
<a href="https://github.com/tortoise/tortoise-orm" title="Go to repository" class="md-source" data-md-component="source">
<div class="md-source__icon md-icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><!--! Font Awesome Free 6.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2022 Fonticons, Inc.--><path d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"/></svg>
</div>
<div class="md-source__repository">
tortoise-orm
</div>
</a>
</div>
</nav>
</header>
<div class="md-container" data-md-component="container">
<nav class="md-tabs" aria-label="Tabs" data-md-component="tabs">
<div class="md-tabs__inner md-grid">
<ul class="md-tabs__list">
<li class="md-tabs__item">
<a href="index.html" class="md-tabs__link">
<span class="md-ellipsis">Tortoise ORM</span>
</a>
</li>
<li class="md-tabs__item">
<a href="getting_started.html" class="md-tabs__link">
<span class="md-ellipsis">Getting started</span>
</a>
</li>
<li class="md-tabs__item">
<a href="reference.html" class="md-tabs__link">
<span class="md-ellipsis">Reference</span>
</a>
</li>
<li class="md-tabs__item">
<a href="examples.html" class="md-tabs__link">
<span class="md-ellipsis">Examples</span>
</a>
</li>
<li class="md-tabs__item">
<a href="#" class="md-tabs__link md-tabs__link--active">
<span class="md-ellipsis">Contrib</span>
</a>
</li>
<li class="md-tabs__item">
<a href="CHANGELOG.html" class="md-tabs__link">
<span class="md-ellipsis">Changelog</span>
</a>
</li>
<li class="md-tabs__item">
<a href="roadmap.html" class="md-tabs__link">
<span class="md-ellipsis">Roadmap</span>
</a>
</li>
<li class="md-tabs__item">
<a href="CONTRIBUTING.html" class="md-tabs__link">
<span class="md-ellipsis">Contribution Guide</span>
</a>
</li>
<li class="md-tabs__item">
<a href="CONTRIBUTORS.html" class="md-tabs__link">
<span class="md-ellipsis">Thanks</span>
</a>
</li>
</ul>
</div>
</nav>
<main class="md-main" data-md-component="main">
<div class="md-main__inner md-grid">
<div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
<nav class="md-nav md-nav--primary md-nav--lifted md-nav--integrated" aria-label="Navigation" data-md-level="0">
<label class="md-nav__title" for="__drawer">
<a href="toc.html" title="Tortoise ORM v0.22.2 Documentation" class="md-nav__button md-logo" aria-label="Tortoise ORM v0.22.2 Documentation" data-md-component="logo">
<img src="_static/tortoise.png" alt="logo">
</a>
Tortoise ORM v0.22.2 Documentation
</label>
<div class="md-nav__source">
<a href="https://github.com/tortoise/tortoise-orm" title="Go to repository" class="md-source" data-md-component="source">
<div class="md-source__icon md-icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><!--! Font Awesome Free 6.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2022 Fonticons, Inc.--><path d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"/></svg>
</div>
<div class="md-source__repository">
tortoise-orm
</div>
</a>
</div>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="index.html" class="md-nav__link">
<span class="md-ellipsis">Tortoise ORM</span>
</a>
</li>
<li class="md-nav__item">
<a href="getting_started.html" class="md-nav__link">
<span class="md-ellipsis">Getting started</span>
</a>
</li>
<li class="md-nav__item">
<a href="reference.html" class="md-nav__link">
<span class="md-ellipsis">Reference</span>
</a>
</li>
<li class="md-nav__item">
<a href="examples.html" class="md-nav__link">
<span class="md-ellipsis">Examples</span>
</a>
</li>
<li class="md-nav__item md-nav__item--active">
<input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
<label class="md-nav__link md-nav__link--active" for="__toc">
<span class="md-ellipsis">Contrib</span>
<span class="md-nav__icon md-icon"></span>
</label>
<a href="#" class="md-nav__link md-nav__link--active">
<span class="md-ellipsis">Contrib</span>
</a>
<nav class="md-nav md-nav--secondary">
<label class="md-nav__title" for="__toc">
<span class="md-nav__icon md-icon"></span>
Table of contents
</label>
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="contrib/linters.html" class="md-nav__link">
<span class="md-ellipsis">Linters</span>
</a>
</li>
<li class="md-nav__item">
<a href="contrib/pydantic.html" class="md-nav__link">
<span class="md-ellipsis">Pydantic serialisation</span>
</a>
</li>
<li class="md-nav__item">
<a href="contrib/unittest.html" class="md-nav__link">
<span class="md-ellipsis">Unit<wbr>Test support</span>
</a>
</li>
<li class="md-nav__item">
<a href="contrib/fastapi.html" class="md-nav__link">
<span class="md-ellipsis">Tortoise-<wbr>ORM Fast<wbr>API integration</span>
</a>
</li>
<li class="md-nav__item">
<a href="contrib/quart.html" class="md-nav__link">
<span class="md-ellipsis">Tortoise-<wbr>ORM Quart integration</span>
</a>
</li>
<li class="md-nav__item">
<a href="contrib/sanic.html" class="md-nav__link">
<span class="md-ellipsis">Tortoise-<wbr>ORM Sanic integration</span>
</a>
</li>
<li class="md-nav__item">
<a href="contrib/starlette.html" class="md-nav__link">
<span class="md-ellipsis">Tortoise-<wbr>ORM Starlette integration</span>
</a>
</li>
<li class="md-nav__item">
<a href="contrib/aiohttp.html" class="md-nav__link">
<span class="md-ellipsis">Tortoise-<wbr>ORM aiohttp integration</span>
</a>
</li>
<li class="md-nav__item">
<a href="contrib/mysql.html" class="md-nav__link">
<span class="md-ellipsis">My<wbr>SQL</span>
</a>
</li>
<li class="md-nav__item">
<a href="contrib/postgres.html" class="md-nav__link">
<span class="md-ellipsis">Postgres</span>
</a>
</li>
<li class="md-nav__item">
<a href="contrib/blacksheep.html" class="md-nav__link">
<span class="md-ellipsis">Tortoise-<wbr>ORM Black<wbr>Sheep integration</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="CHANGELOG.html" class="md-nav__link">
<span class="md-ellipsis">Changelog</span>
</a>
</li>
<li class="md-nav__item">
<a href="roadmap.html" class="md-nav__link">
<span class="md-ellipsis">Roadmap</span>
</a>
</li>
<li class="md-nav__item">
<a href="CONTRIBUTING.html" class="md-nav__link">
<span class="md-ellipsis">Contribution Guide</span>
</a>
</li>
<li class="md-nav__item">
<a href="CONTRIBUTORS.html" class="md-nav__link">
<span class="md-ellipsis">Thanks</span>
</a>
</li>
</ul>
</nav>
</div>
</div>
</div>
<div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset" role="main">
<h1 id="contrib">Contrib<a class="headerlink" href="#contrib" title="Permalink to this heading">¶</a></h1>
<div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="contrib/linters.html">Linters</a><ul>
<li class="toctree-l2"><a class="reference internal" href="contrib/linters.html#pylint-plugin">PyLint plugin</a><ul>
<li class="toctree-l3"><a class="reference internal" href="contrib/linters.html#usage">Usage</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="contrib/pydantic.html">Pydantic serialisation</a><ul>
<li class="toctree-l2"><a class="reference internal" href="contrib/pydantic.html#tutorial">Tutorial</a><ul>
<li class="toctree-l3"><a class="reference internal" href="contrib/pydantic.html#basic-usage">1: Basic usage</a></li>
<li class="toctree-l3"><a class="reference internal" href="contrib/pydantic.html#querysets-lists">2: Querysets & Lists</a></li>
<li class="toctree-l3"><a class="reference internal" href="contrib/pydantic.html#relations-early-init">3: Relations & Early-init</a></li>
<li class="toctree-l3"><a class="reference internal" href="contrib/pydantic.html#pydanticmeta-callables">4: PydanticMeta & Callables</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="contrib/pydantic.html#module-tortoise.contrib.pydantic.creator">Creators</a><ul>
<li class="toctree-l3"><a class="reference internal" href="contrib/pydantic.html#tortoise.contrib.pydantic.creator.FieldMap">tortoise.contrib.pydantic.creator.FieldMap</a></li>
<li class="toctree-l3"><a class="reference internal" href="contrib/pydantic.html#tortoise.contrib.pydantic.creator.pydantic_model_creator">tortoise.contrib.pydantic.creator.pydantic_model_creator</a></li>
<li class="toctree-l3"><a class="reference internal" href="contrib/pydantic.html#tortoise.contrib.pydantic.creator.pydantic_queryset_creator">tortoise.contrib.pydantic.creator.pydantic_queryset_creator</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="contrib/pydantic.html#pydanticmeta">PydanticMeta</a></li>
<li class="toctree-l2"><a class="reference internal" href="contrib/pydantic.html#module-tortoise.contrib.pydantic.base">Model classes</a><ul>
<li class="toctree-l3"><a class="reference internal" href="contrib/pydantic.html#tortoise.contrib.pydantic.base.PydanticListModel">tortoise.contrib.pydantic.base.PydanticListModel</a></li>
<li class="toctree-l3"><a class="reference internal" href="contrib/pydantic.html#tortoise.contrib.pydantic.base.PydanticModel">tortoise.contrib.pydantic.base.PydanticModel</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="contrib/unittest.html">UnitTest support</a><ul>
<li class="toctree-l2"><a class="reference internal" href="contrib/unittest.html#usage">Usage</a></li>
<li class="toctree-l2"><a class="reference internal" href="contrib/unittest.html#test-runners">Test Runners</a><ul>
<li class="toctree-l3"><a class="reference internal" href="contrib/unittest.html#green">Green</a></li>
<li class="toctree-l3"><a class="reference internal" href="contrib/unittest.html#py-test">Py.test</a></li>
<li class="toctree-l3"><a class="reference internal" href="contrib/unittest.html#nose2">Nose2</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="contrib/unittest.html#module-tortoise.contrib.test">Reference</a><ul>
<li class="toctree-l3"><a class="reference internal" href="contrib/unittest.html#tortoise.contrib.test.IsolatedTestCase">tortoise.contrib.test.IsolatedTestCase</a></li>
<li class="toctree-l3"><a class="reference internal" href="contrib/unittest.html#tortoise.contrib.test.SimpleTestCase">tortoise.contrib.test.SimpleTestCase</a></li>
<li class="toctree-l3"><a class="reference internal" href="contrib/unittest.html#tortoise.contrib.test.SkipTest">tortoise.contrib.test.SkipTest</a></li>
<li class="toctree-l3"><a class="reference internal" href="contrib/unittest.html#tortoise.contrib.test.TestCase">tortoise.contrib.test.TestCase</a></li>
<li class="toctree-l3"><a class="reference internal" href="contrib/unittest.html#tortoise.contrib.test.TruncationTestCase">tortoise.contrib.test.TruncationTestCase</a></li>
<li class="toctree-l3"><a class="reference internal" href="contrib/unittest.html#tortoise.contrib.test.env_initializer">tortoise.contrib.test.env_initializer</a></li>
<li class="toctree-l3"><a class="reference internal" href="contrib/unittest.html#tortoise.contrib.test.expectedFailure">tortoise.contrib.test.expectedFailure</a></li>
<li class="toctree-l3"><a class="reference internal" href="contrib/unittest.html#tortoise.contrib.test.finalizer">tortoise.contrib.test.finalizer</a></li>
<li class="toctree-l3"><a class="reference internal" href="contrib/unittest.html#tortoise.contrib.test.getDBConfig">tortoise.contrib.test.getDBConfig</a></li>
<li class="toctree-l3"><a class="reference internal" href="contrib/unittest.html#tortoise.contrib.test.init_memory_sqlite">tortoise.contrib.test.init_memory_sqlite</a></li>
<li class="toctree-l3"><a class="reference internal" href="contrib/unittest.html#tortoise.contrib.test.initializer">tortoise.contrib.test.initializer</a></li>
<li class="toctree-l3"><a class="reference internal" href="contrib/unittest.html#tortoise.contrib.test.requireCapability">tortoise.contrib.test.requireCapability</a></li>
<li class="toctree-l3"><a class="reference internal" href="contrib/unittest.html#tortoise.contrib.test.skip">tortoise.contrib.test.skip</a></li>
<li class="toctree-l3"><a class="reference internal" href="contrib/unittest.html#tortoise.contrib.test.skipIf">tortoise.contrib.test.skipIf</a></li>
<li class="toctree-l3"><a class="reference internal" href="contrib/unittest.html#tortoise.contrib.test.skipUnless">tortoise.contrib.test.skipUnless</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="contrib/fastapi.html">Tortoise-ORM FastAPI integration</a><ul>
<li class="toctree-l2"><a class="reference internal" href="contrib/fastapi.html#module-tortoise.contrib.fastapi">Reference</a><ul>
<li class="toctree-l3"><a class="reference internal" href="contrib/fastapi.html#tortoise.contrib.fastapi.HTTPNotFoundError">tortoise.contrib.fastapi.HTTPNotFoundError</a></li>
<li class="toctree-l3"><a class="reference internal" href="contrib/fastapi.html#tortoise.contrib.fastapi.RegisterTortoise">tortoise.contrib.fastapi.RegisterTortoise</a></li>
<li class="toctree-l3"><a class="reference internal" href="contrib/fastapi.html#tortoise.contrib.fastapi.register_tortoise">tortoise.contrib.fastapi.register_tortoise</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="contrib/quart.html">Tortoise-ORM Quart integration</a><ul>
<li class="toctree-l2"><a class="reference internal" href="contrib/quart.html#usage">Usage</a></li>
<li class="toctree-l2"><a class="reference internal" href="contrib/quart.html#module-tortoise.contrib.quart">Reference</a><ul>
<li class="toctree-l3"><a class="reference internal" href="contrib/quart.html#tortoise.contrib.quart.register_tortoise">tortoise.contrib.quart.register_tortoise</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="contrib/sanic.html">Tortoise-ORM Sanic integration</a><ul>
<li class="toctree-l2"><a class="reference internal" href="contrib/sanic.html#module-tortoise.contrib.sanic">Reference</a><ul>
<li class="toctree-l3"><a class="reference internal" href="contrib/sanic.html#tortoise.contrib.sanic.register_tortoise">tortoise.contrib.sanic.register_tortoise</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="contrib/starlette.html">Tortoise-ORM Starlette integration</a><ul>
<li class="toctree-l2"><a class="reference internal" href="contrib/starlette.html#module-tortoise.contrib.starlette">Reference</a><ul>
<li class="toctree-l3"><a class="reference internal" href="contrib/starlette.html#tortoise.contrib.starlette.register_tortoise">tortoise.contrib.starlette.register_tortoise</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="contrib/aiohttp.html">Tortoise-ORM aiohttp integration</a><ul>
<li class="toctree-l2"><a class="reference internal" href="contrib/aiohttp.html#module-tortoise.contrib.aiohttp">Reference</a><ul>
<li class="toctree-l3"><a class="reference internal" href="contrib/aiohttp.html#tortoise.contrib.aiohttp.register_tortoise">tortoise.contrib.aiohttp.register_tortoise</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="contrib/mysql.html">MySQL</a><ul>
<li class="toctree-l2"><a class="reference internal" href="contrib/mysql.html#indexes">Indexes</a><ul>
<li class="toctree-l3"><a class="reference internal" href="contrib/mysql.html#tortoise.contrib.mysql.indexes.FullTextIndex">tortoise.contrib.mysql.indexes.FullTextIndex</a></li>
<li class="toctree-l3"><a class="reference internal" href="contrib/mysql.html#tortoise.contrib.mysql.indexes.SpatialIndex">tortoise.contrib.mysql.indexes.SpatialIndex</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="contrib/mysql.html#fields">Fields</a><ul>
<li class="toctree-l3"><a class="reference internal" href="contrib/mysql.html#tortoise.contrib.mysql.fields.GeometryField">tortoise.contrib.mysql.fields.GeometryField</a></li>
<li class="toctree-l3"><a class="reference internal" href="contrib/mysql.html#tortoise.contrib.mysql.fields.UUIDField">tortoise.contrib.mysql.fields.UUIDField</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="contrib/mysql.html#search">Search</a><ul>
<li class="toctree-l3"><a class="reference internal" href="contrib/mysql.html#tortoise.contrib.mysql.search.SearchCriterion">tortoise.contrib.mysql.search.SearchCriterion</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="contrib/postgres.html">Postgres</a><ul>
<li class="toctree-l2"><a class="reference internal" href="contrib/postgres.html#indexes">Indexes</a><ul>
<li class="toctree-l3"><a class="reference internal" href="contrib/postgres.html#tortoise.contrib.postgres.indexes.BloomIndex">tortoise.contrib.postgres.indexes.BloomIndex</a></li>
<li class="toctree-l3"><a class="reference internal" href="contrib/postgres.html#tortoise.contrib.postgres.indexes.BrinIndex">tortoise.contrib.postgres.indexes.BrinIndex</a></li>
<li class="toctree-l3"><a class="reference internal" href="contrib/postgres.html#tortoise.contrib.postgres.indexes.GinIndex">tortoise.contrib.postgres.indexes.GinIndex</a></li>
<li class="toctree-l3"><a class="reference internal" href="contrib/postgres.html#tortoise.contrib.postgres.indexes.GistIndex">tortoise.contrib.postgres.indexes.GistIndex</a></li>
<li class="toctree-l3"><a class="reference internal" href="contrib/postgres.html#tortoise.contrib.postgres.indexes.HashIndex">tortoise.contrib.postgres.indexes.HashIndex</a></li>
<li class="toctree-l3"><a class="reference internal" href="contrib/postgres.html#tortoise.contrib.postgres.indexes.SpGistIndex">tortoise.contrib.postgres.indexes.SpGistIndex</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="contrib/postgres.html#fields">Fields</a><ul>
<li class="toctree-l3"><a class="reference internal" href="contrib/postgres.html#tortoise.contrib.postgres.fields.ArrayField">tortoise.contrib.postgres.fields.ArrayField</a></li>
<li class="toctree-l3"><a class="reference internal" href="contrib/postgres.html#tortoise.contrib.postgres.fields.TSVectorField">tortoise.contrib.postgres.fields.TSVectorField</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="contrib/postgres.html#functions">Functions</a><ul>
<li class="toctree-l3"><a class="reference internal" href="contrib/postgres.html#tortoise.contrib.postgres.functions.ToTsVector">tortoise.contrib.postgres.functions.ToTsVector</a></li>
<li class="toctree-l3"><a class="reference internal" href="contrib/postgres.html#tortoise.contrib.postgres.functions.ToTsQuery">tortoise.contrib.postgres.functions.ToTsQuery</a></li>
<li class="toctree-l3"><a class="reference internal" href="contrib/postgres.html#tortoise.contrib.postgres.functions.PlainToTsQuery">tortoise.contrib.postgres.functions.PlainToTsQuery</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="contrib/postgres.html#search">Search</a><ul>
<li class="toctree-l3"><a class="reference internal" href="contrib/postgres.html#tortoise.contrib.postgres.search.SearchCriterion">tortoise.contrib.postgres.search.SearchCriterion</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="contrib/blacksheep.html">Tortoise-ORM BlackSheep integration</a><ul>
<li class="toctree-l2"><a class="reference internal" href="contrib/blacksheep.html#module-tortoise.contrib.blacksheep">Reference</a><ul>
<li class="toctree-l3"><a class="reference internal" href="contrib/blacksheep.html#tortoise.contrib.blacksheep.register_tortoise">tortoise.contrib.blacksheep.register_tortoise</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</article>
</div>
</div>
<a href="#" class="md-top md-icon" data-md-component="top" hidden>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 20h-2V8l-5.5 5.5-1.42-1.42L12 4.16l7.92 7.92-1.42 1.42L13 8v12Z"/></svg>
Back to top
</a>
</main>
<footer class="md-footer">
<nav class="md-footer__inner md-grid" aria-label="Footer" >
<a href="examples/blacksheep.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: BlackSheep Examples" rel="prev">
<div class="md-footer__button md-icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12Z"/></svg>
</div>
<div class="md-footer__title">
<div class="md-ellipsis">
<span class="md-footer__direction">
Previous
</span>
BlackSheep Examples
</div>
</div>
</a>
<a href="contrib/linters.html" class="md-footer__link md-footer__link--next" aria-label="Next: Linters" rel="next">
<div class="md-footer__title">
<div class="md-ellipsis">
<span class="md-footer__direction">
Next
</span>
Linters
</div>
</div>
<div class="md-footer__button md-icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4Z"/></svg>
</div>
</a>
</nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-copyright">
<div class="md-footer-copyright__highlight">
© Copyright 2018 - 2024, Andrey Bondar & Nickolas Grigoriadis & long2ice.
</div>
Created using
<a href="https://www.sphinx-doc.org/" target="_blank" rel="noopener">Sphinx</a>
7.1.2.
and
<a href="https://github.com/jbms/sphinx-immaterial/" target="_blank" rel="noopener">Sphinx-Immaterial</a>
</div>
</div>
</div>
</footer>
</div>
<div class="md-dialog" data-md-component="dialog">
<div class="md-dialog__inner md-typeset"></div>
</div>
<script id="__config" type="application/json">{"base": ".", "features": ["navigation.expand", "navigation.tabs", "toc.integrate", "navigation.sections", "navigation.instant", "header.autohide", "navigation.top", "navigation.tracking", "search.highlight", "search.share"], "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "version": {"provider": "mike", "staticVersions": [{"aliases": [], "title": "latest", "version": "https://tortoise.github.io"}], "versionPath": null}}</script>
<script src="_static/sphinx_immaterial_theme.f9d9eeeb247ace16c.min.js?v=8ec58cb5"></script>
<script src="_static/clipboard.min.js?v=a7894cd8"></script>
<script src="_static/copybutton.js?v=f281be69"></script>
</body>
</html>