Repository navigation
Expand file tree
/
Copy pathsqlite3.po
More file actions
2375 lines (1888 loc) · 186 KB
/
Copy pathsqlite3.po
File metadata and controls
2375 lines (1888 loc) · 186 KB
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
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001 Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
# Translators:
# Alireza Shabani (Revisto) <theRevisto@gmail.com>, 2025
# Danial Behzadi <dani.behzi@ubuntu.com>, 2025
# Rafael Fontenelle <rffontenelle@gmail.com>, 2025
# Sepehr Rasouli <sepehrrasouli06@gmail.com>, 2026
# arman mohebali <armanmohebali@outlook.com>, 2026
#
msgid ""
msgstr ""
"Project-Id-Version: Python 3.14\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-10-01 14:41+0330\n"
"PO-Revision-Date: 2026-09-13 17:33+0330\n"
"Last-Translator: Sepehr Rasouli <sepehrrasouli06@gmail.com>, 2026\n"
"Language-Team: Persian (https://github.com/python/python-docs-fa/)\n"
"Language: fa\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"X-Generator: Poedit 3.6\n"
msgid ":mod:`!sqlite3` --- DB-API 2.0 interface for SQLite databases"
msgstr ":mod:`!sqlite3` --- رابط DB-API 2.0 برای پایگاههای داده SQLite"
msgid "**Source code:** :source:`Lib/sqlite3/`"
msgstr "**کد منبع:** :source:`Lib/sqlite3/`"
msgid "SQLite is a C library that provides a lightweight disk-based database that doesn't require a separate server process and allows accessing the database using a nonstandard variant of the SQL query language. Some applications can use SQLite for internal data storage. It's also possible to prototype an application using SQLite and then port the code to a larger database such as PostgreSQL or Oracle."
msgstr "SQLite کتابخانهای به زبان C است که پایگاه دادهای سبک و مبتنی بر دیسک فراهم میکند که به فرایند سرور جداگانهای نیاز ندارد و امکان دسترسی به پایگاه داده را با استفاده از گونهای غیراستاندارد از زبان پرسوجوی SQL میدهد. برخی برنامهها میتوانند از SQLite برای ذخیرهسازی داخلی دادهها استفاده کنند. همچنین میتوان پیشنمونهای از یک برنامه را با استفاده از SQLite ساخت و سپس کد را به پایگاه دادهی بزرگتری مانند PostgreSQL یا Oracle منتقل کرد."
msgid "The :mod:`!sqlite3` module was written by Gerhard Häring. It provides an SQL interface compliant with the DB-API 2.0 specification described by :pep:`249`, and requires the third-party `SQLite <https://sqlite.org/>`_ library."
msgstr "ماژول :mod:`!sqlite3` توسط Gerhard Häring نوشته شده است. این ماژول یک رابط SQL سازگار با مشخصات DB-API 2.0 ارائه میکند که در :pep:`249` توصیف شده است، و به کتابخانهی شخص ثالث `SQLite <https://sqlite.org/>`_ نیاز دارد."
msgid "This is an :term:`optional module`. If it is missing from your copy of CPython, look for documentation from your distributor (that is, whoever provided Python to you). If you are the distributor, see :ref:`optional-module-requirements`."
msgstr "این یک :term:`ماژول اختیاری <optional module>` است. اگر در نسخه CPython شما وجود ندارد، برای مستندات به توزیعکننده خود مراجعه کنید (یعنی هر کسی که پایتون را در اختیار شما قرار داده است). اگر شما توزیعکننده هستید، :ref:`optional-module-requirements` را ببینید."
msgid "This document includes four main sections:"
msgstr "این سند شامل چهار بخش اصلی است:"
msgid ":ref:`sqlite3-tutorial` teaches how to use the :mod:`!sqlite3` module."
msgstr ":ref:`sqlite3-tutorial` چگونگی استفاده از ماژول :mod:`!sqlite3` را آموزش میدهد."
msgid ":ref:`sqlite3-reference` describes the classes and functions this module defines."
msgstr ":ref:`sqlite3-reference` کلاسها و توابعی را که این ماژول تعریف میکند، شرح میدهد."
msgid ":ref:`sqlite3-howtos` details how to handle specific tasks."
msgstr ":ref:`sqlite3-howtos` جزئیات چگونگی انجام وظایف خاص را شرح میدهد."
msgid ":ref:`sqlite3-explanation` provides in-depth background on transaction control."
msgstr ":ref:`sqlite3-explanation` پیشزمینهای عمیق دربارهی کنترل تراکنش ارائه میدهد."
msgid "https://www.sqlite.org"
msgstr "https://www.sqlite.org"
msgid "The SQLite web page; the documentation describes the syntax and the available data types for the supported SQL dialect."
msgstr "صفحهی وب SQLite؛ مستندات، سینتکس و انواع دادههای موجود برای گویش SQL پشتیبانیشده را توضیح میدهد."
msgid "https://www.w3schools.com/sql/"
msgstr "https://www.w3schools.com/sql/"
msgid "Tutorial, reference and examples for learning SQL syntax."
msgstr "آموزش، مرجع و مثالهایی برای یادگیری سینتکس SQL."
msgid ":pep:`249` - Database API Specification 2.0"
msgstr ":pep:`249` - مشخصات API پایگاه داده 2.0"
msgid "PEP written by Marc-André Lemburg."
msgstr "PEP نوشتهشده توسط Marc-André Lemburg."
msgid "Tutorial"
msgstr "آموزش"
msgid "In this tutorial, you will create a database of Monty Python movies using basic :mod:`!sqlite3` functionality. It assumes a fundamental understanding of database concepts, including `cursors`_ and `transactions`_."
msgstr "در این آموزش، شما پایگاه دادهای از فیلمهای مانتی پایتون را با استفاده از قابلیتهای پایه :mod:`!sqlite3` ایجاد خواهید کرد. این آموزش فرض میکند که شما درک بنیادی از مفاهیم پایگاه داده، از جمله `cursors`_ و `transactions`_ دارید."
msgid "First, we need to create a new database and open a database connection to allow :mod:`!sqlite3` to work with it. Call :func:`sqlite3.connect` to create a connection to the database :file:`tutorial.db` in the current working directory, implicitly creating it if it does not exist:"
msgstr "نخست، باید یک پایگاه داده جدید ایجاد کنیم و یک اتصال به پایگاه داده باز کنیم تا :mod:`!sqlite3` بتواند با آن کار کند. برای ایجاد اتصال به پایگاه دادهی :file:`tutorial.db` در پوشه کاری فعلی، :func:`sqlite3.connect` را فراخوانی کنید؛ اگر این پایگاه داده وجود نداشته باشد، بهطور ضمنی ایجاد میشود:"
msgid ""
"import sqlite3\n"
"con = sqlite3.connect(\"tutorial.db\")"
msgstr ""
"import sqlite3\n"
"con = sqlite3.connect(\"tutorial.db\")"
msgid "The returned :class:`Connection` object ``con`` represents the connection to the on-disk database."
msgstr "شیء :class:`Connection` بازگرداندهشده ``con``، نشاندهندهی اتصال به پایگاه دادهی روی دیسک است."
msgid "In order to execute SQL statements and fetch results from SQL queries, we will need to use a database cursor. Call :meth:`con.cursor() <Connection.cursor>` to create the :class:`Cursor`:"
msgstr "برای اجرای دستورات SQL و واکشی نتایج از پرسوجوهای SQL، باید از یک نشانگر پایگاه داده استفاده کنیم. برای ایجاد :class:`Cursor`، :meth:`con.cursor() <Connection.cursor>` را فراخوانی کنید:"
msgid "cur = con.cursor()"
msgstr "cur = con.cursor()"
msgid "Now that we've got a database connection and a cursor, we can create a database table ``movie`` with columns for title, release year, and review score. For simplicity, we can just use column names in the table declaration -- thanks to the `flexible typing`_ feature of SQLite, specifying the data types is optional. Execute the ``CREATE TABLE`` statement by calling :meth:`cur.execute(...) <Cursor.execute>`:"
msgstr "اکنون که یک اتصال به پایگاه داده و یک نشانگر داریم، میتوانیم یک جدول پایگاه داده به نام ``movie`` با ستونهایی برای عنوان، سال انتشار و امتیاز نقد ایجاد کنیم. برای سادگی، میتوانیم فقط از نام ستونها در تعریف جدول استفاده کنیم — بهلطف قابلیت `flexible typing`_ در SQLite، تعیین نوعهای داده اختیاری است. دستور ``CREATE TABLE`` را با فراخوانی :meth:`cur.execute(...) <Cursor.execute>` اجرا کنید:"
msgid "cur.execute(\"CREATE TABLE movie(title, year, score)\")"
msgstr "cur.execute(\"CREATE TABLE movie(title, year, score)\")"
msgid "We can verify that the new table has been created by querying the ``sqlite_master`` table built-in to SQLite, which should now contain an entry for the ``movie`` table definition (see `The Schema Table`_ for details). Execute that query by calling :meth:`cur.execute(...) <Cursor.execute>`, assign the result to ``res``, and call :meth:`res.fetchone() <Cursor.fetchone>` to fetch the resulting row:"
msgstr "میتوانیم با پرسوجوی جدول ``sqlite_master`` توکار در SQLite، تأیید کنیم که جدول جدید ایجاد شده است؛ این جدول اکنون باید شامل ورودیای برای تعریف جدول ``movie`` باشد (برای جزئیات `The Schema Table`_ را ببینید). آن پرسوجو را با فراخوانی :meth:`cur.execute(...) <Cursor.execute>` اجرا کنید، نتیجه را به ``res`` اختصاص دهید و برای واکشی ردیف حاصل :meth:`res.fetchone() <Cursor.fetchone>` را فراخوانی کنید:"
msgid ""
">>> res = cur.execute(\"SELECT name FROM sqlite_master\")\n"
">>> res.fetchone()\n"
"('movie',)"
msgstr ""
">>> res = cur.execute(\"SELECT name FROM sqlite_master\")\n"
">>> res.fetchone()\n"
"('movie',)"
msgid "We can see that the table has been created, as the query returns a :class:`tuple` containing the table's name. If we query ``sqlite_master`` for a non-existent table ``spam``, :meth:`!res.fetchone` will return ``None``:"
msgstr "میتوانیم ببینیم که جدول ایجاد شده است، زیرا پرسوجو یک :class:`tuple` برمیگرداند که شامل نام جدول است. اگر ``sqlite_master`` را برای جدولی به نام ``spam`` که وجود ندارد پرسوجو کنیم، :meth:`!res.fetchone` ``None`` را برمیگرداند:"
msgid ""
">>> res = cur.execute(\"SELECT name FROM sqlite_master WHERE name='spam'\")\n"
">>> res.fetchone() is None\n"
"True"
msgstr ""
">>> res = cur.execute(\"SELECT name FROM sqlite_master WHERE name='spam'\")\n"
">>> res.fetchone() is None\n"
"True"
msgid "Now, add two rows of data supplied as SQL literals by executing an ``INSERT`` statement, once again by calling :meth:`cur.execute(...) <Cursor.execute>`:"
msgstr "اکنون، با اجرای یک دستور ``INSERT``، دو ردیف داده را که بهصورت مقادیر لفظی SQL ارائه شدهاند، بار دیگر با فراخوانی :meth:`cur.execute(...) <Cursor.execute>` اضافه کنید:"
msgid ""
"cur.execute(\"\"\"\n"
" INSERT INTO movie VALUES\n"
" ('Monty Python and the Holy Grail', 1975, 8.2),\n"
" ('And Now for Something Completely Different', 1971, 7.5)\n"
"\"\"\")"
msgstr ""
"cur.execute(\"\"\"\n"
" INSERT INTO movie VALUES\n"
" ('Monty Python and the Holy Grail', 1975, 8.2),\n"
" ('And Now for Something Completely Different', 1971, 7.5)\n"
"\"\"\")"
msgid "The ``INSERT`` statement implicitly opens a transaction, which needs to be committed before changes are saved in the database (see :ref:`sqlite3-controlling-transactions` for details). Call :meth:`con.commit() <Connection.commit>` on the connection object to commit the transaction:"
msgstr "دستور ``INSERT`` بهطور ضمنی یک تراکنش را باز میکند، که باید پیش از ذخیره شدن تغییرات در پایگاه داده، ثبت (commit) شود (برای جزئیات :ref:`sqlite3-controlling-transactions` را ببینید). برای ثبت تراکنش، :meth:`con.commit() <Connection.commit>` را روی شیء اتصال فراخوانی کنید:"
msgid "con.commit()"
msgstr "con.commit()"
msgid "We can verify that the data was inserted correctly by executing a ``SELECT`` query. Use the now-familiar :meth:`cur.execute(...) <Cursor.execute>` to assign the result to ``res``, and call :meth:`res.fetchall() <Cursor.fetchall>` to return all resulting rows:"
msgstr "میتوانیم با اجرای یک پرسوجوی ``SELECT`` تأیید کنیم که دادهها بهدرستی درج شدهاند. از :meth:`cur.execute(...) <Cursor.execute>` که اکنون برایتان آشناست، برای اختصاص نتیجه به ``res`` استفاده کنید و :meth:`res.fetchall() <Cursor.fetchall>` را فراخوانی کنید تا تمام ردیفهای حاصل را برگرداند:"
msgid ""
">>> res = cur.execute(\"SELECT score FROM movie\")\n"
">>> res.fetchall()\n"
"[(8.2,), (7.5,)]"
msgstr ""
">>> res = cur.execute(\"SELECT score FROM movie\")\n"
">>> res.fetchall()\n"
"[(8.2,), (7.5,)]"
msgid "The result is a :class:`list` of two :class:`!tuple`\\s, one per row, each containing that row's ``score`` value."
msgstr "نتیجه یک :class:`list` شامل دو :class:`!tuple` است، یکی بهازای هر ردیف، که هر یک حاوی مقدار ``score`` آن ردیف است."
msgid "Now, insert three more rows by calling :meth:`cur.executemany(...) <Cursor.executemany>`:"
msgstr "اکنون، ۳ ردیف دیگر را با فراخوانی :meth:`cur.executemany(...) <Cursor.executemany>` درج کنید:"
msgid ""
"data = [\n"
" (\"Monty Python Live at the Hollywood Bowl\", 1982, 7.9),\n"
" (\"Monty Python's The Meaning of Life\", 1983, 7.5),\n"
" (\"Monty Python's Life of Brian\", 1979, 8.0),\n"
"]\n"
"cur.executemany(\"INSERT INTO movie VALUES(?, ?, ?)\", data)\n"
"con.commit() # Remember to commit the transaction after executing INSERT."
msgstr ""
"data = [\n"
" (\"Monty Python Live at the Hollywood Bowl\", 1982, 7.9),\n"
" (\"Monty Python's The Meaning of Life\", 1983, 7.5),\n"
" (\"Monty Python's Life of Brian\", 1979, 8.0),\n"
"]\n"
"cur.executemany(\"INSERT INTO movie VALUES(?, ?, ?)\", data)\n"
"con.commit() # Remember to commit the transaction after executing INSERT."
msgid "Notice that ``?`` placeholders are used to bind ``data`` to the query. Always use placeholders instead of :ref:`string formatting <tut-formatting>` to bind Python values to SQL statements, to avoid `SQL injection attacks`_ (see :ref:`sqlite3-placeholders` for more details)."
msgstr "توجه داشته باشید که از جاینگهدارهای ``?`` برای مقید کردن ``data`` به پرسوجو استفاده میشود. همیشه برای مقید کردن مقادیر پایتون به دستورهای SQL، بهجای :ref:`قالببندی رشته <tut-formatting>` از جاینگهدارها استفاده کنید تا از `SQL injection attacks`_ جلوگیری شود (برای جزئیات بیشتر :ref:`sqlite3-placeholders` را ببینید)."
msgid "We can verify that the new rows were inserted by executing a ``SELECT`` query, this time iterating over the results of the query:"
msgstr "میتوانیم با اجرای یک پرسوجوی ``SELECT`` تأیید کنیم که ردیفهای جدید درج شدهاند؛ این بار با پیمایش روی نتایج پرسوجو:"
msgid ""
">>> for row in cur.execute(\"SELECT year, title FROM movie ORDER BY year\"):\n"
"... print(row)\n"
"(1971, 'And Now for Something Completely Different')\n"
"(1975, 'Monty Python and the Holy Grail')\n"
"(1979, \"Monty Python's Life of Brian\")\n"
"(1982, 'Monty Python Live at the Hollywood Bowl')\n"
"(1983, \"Monty Python's The Meaning of Life\")"
msgstr ""
">>> for row in cur.execute(\"SELECT year, title FROM movie ORDER BY year\"):\n"
"... print(row)\n"
"(1971, 'And Now for Something Completely Different')\n"
"(1975, 'Monty Python and the Holy Grail')\n"
"(1979, \"Monty Python's Life of Brian\")\n"
"(1982, 'Monty Python Live at the Hollywood Bowl')\n"
"(1983, \"Monty Python's The Meaning of Life\")"
msgid "Each row is a two-item :class:`tuple` of ``(year, title)``, matching the columns selected in the query."
msgstr "هر ردیف یک :class:`tuple` دو آیتمی از ``(year, title)`` است که با ستونهای انتخابشده در پرسوجو مطابقت دارد."
msgid "Finally, verify that the database has been written to disk by calling :meth:`con.close() <Connection.close>` to close the existing connection, opening a new one, creating a new cursor, then querying the database:"
msgstr "در نهایت، با فراخوانی :meth:`con.close() <Connection.close>` برای بستن اتصال موجود، باز کردن یک اتصال جدید، ایجاد یک نشانگر جدید و سپس پرسوجو از پایگاه داده، تأیید کنید که پایگاه داده روی دیسک نوشته شده است:"
msgid ""
">>> con.close()\n"
">>> new_con = sqlite3.connect(\"tutorial.db\")\n"
">>> new_cur = new_con.cursor()\n"
">>> res = new_cur.execute(\"SELECT title, year FROM movie ORDER BY score DESC\")\n"
">>> title, year = res.fetchone()\n"
">>> print(f'The highest scoring Monty Python movie is {title!r}, released in {year}')\n"
"The highest scoring Monty Python movie is 'Monty Python and the Holy Grail', released in 1975\n"
">>> new_con.close()"
msgstr ""
">>> con.close()\n"
">>> new_con = sqlite3.connect(\"tutorial.db\")\n"
">>> new_cur = new_con.cursor()\n"
">>> res = new_cur.execute(\"SELECT title, year FROM movie ORDER BY score DESC\")\n"
">>> title, year = res.fetchone()\n"
">>> print(f'The highest scoring Monty Python movie is {title!r}, released in {year}')\n"
"The highest scoring Monty Python movie is 'Monty Python and the Holy Grail', released in 1975\n"
">>> new_con.close()"
msgid "You've now created an SQLite database using the :mod:`!sqlite3` module, inserted data and retrieved values from it in multiple ways."
msgstr "اکنون با استفاده از ماژول :mod:`!sqlite3` یک پایگاه داده SQLite ایجاد کردهاید، دادهها را درج کردهاید و مقادیر را به روشهای متعدد از آن بازیابی کردهاید."
msgid ":ref:`sqlite3-howtos` for further reading:"
msgstr ":ref:`sqlite3-howtos` برای مطالعه بیشتر:"
msgid ":ref:`sqlite3-placeholders`"
msgstr ":ref:`sqlite3-placeholders`"
msgid ":ref:`sqlite3-adapters`"
msgstr ":ref:`sqlite3-adapters`"
msgid ":ref:`sqlite3-converters`"
msgstr ":ref:`sqlite3-converters`"
msgid ":ref:`sqlite3-connection-context-manager`"
msgstr ":ref:`sqlite3-connection-context-manager`"
msgid ":ref:`sqlite3-howto-row-factory`"
msgstr ":ref:`sqlite3-howto-row-factory`"
msgid ":ref:`sqlite3-explanation` for in-depth background on transaction control."
msgstr ":ref:`sqlite3-explanation` برای پیشزمینهی تفصیلی دربارهی کنترل تراکنش."
msgid "Reference"
msgstr "مرجع"
msgid "Module functions"
msgstr "توابع ماژول"
msgid "Open a connection to an SQLite database."
msgstr "باز کردن اتصال به یک پایگاه دادهی SQLite."
msgid "Parameters"
msgstr "پارامترها"
msgid "The path to the database file to be opened. You can pass ``\":memory:\"`` to create an `SQLite database existing only in memory <https://sqlite.org/inmemorydb.html>`_, and open a connection to it."
msgstr "مسیر پرونده پایگاه دادهای که باید باز شود. میتوانید ``\":memory:\"`` را برای ایجاد یک `پایگاه داده SQLite که فقط در حافظه وجود دارد <https://sqlite.org/inmemorydb.html>`_ و باز کردن اتصالی به آن ارسال کنید."
msgid "How many seconds the connection should wait before raising an :exc:`OperationalError` when a table is locked. If another connection opens a transaction to modify a table, that table will be locked until the transaction is committed. Default five seconds."
msgstr "تعداد ثانیههایی که اتصال باید هنگام قفل بودن یک جدول، پیش از پرتاب :exc:`OperationalError` منتظر بماند. اگر اتصال دیگری تراکنشی را برای تغییر یک جدول آغاز کند، آن جدول تا زمانی که تراکنش ثبت نهایی (commit) شود، قفل خواهد بود. پیشفرض پنج ثانیه است."
msgid "Control whether and how data types not :ref:`natively supported by SQLite <sqlite3-types>` are looked up to be converted to Python types, using the converters registered with :func:`register_converter`. Set it to any combination (using ``|``, bitwise or) of :const:`PARSE_DECLTYPES` and :const:`PARSE_COLNAMES` to enable this. Column names take precedence over declared types if both flags are set. By default (``0``), type detection is disabled."
msgstr "کنترل کنید که آیا و چگونه انواع دادهای که :ref:`بهصورت بومی توسط SQLite پشتیبانی نمیشوند <sqlite3-types>`، جستجو میشوند تا با استفاده از مبدلهای ثبتشده با :func:`register_converter` به نوعهای پایتون تبدیل شوند. برای فعالسازی این مورد، آن را روی هر ترکیبی از :const:`PARSE_DECLTYPES` و :const:`PARSE_COLNAMES` (با استفاده از ``|``، یای بیتی) تنظیم کنید. اگر هر دو پرچم تنظیم شده باشند، نام ستونها بر نوعهای اعلامشده اولویت دارند. بهطور پیشفرض (``0``)، تشخیص نوع غیرفعال است."
msgid "Control legacy transaction handling behaviour. See :attr:`Connection.isolation_level` and :ref:`sqlite3-transaction-control-isolation-level` for more information. Can be ``\"DEFERRED\"`` (default), ``\"EXCLUSIVE\"`` or ``\"IMMEDIATE\"``; or ``None`` to disable opening transactions implicitly. Has no effect unless :attr:`Connection.autocommit` is set to :const:`~sqlite3.LEGACY_TRANSACTION_CONTROL` (the default)."
msgstr "رفتار مدیریت تراکنشها به روش قدیمی را کنترل میکند. برای اطلاعات بیشتر :attr:`Connection.isolation_level` و :ref:`sqlite3-transaction-control-isolation-level` را ببینید. میتواند ``\"DEFERRED\"`` (پیشفرض)، ``\"EXCLUSIVE\"`` یا ``\"IMMEDIATE\"`` باشد؛ یا برای غیرفعال کردن باز شدن تراکنشها بهصورت ضمنی، ``None`` باشد. هیچ تأثیری ندارد مگر اینکه :attr:`Connection.autocommit` روی :const:`~sqlite3.LEGACY_TRANSACTION_CONTROL` (پیشفرض) تنظیم شده باشد."
msgid "If ``True`` (default), :exc:`ProgrammingError` will be raised if the database connection is used by a thread other than the one that created it. If ``False``, the connection may be accessed in multiple threads; write operations may need to be serialized by the user to avoid data corruption. See :attr:`threadsafety` for more information."
msgstr "اگر ``True`` (پیشفرض) باشد، در صورتی که از اتصال پایگاه داده در نخی غیر از نخی که آن را ایجاد کرده است استفاده شود، :exc:`ProgrammingError` پرتاب میشود. اگر ``False`` باشد، ممکن است اتصال در چندین نخ مورد دسترسی قرار گیرد؛ ممکن است لازم باشد کاربر برای جلوگیری از خرابی دادهها، عملیات نوشتن را بهصورت متوالی اجرا کند. برای اطلاعات بیشتر :attr:`threadsafety` را ببینید."
msgid "A custom subclass of :class:`Connection` to create the connection with, if not the default :class:`Connection` class."
msgstr "یک زیرکلاس سفارشی از :class:`Connection` برای ایجاد اتصال با آن، اگر کلاس پیشفرض :class:`Connection` نباشد."
msgid "The number of statements that :mod:`!sqlite3` should internally cache for this connection, to avoid parsing overhead. By default, 128 statements."
msgstr "تعداد دستورهایی که :mod:`!sqlite3` باید برای این اتصال بهصورت داخلی در نهانگاه ذخیره کند، تا از سربار تجزیه جلوگیری شود. بهطور پیشفرض، ۱۲۸ دستور."
msgid "If set to ``True``, *database* is interpreted as a :abbr:`URI (Uniform Resource Identifier)` with a file path and an optional query string. The scheme part *must* be ``\"file:\"``, and the path can be relative or absolute. The query string allows passing parameters to SQLite, enabling various :ref:`sqlite3-uri-tricks`."
msgstr "اگر روی ``True`` تنظیم شود، *database* بهعنوان یک :abbr:`URI (Uniform Resource Identifier)` با یک مسیر پرونده و یک رشتهی پرسوجوی اختیاری تفسیر میشود. بخش طرحواره *باید* ``\"file:\"`` باشد، و مسیر میتواند نسبی یا مطلق باشد. رشتهی پرسوجو امکان ارسال پارامترها به SQLite را فراهم میکند و ترفندهای گوناگون :ref:`sqlite3-uri-tricks` را ممکن میسازد."
msgid "Control :pep:`249` transaction handling behaviour. See :attr:`Connection.autocommit` and :ref:`sqlite3-transaction-control-autocommit` for more information. *autocommit* currently defaults to :const:`~sqlite3.LEGACY_TRANSACTION_CONTROL`. The default will change to ``False`` in a future Python release."
msgstr "رفتار مدیریت تراکنش :pep:`249` را کنترل میکند. برای اطلاعات بیشتر، :attr:`Connection.autocommit` و :ref:`sqlite3-transaction-control-autocommit` را ببینید. مقدار پیشفرض *autocommit* در حال حاضر :const:`~sqlite3.LEGACY_TRANSACTION_CONTROL` است. این مقدار پیشفرض در یکی از نسخههای آینده پایتون به ``False`` تغییر خواهد کرد."
msgid "Return type"
msgstr "نوع بازگشتی"
msgid "Raises an :ref:`auditing event <auditing>` ``sqlite3.connect`` with argument ``database``."
msgstr "یک :ref:`رویداد حسابرسی <auditing>` ``sqlite3.connect`` را با آرگومان ``database`` پرتاب میکند."
msgid "Raises an :ref:`auditing event <auditing>` ``sqlite3.connect/handle`` with argument ``connection_handle``."
msgstr "یک :ref:`رویداد حسابرسی <auditing>` ``sqlite3.connect/handle`` را با آرگومان ``connection_handle`` پرتاب میکند."
msgid "Added the *uri* parameter."
msgstr "پارامتر *uri* اضافه شد."
msgid "*database* can now also be a :term:`path-like object`, not only a string."
msgstr "*database* اکنون میتواند یک :term:`path-like object` نیز باشد، نه فقط یک رشته."
msgid "Added the ``sqlite3.connect/handle`` auditing event."
msgstr "رویداد حسابرسی ``sqlite3.connect/handle`` افزوده شد."
msgid "Added the *autocommit* parameter."
msgstr "پارامتر *autocommit* افزوده شد."
msgid "All parameters except *database* are now keyword-only."
msgstr "اکنون تمام پارامترها به جز *database* فقط کلیدواژهای هستند."
msgid "Return ``True`` if the string *statement* appears to contain one or more complete SQL statements. No syntactic verification or parsing of any kind is performed, other than checking that there are no unclosed string literals and the statement is terminated by a semicolon."
msgstr "اگر به نظر برسد که رشتهی *statement* حاوی یک یا چند دستور کامل SQL باشد، ``True`` را برمیگرداند. هیچگونه صحتسنجی سینتکسی یا تجزیهای از هیچ نوع انجام نمیشود، بهجز بررسی اینکه هیچ لفظی رشتهای بستهنشدهای وجود نداشته باشد و دستور با نقطهویرگول پایان یافته باشد."
msgid "For example:"
msgstr "برای مثال:"
msgid ""
">>> sqlite3.complete_statement(\"SELECT foo FROM bar;\")\n"
"True\n"
">>> sqlite3.complete_statement(\"SELECT foo\")\n"
"False"
msgstr ""
">>> sqlite3.complete_statement(\"SELECT foo FROM bar;\")\n"
"True\n"
">>> sqlite3.complete_statement(\"SELECT foo\")\n"
"False"
msgid "This function may be useful during command-line input to determine if the entered text seems to form a complete SQL statement, or if additional input is needed before calling :meth:`~Cursor.execute`."
msgstr "این تابع ممکن است در حین ورودی از خط فرمان برای تشخیص اینکه آیا به نظر میرسد متن واردشده یک دستور SQL کامل را تشکیل میدهد، یا پیش از فراخوانی :meth:`~Cursor.execute` به ورودی بیشتری نیاز است، مفید باشد."
msgid "See :func:`!runsource` in :source:`Lib/sqlite3/__main__.py` for real-world use."
msgstr "برای استفاده در دنیای واقعی، :func:`!runsource` را در :source:`Lib/sqlite3/__main__.py` ببینید."
msgid "Enable or disable callback tracebacks. By default you will not get any tracebacks in user-defined functions, aggregates, converters, authorizer callbacks etc. If you want to debug them, you can call this function with *flag* set to ``True``. Afterwards, you will get tracebacks from callbacks on :data:`sys.stderr`. Use ``False`` to disable the feature again."
msgstr "فعال یا غیرفعال کردن ردگیریهای پشتهی کالبکها. بهطور پیشفرض، هیچ ردگیری پشتهای در توابع تعریفشده توسط کاربر، تجمیعها، مبدلها، کالبکهای مجوزدهنده و غیره دریافت نخواهید کرد. اگر میخواهید آنها را اشکالزدایی کنید، میتوانید این تابع را با *flag* برابر ``True`` فراخوانی کنید. پس از آن، ردگیریهای پشتهی کالبکها را در :data:`sys.stderr` دریافت خواهید کرد. برای غیرفعال کردن مجدد این قابلیت، از ``False`` استفاده کنید."
msgid "Errors in user-defined function callbacks are logged as unraisable exceptions. Use an :func:`unraisable hook handler <sys.unraisablehook>` for introspection of the failed callback."
msgstr "خطاهای کالبکهای تابعی تعریفشده توسط کاربر بهعنوان استثناهای غیرقابلپرتاب ثبت میشوند. برای دروننگری کالبک ناموفق، از یک :func:`unraisable hook handler <sys.unraisablehook>` استفاده کنید."
msgid "Register an *adapter* :term:`callable` to adapt the Python type *type* into an SQLite type. The adapter is called with a Python object of type *type* as its sole argument, and must return a value of a :ref:`type that SQLite natively understands <sqlite3-types>`."
msgstr "یک *adapter* :term:`callable` برای تبدیل نوع پایتون *type* به یک نوع SQLite ثبت کنید. این آداپتور با یک شیء پایتون از نوع *type* بهعنوان تنها آرگومان خود فراخوانی میشود و باید مقداری از :ref:`نوعی که SQLite بهصورت بومی آن را میشناسد <sqlite3-types>` برگرداند."
msgid "Register the *converter* :term:`callable` to convert SQLite objects of type *typename* into a Python object of a specific type. The converter is invoked for all SQLite values of type *typename*; it is passed a :class:`bytes` object and should return an object of the desired Python type. Consult the parameter *detect_types* of :func:`connect` for information regarding how type detection works."
msgstr "برای تبدیل اشیای SQLite از نوع *typename* به یک شیء پایتون از نوع مشخص، *converter* :term:`callable` را ثبت کنید. مبدل برای همه مقادیر SQLite از نوع *typename* فراخوانی میشود؛ یک شیء :class:`bytes` به آن داده میشود و باید یک شیء از نوع پایتون دلخواه را برگرداند. برای آگاهی از چگونگی کارکرد تشخیص نوع، به پارامتر *detect_types* در :func:`connect` مراجعه کنید."
msgid "Note: *typename* and the name of the type in your query are matched case-insensitively."
msgstr "توجه: *typename* و نام نوع در پرسوجوی شما، بدون حساسیت به بزرگی و کوچکی حروف تطبیق داده میشوند."
msgid "Module constants"
msgstr "ثابتهای ماژول"
msgid "Set :attr:`~Connection.autocommit` to this constant to select old style (pre-Python 3.12) transaction control behaviour. See :ref:`sqlite3-transaction-control-isolation-level` for more information."
msgstr "برای انتخاب رفتار کنترل تراکنش به سبک قدیمی (پیش از Python 3.12)، :attr:`~Connection.autocommit` را روی این ثابت تنظیم کنید. برای اطلاعات بیشتر :ref:`sqlite3-transaction-control-isolation-level` را ببینید."
msgid "Pass this flag value to the *detect_types* parameter of :func:`connect` to look up a converter function using the declared types for each column. The types are declared when the database table is created. :mod:`!sqlite3` will look up a converter function using the first word of the declared type as the converter dictionary key. For example:"
msgstr "مقدار این پرچم را به پارامتر *detect_types* در :func:`connect` بدهید تا با استفاده از انواع اعلامشده برای هر ستون، یک تابع تبدیلکننده جستوجو شود. این انواع هنگام ایجاد جدول پایگاه داده اعلام میشوند. :mod:`!sqlite3` یک تابع تبدیلکننده را با استفاده از نخستین واژهی نوع اعلامشده بهعنوان کلید دیکشنری مبدل جستوجو میکند. برای مثال:"
msgid ""
"CREATE TABLE test(\n"
" i integer primary key, ! will look up a converter named \"integer\"\n"
" p point, ! will look up a converter named \"point\"\n"
" n number(10) ! will look up a converter named \"number\"\n"
" )"
msgstr ""
"CREATE TABLE test(\n"
" i integer primary key, ! will look up a converter named \"integer\"\n"
" p point, ! will look up a converter named \"point\"\n"
" n number(10) ! will look up a converter named \"number\"\n"
" )"
msgid "This flag may be combined with :const:`PARSE_COLNAMES` using the ``|`` (bitwise or) operator."
msgstr "این پرچم را میتوان با استفاده از عملگر ``|`` (یا بیتبهبیت) با :const:`PARSE_COLNAMES` ترکیب کرد."
msgid "Generated fields (for example ``MAX(p)``) are returned as :class:`str`. Use :const:`!PARSE_COLNAMES` to enforce types for such queries."
msgstr "فیلدهای تولیدشده (برای مثال ``MAX(p)``) بهصورت :class:`str` برگردانده میشوند. برای اعمال نوعها در چنین پرسوجوهایی از :const:`!PARSE_COLNAMES` استفاده کنید."
msgid "Pass this flag value to the *detect_types* parameter of :func:`connect` to look up a converter function by using the type name, parsed from the query column name, as the converter dictionary key. The query column name must be wrapped in double quotes (``\"``) and the type name must be wrapped in square brackets (``[]``)."
msgstr "این مقدار پرچم را به پارامتر *detect_types* از :func:`connect` بدهید تا با استفاده از نام نوع، که از نام ستون پرسوجو تجزیه میشود، بهعنوان کلید دیکشنری مبدل، یک تابع مبدل را جستجو کنید. نام ستون پرسوجو باید داخل علامت نقلقول دوتایی (``\"``) و نام نوع باید داخل کروشه (``[]``) قرار گیرد."
msgid "SELECT MAX(p) as \"p [point]\" FROM test; ! will look up converter \"point\""
msgstr "SELECT MAX(p) as \"p [point]\" FROM test; ! will look up converter \"point\""
msgid "This flag may be combined with :const:`PARSE_DECLTYPES` using the ``|`` (bitwise or) operator."
msgstr "میتوان این پرچم را با :const:`PARSE_DECLTYPES` با استفاده از عملگر ``|`` (یای بیتی) ترکیب کرد."
msgid "Flags that should be returned by the *authorizer_callback* :term:`callable` passed to :meth:`Connection.set_authorizer`, to indicate whether:"
msgstr "پرچمهایی که باید توسط *authorizer_callback* :term:`callable` ارسالشده به :meth:`Connection.set_authorizer` بازگردانده شوند، تا نشان دهند که آیا:"
msgid "Access is allowed (:const:`!SQLITE_OK`),"
msgstr "دسترسی مجاز است (:const:`!SQLITE_OK`)،"
msgid "The SQL statement should be aborted with an error (:const:`!SQLITE_DENY`)"
msgstr "دستور SQL باید با یک خطا متوقف شود (:const:`!SQLITE_DENY`)"
msgid "The column should be treated as a ``NULL`` value (:const:`!SQLITE_IGNORE`)"
msgstr "این ستون باید بهعنوان یک مقدار ``NULL`` در نظر گرفته شود (:const:`!SQLITE_IGNORE`)"
msgid "String constant stating the supported DB-API level. Required by the DB-API. Hard-coded to ``\"2.0\"``."
msgstr "ثابت رشتهای که سطح DB-API پشتیبانیشده را اعلام میکند. مورد نیاز DB-API است. بهصورت سختکد (hard-coded) برابر با ``\"2.0\"`` است."
msgid "String constant stating the type of parameter marker formatting expected by the :mod:`!sqlite3` module. Required by the DB-API. Hard-coded to ``\"qmark\"``."
msgstr "ثابت رشتهای که نوع قالببندی نشانگر پارامتر مورد انتظار ماژول :mod:`!sqlite3` را مشخص میکند. این ثابت توسط DB-API الزامی شده و بهصورت سختکد به ``\"qmark\"`` تنظیم شده است."
msgid "The ``named`` DB-API parameter style is also supported."
msgstr "سبک پارامتر ``named`` در DB-API نیز پشتیبانی میشود."
msgid "Version number of the runtime SQLite library as a :class:`string <str>`."
msgstr "شمارهی نسخهی کتابخانهی SQLite رانتایم بهصورت یک :class:`string <str>`."
msgid "Version number of the runtime SQLite library as a :class:`tuple` of :class:`integers <int>`."
msgstr "شماره نسخه کتابخانه SQLite در رانتایم بهصورت یک :class:`tuple` از :class:`اعداد صحیح <int>`."
msgid "A :class:`tuple` containing all SQLite keywords."
msgstr "یک :class:`tuple` حاوی تمام کلیدواژههای SQLite."
msgid "This constant is only available if Python was compiled with SQLite 3.24.0 or greater."
msgstr "این ثابت فقط در صورتی در دسترس است که پایتون با SQLite 3.24.0 یا بالاتر کامپایلشده باشد."
msgid "Integer constant required by the DB-API 2.0, stating the level of thread safety the :mod:`!sqlite3` module supports. This attribute is set based on the default `threading mode <https://sqlite.org/threadsafe.html>`_ the underlying SQLite library is compiled with. The SQLite threading modes are:"
msgstr "ثابت عدد صحیح مورد نیاز DB-API 2.0، که سطح ایمنی نخی را که ماژول :mod:`!sqlite3` پشتیبانی میکند، مشخص میکند. این ویژگی بر اساس `حالت نخی (threading mode) <https://sqlite.org/threadsafe.html>`_ پیشفرضی تنظیم میشود که کتابخانه زیربنایی SQLite با آن کامپایل شده است. حالتهای نخی SQLite عبارتند از:"
msgid "**Single-thread**: In this mode, all mutexes are disabled and SQLite is unsafe to use in more than a single thread at once."
msgstr "**تکنخی**: در این حالت، همه قفلهای متقابل غیرفعال هستند و استفاده از SQLite در بیش از یک نخ بهطور همزمان ایمن نیست."
msgid "**Multi-thread**: In this mode, SQLite can be safely used by multiple threads provided that no single database connection is used simultaneously in two or more threads."
msgstr "**چندنخی**: در این حالت، میتوان از SQLite بهطور امن در چندین نخ استفاده کرد، مشروط بر اینکه هیچ اتصال پایگاه دادهای بهطور همزمان در دو یا چند نخ استفاده نشود."
msgid "**Serialized**: In serialized mode, SQLite can be safely used by multiple threads with no restriction."
msgstr "**سریالشده**: در حالت سریالشده، میتوان از SQLite بهصورت ایمن توسط چندین نخ بدون هیچگونه محدودیتی استفاده کرد."
msgid "The mappings from SQLite threading modes to DB-API 2.0 threadsafety levels are as follows:"
msgstr "نگاشت حالتهای نخی SQLite به سطوح ایمنی نخی DB-API 2.0 به شرح زیر است:"
msgid "SQLite threading mode"
msgstr "حالت نخبندی SQLite"
msgid ":pep:`threadsafety <0249#threadsafety>`"
msgstr ":pep:`threadsafety <0249#threadsafety>`"
msgid "`SQLITE_THREADSAFE`_"
msgstr "`SQLITE_THREADSAFE`_"
msgid "DB-API 2.0 meaning"
msgstr "معنای DB-API 2.0"
msgid "single-thread"
msgstr "تکنخی"
msgid "0"
msgstr "0"
msgid "Threads may not share the module"
msgstr "نخها نمیتوانند ماژول را به اشتراک بگذارند"
msgid "multi-thread"
msgstr "چندنخی"
msgid "1"
msgstr "1"
msgid "2"
msgstr "۲"
msgid "Threads may share the module, but not connections"
msgstr "نخها میتوانند ماژول را به اشتراک بگذارند، اما اتصالها را نه"
msgid "serialized"
msgstr "سریالشده"
msgid "3"
msgstr "۳"
msgid "Threads may share the module, connections and cursors"
msgstr "نخها میتوانند ماژول، اتصالها و نشانگرها را به اشتراک بگذارند"
msgid "Set *threadsafety* dynamically instead of hard-coding it to ``1``."
msgstr "بهجای سختکد کردن آن روی ``1``، *threadsafety* را بهصورت پویا تنظیم کنید."
msgid "These constants are used for the :meth:`Connection.setconfig` and :meth:`~Connection.getconfig` methods."
msgstr "این ثابتها برای متدهای :meth:`Connection.setconfig` و :meth:`~Connection.getconfig` استفاده میشوند."
msgid "The availability of these constants varies depending on the version of SQLite Python was compiled with."
msgstr "دسترسپذیری این ثابتها بسته به نسخهی SQLite که پایتون با آن کامپایل شده است، متفاوت است."
msgid "https://www.sqlite.org/c3ref/c_dbconfig_defensive.html"
msgstr "https://www.sqlite.org/c3ref/c_dbconfig_defensive.html"
msgid "SQLite docs: Database Connection Configuration Options"
msgstr "مستندات SQLite: گزینههای پیکربندی اتصال پایگاه داده"
msgid "The :data:`!version` and :data:`!version_info` constants."
msgstr "ثابتهای :data:`!version` و :data:`!version_info`."
msgid "Connection objects"
msgstr "اشیای اتصال"
msgid "Each open SQLite database is represented by a ``Connection`` object, which is created using :func:`sqlite3.connect`. Their main purpose is creating :class:`Cursor` objects, and :ref:`sqlite3-controlling-transactions`."
msgstr "هر پایگاه دادهی باز SQLite با یک شیء ``Connection`` نمایش داده میشود، که با استفاده از :func:`sqlite3.connect` ایجاد میشود. هدف اصلی آنها ایجاد اشیای :class:`Cursor` و :ref:`sqlite3-controlling-transactions` است."
msgid ":ref:`sqlite3-connection-shortcuts`"
msgstr ":ref:`sqlite3-connection-shortcuts`"
msgid "A :exc:`ResourceWarning` is emitted if :meth:`close` is not called before a :class:`!Connection` object is deleted."
msgstr "اگر :meth:`close` پیش از حذف یک شیء :class:`!Connection` فراخوانی نشود، یک :exc:`ResourceWarning` نشان داده میشود."
msgid "An SQLite database connection has the following attributes and methods:"
msgstr "اتصال پایگاه دادهی SQLite دارای ویژگیها و متدهای زیر است:"
msgid "Create and return a :class:`Cursor` object. The cursor method accepts a single optional parameter *factory*. If supplied, this must be a :term:`callable` returning an instance of :class:`Cursor` or its subclasses."
msgstr "یک شیء :class:`Cursor` را ایجاد کرده و برمیگرداند. متد cursor یک پارامتر اختیاری واحد به نام *factory* میپذیرد. در صورت ارائه، این باید یک :term:`callable` باشد که نمونهای از :class:`Cursor` یا زیرکلاسهای آن را برمیگرداند."
msgid "Open a :class:`Blob` handle to an existing :abbr:`BLOB (Binary Large OBject)`."
msgstr "یک دستهی :class:`Blob` به یک :abbr:`BLOB (Binary Large OBject)` موجود باز کنید."
msgid "The name of the table where the blob is located."
msgstr "نام جدولی که blob در آن قرار دارد."
msgid "The name of the column where the blob is located."
msgstr "نام ستونی که blob در آن قرار دارد."
msgid "The row id where the blob is located."
msgstr "شناسهی ردیفی که blob در آن قرار دارد."
msgid "Set to ``True`` if the blob should be opened without write permissions. Defaults to ``False``."
msgstr "اگر قرار باشد blob بدون اجازههای نوشتن باز شود، روی ``True`` تنظیم شود. پیشفرض آن ``False`` است."
msgid "The name of the database where the blob is located. Defaults to ``\"main\"``."
msgstr "نام پایگاه دادهای که بلاب (blob) در آن قرار دارد. بهطور پیشفرض ``\"main\"`` است."
msgid "Raises"
msgstr "پرتاب میکند"
msgid "When trying to open a blob in a ``WITHOUT ROWID`` table."
msgstr "هنگام تلاش برای باز کردن یک بلاب در جدول ``WITHOUT ROWID``."
msgid "The blob size cannot be changed using the :class:`Blob` class. Use the SQL function ``zeroblob`` to create a blob with a fixed size."
msgstr "اندازهی blob را نمیتوان با استفاده از کلاس :class:`Blob` تغییر داد. برای ایجاد یک blob با اندازهی ثابت، از تابع SQL ``zeroblob`` استفاده کنید."
msgid "Commit any pending transaction to the database. If :attr:`autocommit` is ``True``, or there is no open transaction, this method does nothing. If :attr:`!autocommit` is ``False``, a new transaction is implicitly opened if a pending transaction was committed by this method."
msgstr "هر تراکنش در انتظار را در پایگاه داده ثبت میکند. اگر :attr:`autocommit` برابر ``True`` باشد، یا هیچ تراکنش بازی وجود نداشته باشد، این متد هیچ کاری انجام نمیدهد. اگر :attr:`!autocommit` برابر ``False`` باشد، چنانچه تراکنش در انتظاری توسط این متد ثبت شود، تراکنش جدیدی بهطور ضمنی باز میشود."
msgid "Roll back to the start of any pending transaction. If :attr:`autocommit` is ``True``, or there is no open transaction, this method does nothing. If :attr:`!autocommit` is ``False``, a new transaction is implicitly opened if a pending transaction was rolled back by this method."
msgstr "به آغاز هر تراکنش در حال انتظار عقبگرد میکند. اگر :attr:`autocommit` برابر ``True`` باشد، یا هیچ تراکنش بازی وجود نداشته باشد، این متد هیچ کاری انجام نمیدهد. اگر :attr:`!autocommit` برابر ``False`` باشد، در صورتی که یک تراکنش در حال انتظار توسط این متد عقبگرد شده باشد، تراکنش جدیدی بهطور ضمنی باز میشود."
msgid "Close the database connection. If :attr:`autocommit` is ``False``, any pending transaction is implicitly rolled back. If :attr:`!autocommit` is ``True`` or :data:`LEGACY_TRANSACTION_CONTROL`, no implicit transaction control is executed. Make sure to :meth:`commit` before closing to avoid losing pending changes."
msgstr "اتصال به پایگاه داده را ببندید. اگر :attr:`autocommit` برابر ``False`` باشد، هر تراکنش در انتظاری بهصورت ضمنی بازگردانده میشود. اگر :attr:`!autocommit` برابر ``True`` یا :data:`LEGACY_TRANSACTION_CONTROL` باشد، هیچ کنترل تراکنشی بهصورت ضمنی اعمال نمیشود. برای جلوگیری از دست رفتن تغییرات در انتظار، اطمینان حاصل کنید که پیش از بستن، :meth:`commit` را فراخوانی کنید."
msgid "Create a new :class:`Cursor` object and call :meth:`~Cursor.execute` on it with the given *sql* and *parameters*. Return the new cursor object."
msgstr "یک شیء :class:`Cursor` جدید ایجاد میکند و :meth:`~Cursor.execute` را با *sql* و *parameters* دادهشده روی آن فراخوانی میکند. شیء نشانگر جدید را برمیگرداند."
msgid "Create a new :class:`Cursor` object and call :meth:`~Cursor.executemany` on it with the given *sql* and *parameters*. Return the new cursor object."
msgstr "یک شیء :class:`Cursor` جدید ایجاد کنید و :meth:`~Cursor.executemany` را با *sql* و *parameters* دادهشده روی آن فراخوانی کنید. شیء نشانگر جدید را برگردانید."
msgid "Create a new :class:`Cursor` object and call :meth:`~Cursor.executescript` on it with the given *sql_script*. Return the new cursor object."
msgstr "یک شیء :class:`Cursor` جدید ایجاد میکند و :meth:`~Cursor.executescript` را با *sql_script* دادهشده روی آن فراخوانی میکند. شیء نشانگر جدید را برمیگرداند."
msgid "Create or remove a user-defined SQL function."
msgstr "ایجاد یا حذف یک تابع SQL تعریفشده توسط کاربر."
msgid "The name of the SQL function."
msgstr "نام تابع SQL."
msgid "The number of arguments the SQL function can accept. If ``-1``, it may take any number of arguments."
msgstr "تعداد آرگومانهایی که تابع SQL میتواند بپذیرد. اگر ``-1`` باشد، میتواند هر تعداد آرگومان بگیرد."
msgid "A :term:`callable` that is called when the SQL function is invoked. The callable must return :ref:`a type natively supported by SQLite <sqlite3-types>`. Set to ``None`` to remove an existing SQL function."
msgstr "یک :term:`فراخوانیپذیر <callable>` است که هنگام فراخوانی تابع SQL فراخوانده میشود. این فراخوانیپذیر باید :ref:`نوعی که SQLite بهصورت بومی از آن پشتیبانی میکند <sqlite3-types>` را برگرداند. برای حذف یک تابع SQL موجود، آن را روی ``None`` تنظیم کنید."
msgid "If ``True``, the created SQL function is marked as `deterministic <https://sqlite.org/deterministic.html>`_, which allows SQLite to perform additional optimizations."
msgstr "اگر ``True`` باشد، تابع SQL ایجادشده بهعنوان `قطعی (deterministic) <https://sqlite.org/deterministic.html>`_ علامتگذاری میشود، که به SQLite امکان میدهد بهینهسازیهای بیشتری انجام دهد."
msgid "Added the *deterministic* parameter."
msgstr "پارامتر *deterministic* افزوده شد."
msgid "The first three parameters are now positional-only."
msgstr "سه پارامتر اول اکنون فقط جایگاهی هستند."
msgid "Example:"
msgstr "مثال:"
msgid ""
">>> import hashlib\n"
">>> def md5sum(t):\n"
"... return hashlib.md5(t).hexdigest()\n"
">>> con = sqlite3.connect(\":memory:\")\n"
">>> con.create_function(\"md5\", 1, md5sum)\n"
">>> for row in con.execute(\"SELECT md5(?)\", (b\"foo\",)):\n"
"... print(row)\n"
"('acbd18db4cc2f85cedef654fccc4a4d8',)\n"
">>> con.close()"
msgstr ""
">>> import hashlib\n"
">>> def md5sum(t):\n"
"... return hashlib.md5(t).hexdigest()\n"
">>> con = sqlite3.connect(\":memory:\")\n"
">>> con.create_function(\"md5\", 1, md5sum)\n"
">>> for row in con.execute(\"SELECT md5(?)\", (b\"foo\",)):\n"
"... print(row)\n"
"('acbd18db4cc2f85cedef654fccc4a4d8',)\n"
">>> con.close()"
msgid "Create or remove a user-defined SQL aggregate function."
msgstr "ایجاد یا حذف یک تابع تجمیعی SQL تعریفشده توسط کاربر."
msgid "The name of the SQL aggregate function."
msgstr "نام تابع تجمعی SQL."
msgid "The number of arguments the SQL aggregate function can accept. If ``-1``, it may take any number of arguments."
msgstr "تعداد آرگومانهایی که تابع تجمیعی SQL میتواند بپذیرد. اگر ``-1`` باشد، ممکن است هر تعداد آرگومان را بپذیرد."
msgid "A class must implement the following methods: * ``step()``: Add a row to the aggregate. * ``finalize()``: Return the final result of the aggregate as :ref:`a type natively supported by SQLite <sqlite3-types>`. The number of arguments that the ``step()`` method must accept is controlled by *n_arg*. Set to ``None`` to remove an existing SQL aggregate function."
msgstr "یک کلاس باید متدهای زیر را پیادهسازی کند: * ``step()``: یک ردیف را به تجمیع اضافه میکند. * ``finalize()``: نتیجه نهایی تجمیع را بهعنوان :ref:`نوعی که بهصورت بومی توسط SQLite پشتیبانی میشود <sqlite3-types>` برمیگرداند. تعداد آرگومانهایی که متد ``step()`` باید بپذیرد، با *n_arg* کنترل میشود. برای حذف یک تابع تجمیعی SQL موجود، آن را روی ``None`` تنظیم کنید."
msgid "A class must implement the following methods:"
msgstr "یک کلاس باید متدهای زیر را پیادهسازی کند:"
msgid "``step()``: Add a row to the aggregate."
msgstr "``step()``: یک ردیف به تجمیع اضافه میکند."
msgid "``finalize()``: Return the final result of the aggregate as :ref:`a type natively supported by SQLite <sqlite3-types>`."
msgstr "``finalize()``: نتیجه نهایی تجمیع را بهعنوان :ref:`نوعی که بهصورت بومی توسط SQLite پشتیبانی میشود <sqlite3-types>` برمیگرداند."
msgid "The number of arguments that the ``step()`` method must accept is controlled by *n_arg*."
msgstr "تعداد آرگومانهایی که متد ``step()`` باید بپذیرد، توسط *n_arg* کنترل میشود."
msgid "Set to ``None`` to remove an existing SQL aggregate function."
msgstr "برای حذف یک تابع تجمیعی SQL موجود، آن را روی ``None`` تنظیم کنید."
msgid "All three parameters are now positional-only."
msgstr "هر سه پارامتر اکنون فقط جایگاهی هستند."
msgid ""
"class MySum:\n"
" def __init__(self):\n"
" self.count = 0\n"
"\n"
" def step(self, value):\n"
" self.count += value\n"
"\n"
" def finalize(self):\n"
" return self.count\n"
"\n"
"con = sqlite3.connect(\":memory:\")\n"
"con.create_aggregate(\"mysum\", 1, MySum)\n"
"cur = con.execute(\"CREATE TABLE test(i)\")\n"
"cur.execute(\"INSERT INTO test(i) VALUES(1)\")\n"
"cur.execute(\"INSERT INTO test(i) VALUES(2)\")\n"
"cur.execute(\"SELECT mysum(i) FROM test\")\n"
"print(cur.fetchone()[0])\n"
"\n"
"con.close()"
msgstr ""
"class MySum:\n"
" def __init__(self):\n"
" self.count = 0\n"
"\n"
" def step(self, value):\n"
" self.count += value\n"
"\n"
" def finalize(self):\n"
" return self.count\n"
"\n"
"con = sqlite3.connect(\":memory:\")\n"
"con.create_aggregate(\"mysum\", 1, MySum)\n"
"cur = con.execute(\"CREATE TABLE test(i)\")\n"
"cur.execute(\"INSERT INTO test(i) VALUES(1)\")\n"
"cur.execute(\"INSERT INTO test(i) VALUES(2)\")\n"
"cur.execute(\"SELECT mysum(i) FROM test\")\n"
"print(cur.fetchone()[0])\n"
"\n"
"con.close()"
msgid "Create or remove a user-defined aggregate window function."
msgstr "ایجاد یا حذف یک تابع پنجرهای تجمیعی تعریفشده توسط کاربر."
msgid "The name of the SQL aggregate window function to create or remove."
msgstr "نام تابع پنجرهای تجمیعی SQL برای ایجاد یا حذف."
msgid "The number of arguments the SQL aggregate window function can accept. If ``-1``, it may take any number of arguments."
msgstr "تعداد آرگومانهایی که تابع تجمیعی پنجرهای SQL میتواند بپذیرد. اگر ``-1`` باشد، میتواند هر تعداد آرگومان بگیرد."
msgid "A class that must implement the following methods: * ``step()``: Add a row to the current window. * ``value()``: Return the current value of the aggregate. * ``inverse()``: Remove a row from the current window. * ``finalize()``: Return the final result of the aggregate as :ref:`a type natively supported by SQLite <sqlite3-types>`. The number of arguments that the ``step()`` and ``value()`` methods must accept is controlled by *num_params*. Set to ``None`` to remove an existing SQL aggregate window function."
msgstr "کلاسی که باید متدهای زیر را پیادهسازی کند: * ``step()``: افزودن یک ردیف به پنجره جاری. * ``value()``: برگرداندن مقدار فعلی تجمیع. * ``inverse()``: حذف یک ردیف از پنجره جاری. * ``finalize()``: برگرداندن نتیجه نهایی تجمیع بهعنوان :ref:`نوعی که SQLite بهصورت بومی از آن پشتیبانی میکند <sqlite3-types>`. تعداد آرگومانهایی که متدهای ``step()`` و ``value()`` باید بپذیرند، با *num_params* کنترل میشود. برای حذف یک تابع پنجرهای تجمیعی SQL موجود، آن را روی ``None`` تنظیم کنید."
msgid "A class that must implement the following methods:"
msgstr "کلاسی که باید متدهای زیر را پیادهسازی کند:"
msgid "``step()``: Add a row to the current window."
msgstr "``step()``: یک ردیف به پنجرهی جاری اضافه میکند."
msgid "``value()``: Return the current value of the aggregate."
msgstr "``value()``: مقدار جاری تجمعی (aggregate) را برمیگرداند."
msgid "``inverse()``: Remove a row from the current window."
msgstr "``inverse()``: یک ردیف را از پنجرهی جاری حذف میکند."
msgid "The number of arguments that the ``step()`` and ``value()`` methods must accept is controlled by *num_params*."
msgstr "تعداد آرگومانهایی که متدهای ``step()`` و ``value()`` باید بپذیرند، توسط *num_params* کنترل میشود."
msgid "Set to ``None`` to remove an existing SQL aggregate window function."
msgstr "برای حذف یک تابع پنجرهای تجمیعی SQL موجود، آن را روی ``None`` تنظیم کنید."
msgid "If used with a version of SQLite older than 3.25.0, which does not support aggregate window functions."
msgstr "اگر با نسخهای از SQLite قدیمیتر از 3.25.0 استفاده شود، که از توابع پنجرهای تجمیعی پشتیبانی نمیکند."
msgid ""
"# Example taken from https://www.sqlite.org/windowfunctions.html#udfwinfunc\n"
"class WindowSumInt:\n"
" def __init__(self):\n"
" self.count = 0\n"
"\n"
" def step(self, value):\n"
" \"\"\"Add a row to the current window.\"\"\"\n"
" self.count += value\n"
"\n"
" def value(self):\n"
" \"\"\"Return the current value of the aggregate.\"\"\"\n"
" return self.count\n"
"\n"
" def inverse(self, value):\n"
" \"\"\"Remove a row from the current window.\"\"\"\n"
" self.count -= value\n"
"\n"
" def finalize(self):\n"
" \"\"\"Return the final value of the aggregate.\n"
"\n"
" Any clean-up actions should be placed here.\n"
" \"\"\"\n"
" return self.count\n"
"\n"
"\n"
"con = sqlite3.connect(\":memory:\")\n"
"cur = con.execute(\"CREATE TABLE test(x, y)\")\n"
"values = [\n"
" (\"a\", 4),\n"
" (\"b\", 5),\n"
" (\"c\", 3),\n"
" (\"d\", 8),\n"
" (\"e\", 1),\n"
"]\n"
"cur.executemany(\"INSERT INTO test VALUES(?, ?)\", values)\n"
"con.create_window_function(\"sumint\", 1, WindowSumInt)\n"
"cur.execute(\"\"\"\n"
" SELECT x, sumint(y) OVER (\n"
" ORDER BY x ROWS BETWEEN 1 PRECEDING AND 1 FOLLOWING\n"
" ) AS sum_y\n"
" FROM test ORDER BY x\n"
"\"\"\")\n"
"print(cur.fetchall())\n"
"con.close()"
msgstr ""
"# Example taken from https://www.sqlite.org/windowfunctions.html#udfwinfunc\n"
"class WindowSumInt:\n"
" def __init__(self):\n"
" self.count = 0\n"
"\n"
" def step(self, value):\n"
" \"\"\"Add a row to the current window.\"\"\"\n"
" self.count += value\n"
"\n"
" def value(self):\n"
" \"\"\"Return the current value of the aggregate.\"\"\"\n"
" return self.count\n"
"\n"
" def inverse(self, value):\n"
" \"\"\"Remove a row from the current window.\"\"\"\n"
" self.count -= value\n"
"\n"
" def finalize(self):\n"
" \"\"\"Return the final value of the aggregate.\n"
"\n"
" Any clean-up actions should be placed here.\n"
" \"\"\"\n"
" return self.count\n"
"\n"
"\n"
"con = sqlite3.connect(\":memory:\")\n"
"cur = con.execute(\"CREATE TABLE test(x, y)\")\n"
"values = [\n"
" (\"a\", 4),\n"
" (\"b\", 5),\n"
" (\"c\", 3),\n"
" (\"d\", 8),\n"
" (\"e\", 1),\n"
"]\n"
"cur.executemany(\"INSERT INTO test VALUES(?, ?)\", values)\n"
"con.create_window_function(\"sumint\", 1, WindowSumInt)\n"
"cur.execute(\"\"\"\n"
" SELECT x, sumint(y) OVER (\n"
" ORDER BY x ROWS BETWEEN 1 PRECEDING AND 1 FOLLOWING\n"
" ) AS sum_y\n"
" FROM test ORDER BY x\n"
"\"\"\")\n"
"print(cur.fetchall())\n"
"con.close()"
msgid "Create a collation named *name* using the collating function *callable*. *callable* is passed two :class:`string <str>` arguments, and it should return an :class:`integer <int>`:"
msgstr "یک ترتیبگذاری (collation) به نام *name* با استفاده از تابع مقایسهکننده *callable* ایجاد کنید. *callable* دو آرگومان از نوع :class:`رشته <str>` دریافت میکند و باید یک :class:`عدد صحیح <int>` برگرداند:"
msgid "``1`` if the first is ordered higher than the second"
msgstr "``1`` اگر مورد اول بالاتر از مورد دوم مرتب شده باشد"
msgid "``-1`` if the first is ordered lower than the second"
msgstr "``-1`` اگر اولی از نظر ترتیب، پایینتر از دومی باشد"
msgid "``0`` if they are ordered equal"
msgstr "``0`` اگر از نظر ترتیب برابر باشند"
msgid "The following example shows a reverse sorting collation:"
msgstr "مثال زیر یک ترتیبگذاری (collation) مرتبسازی معکوس را نشان میدهد:"
msgid ""
"def collate_reverse(string1, string2):\n"
" if string1 == string2:\n"
" return 0\n"
" elif string1 < string2:\n"
" return 1\n"
" else:\n"
" return -1\n"
"\n"
"con = sqlite3.connect(\":memory:\")\n"
"con.create_collation(\"reverse\", collate_reverse)\n"
"\n"
"cur = con.execute(\"CREATE TABLE test(x)\")\n"
"cur.executemany(\"INSERT INTO test(x) VALUES(?)\", [(\"a\",), (\"b\",)])\n"
"cur.execute(\"SELECT x FROM test ORDER BY x COLLATE reverse\")\n"
"for row in cur:\n"
" print(row)\n"
"con.close()"
msgstr ""
"def collate_reverse(string1, string2):\n"
" if string1 == string2:\n"
" return 0\n"
" elif string1 < string2:\n"
" return 1\n"
" else:\n"
" return -1\n"
"\n"
"con = sqlite3.connect(\":memory:\")\n"
"con.create_collation(\"reverse\", collate_reverse)\n"
"\n"
"cur = con.execute(\"CREATE TABLE test(x)\")\n"
"cur.executemany(\"INSERT INTO test(x) VALUES(?)\", [(\"a\",), (\"b\",)])\n"
"cur.execute(\"SELECT x FROM test ORDER BY x COLLATE reverse\")\n"
"for row in cur:\n"
" print(row)\n"
"con.close()"
msgid "Remove a collation function by setting *callable* to ``None``."
msgstr "برای حذف یک تابع ترتیبگذاری (collation)، *callable* را روی ``None`` تنظیم کنید."
msgid "The collation name can contain any Unicode character. Earlier, only ASCII characters were allowed."
msgstr "نام ترتیبگذاری (collation) میتواند شامل هر نویسهای از Unicode باشد. پیشتر، فقط نویسههای ASCII مجاز بودند."
msgid "Call this method from a different thread to abort any queries that might be executing on the connection. Aborted queries will raise an :exc:`OperationalError`."
msgstr "این متد را از یک نخ دیگر فراخوانی کنید تا هر پرسوجویی که ممکن است روی اتصال در حال اجرا باشد، لغو شود. پرسوجوهای لغوشده یک :exc:`OperationalError` پرتاب خواهند کرد."
msgid "Register :term:`callable` *authorizer_callback* to be invoked for each attempt to access a column of a table in the database. The callback should return one of :const:`SQLITE_OK`, :const:`SQLITE_DENY`, or :const:`SQLITE_IGNORE` to signal how access to the column should be handled by the underlying SQLite library."
msgstr "*authorizer_callback*، یک :term:`فراخوانیپذیر <callable>`، را ثبت کنید تا برای هر تلاش برای دسترسی به یک ستون از یک جدول در پایگاه داده فراخوانی شود. این کالبک باید یکی از :const:`SQLITE_OK`، :const:`SQLITE_DENY` یا :const:`SQLITE_IGNORE` را برگرداند تا مشخص کند دسترسی به ستون باید توسط کتابخانه زیربنایی SQLite چگونه مدیریت شود."
msgid "The first argument to the callback signifies what kind of operation is to be authorized. The second and third argument will be arguments or ``None`` depending on the first argument. The 4th argument is the name of the database (\"main\", \"temp\", etc.) if applicable. The 5th argument is the name of the inner-most trigger or view that is responsible for the access attempt or ``None`` if this access attempt is directly from input SQL code."
msgstr "نخستین آرگومان کالبک نشان میدهد که چه نوع عملیاتی باید مجاز شود. آرگومان دوم و سوم، بسته به آرگومان نخست، یا آرگومانهایی خواهند بود یا ``None``. آرگومان چهارم در صورت لزوم، نام پایگاه داده (\"main\"، \"temp\" و غیره) است. آرگومان پنجم نام درونیترین تریگر یا ویویی است که مسئول تلاش برای دسترسی است، یا ``None`` اگر این تلاش برای دسترسی مستقیماً از کد SQL ورودی باشد."
msgid "Please consult the SQLite documentation about the possible values for the first argument and the meaning of the second and third argument depending on the first one. All necessary constants are available in the :mod:`!sqlite3` module."
msgstr "لطفاً مستندات SQLite را دربارهی مقادیر ممکن برای آرگومان اول و معنی آرگومان دوم و سوم، بسته به آرگومان اول، ببینید. همهی ثابتهای مورد نیاز در ماژول :mod:`!sqlite3` در دسترس هستند."
msgid "Passing ``None`` as *authorizer_callback* will disable the authorizer."
msgstr "با ارسال ``None`` بهعنوان *authorizer_callback*، تأییدکنندهی دسترسی غیرفعال میشود."
msgid "Added support for disabling the authorizer using ``None``."
msgstr "پشتیبانی از غیرفعالسازی مجوزدهنده (authorizer) با استفاده از ``None`` افزوده شد."
msgid "The only parameter is now positional-only."
msgstr "تنها پارامتر اکنون فقط جایگاهی است."
msgid "Register :term:`callable` *progress_handler* to be invoked for every *n* instructions of the SQLite virtual machine. This is useful if you want to get called from SQLite during long-running operations, for example to update a GUI."
msgstr ":term:`callable` *progress_handler* را ثبت کنید تا به ازای هر *n* دستورالعملِ ماشین مجازی SQLite فراخوانی شود. این قابلیت زمانی مفید است که بخواهید در حین عملیاتهای طولانیمدت از SQLite فراخوانی شوید، برای مثال برای بهروزرسانی رابط کاربری گرافیکی (GUI)."
msgid "If you want to clear any previously installed progress handler, call the method with ``None`` for *progress_handler*."
msgstr "اگر میخواهید هر مدیر پیشرفت (progress handler) نصبشدهی قبلی را پاک کنید، متد را با ``None`` برای *progress_handler* فراخوانی کنید."
msgid "Returning a non-zero value from the handler function will terminate the currently executing query and cause it to raise a :exc:`DatabaseError` exception."
msgstr "بازگرداندن یک مقدار غیرصفر از تابع هندلر، پرسوجوی در حال اجرا را خاتمه میدهد و باعث میشود که یک استثنا :exc:`DatabaseError` پرتاب شود."
msgid "The first parameter is now positional-only."
msgstr "پارامتر اول اکنون فقط جایگاهی است."
msgid "Register :term:`callable` *trace_callback* to be invoked for each SQL statement that is actually executed by the SQLite backend."
msgstr "یک :term:`callable` به نام *trace_callback* را ثبت کنید تا برای هر دستور SQL که بهطور واقعی توسط بکاند SQLite اجرا میشود، فراخوانی شود."
msgid "The only argument passed to the callback is the statement (as :class:`str`) that is being executed. The return value of the callback is ignored. Note that the backend does not only run statements passed to the :meth:`Cursor.execute` methods. Other sources include the :ref:`transaction management <sqlite3-controlling-transactions>` of the :mod:`!sqlite3` module and the execution of triggers defined in the current database."
msgstr "تنها آرگومانی که به کالبک داده میشود، دستور در حال اجرا (بهصورت :class:`str`) است. مقدار بازگشتی کالبک نادیده گرفته میشود. توجه داشته باشید که بکاند تنها دستورهایی را که به متدهای :meth:`Cursor.execute` دادهشدهاند، اجرا نمیکند. منابع دیگر شامل :ref:`مدیریت تراکنش <sqlite3-controlling-transactions>` ماژول :mod:`!sqlite3` و اجرای ماشههای تعریفشده در پایگاه دادهی جاری هستند."
msgid "Passing ``None`` as *trace_callback* will disable the trace callback."
msgstr "با ارسال ``None`` بهعنوان *trace_callback*، کالبک ردگیری غیرفعال میشود."
msgid "Exceptions raised in the trace callback are not propagated. As a development and debugging aid, use :meth:`~sqlite3.enable_callback_tracebacks` to enable printing tracebacks from exceptions raised in the trace callback."
msgstr "استثناهای پرتابشده در کالبک ردگیری منتشر نمیشوند. بهعنوان کمکی برای توسعه و اشکالزدایی، از :meth:`~sqlite3.enable_callback_tracebacks` برای فعال کردن چاپ ردگیریهای پشتهی استثناهای پرتابشده در کالبک ردگیری استفاده کنید."
msgid "Enable the SQLite engine to load SQLite extensions from shared libraries if *enabled* is ``True``; else, disallow loading SQLite extensions. SQLite extensions can define new functions, aggregates or whole new virtual table implementations. One well-known extension is the fulltext-search extension distributed with SQLite."
msgstr "اگر *enabled* برابر ``True`` باشد، به موتور SQLite اجازه میدهد تا افزونههای SQLite را از کتابخانههای مشترک بارگذاری کند؛ در غیر این صورت، بارگذاری افزونههای SQLite را مجاز نمیداند. افزونههای SQLite میتوانند توابع جدید، تجمیعها یا پیادهسازیهای کاملاً جدید جدول مجازی را تعریف کنند. یکی از افزونههای شناختهشده، افزونه جستجوی تماممتنی (fulltext-search) است که همراه SQLite توزیع شده است."
msgid "The :mod:`!sqlite3` module is not built with loadable extension support by default, because some platforms (notably macOS) have SQLite libraries which are compiled without this feature. To get loadable extension support, you must pass the :option:`--enable-loadable-sqlite-extensions` option to :program:`configure`."
msgstr "ماژول :mod:`!sqlite3` بهطور پیشفرض با پشتیبانی از افزونههای قابل بارگذاری ساخته نمیشود، زیرا برخی سکوها (بهویژه macOS) کتابخانههای SQLite دارند که بدون این قابلیت کامپایل شدهاند. برای بهرهمندی از پشتیبانی از افزونههای قابل بارگذاری، باید گزینهی :option:`--enable-loadable-sqlite-extensions` را به :program:`configure` بدهید."
msgid "Raises an :ref:`auditing event <auditing>` ``sqlite3.enable_load_extension`` with arguments ``connection``, ``enabled``."
msgstr "یک :ref:`رویداد حسابرسی <auditing>` ``sqlite3.enable_load_extension`` را با آرگومانهای ``connection`` و ``enabled`` پرتاب میکند."
msgid "Added the ``sqlite3.enable_load_extension`` auditing event."
msgstr "رویداد حسابرسی ``sqlite3.enable_load_extension`` اضافه شد."
msgid ""
"con.enable_load_extension(True)\n"
"\n"
"# Load the fulltext search extension\n"
"con.execute(\"select load_extension('./fts3.so')\")\n"
"\n"
"# alternatively you can load the extension using an API call:\n"
"# con.load_extension(\"./fts3.so\")\n"
"\n"
"# disable extension loading again\n"
"con.enable_load_extension(False)\n"
"\n"
"# example from SQLite wiki\n"
"con.execute(\"CREATE VIRTUAL TABLE recipe USING fts3(name, ingredients)\")\n"
"con.executescript(\"\"\"\n"
" INSERT INTO recipe (name, ingredients) VALUES('broccoli stew', 'broccoli peppers cheese tomatoes');\n"
" INSERT INTO recipe (name, ingredients) VALUES('pumpkin stew', 'pumpkin onions garlic celery');\n"
" INSERT INTO recipe (name, ingredients) VALUES('broccoli pie', 'broccoli cheese onions flour');\n"
" INSERT INTO recipe (name, ingredients) VALUES('pumpkin pie', 'pumpkin sugar flour butter');\n"
" \"\"\")\n"
"for row in con.execute(\"SELECT rowid, name, ingredients FROM recipe WHERE name MATCH 'pie'\"):\n"
" print(row)"
msgstr ""
"con.enable_load_extension(True)\n"
"\n"
"# Load the fulltext search extension\n"
"con.execute(\"select load_extension('./fts3.so')\")\n"
"\n"
"# alternatively you can load the extension using an API call:\n"
"# con.load_extension(\"./fts3.so\")\n"
"\n"
"# disable extension loading again\n"
"con.enable_load_extension(False)\n"
"\n"
"# example from SQLite wiki\n"
"con.execute(\"CREATE VIRTUAL TABLE recipe USING fts3(name, ingredients)\")\n"
"con.executescript(\"\"\"\n"
" INSERT INTO recipe (name, ingredients) VALUES('broccoli stew', 'broccoli peppers cheese tomatoes');\n"
" INSERT INTO recipe (name, ingredients) VALUES('pumpkin stew', 'pumpkin onions garlic celery');\n"
" INSERT INTO recipe (name, ingredients) VALUES('broccoli pie', 'broccoli cheese onions flour');\n"
" INSERT INTO recipe (name, ingredients) VALUES('pumpkin pie', 'pumpkin sugar flour butter');\n"
" \"\"\")\n"
"for row in con.execute(\"SELECT rowid, name, ingredients FROM recipe WHERE name MATCH 'pie'\"):\n"
" print(row)"
msgid "Load an SQLite extension from a shared library. Enable extension loading with :meth:`enable_load_extension` before calling this method."
msgstr "یک افزونهی SQLite را از یک کتابخانه مشترک بارگذاری کنید. پیش از فراخوانی این متد، بارگذاری افزونه را با :meth:`enable_load_extension` فعال کنید."
msgid "The path to the SQLite extension."
msgstr "مسیر افزونهی SQLite."
msgid "Entry point name. If ``None`` (the default), SQLite will come up with an entry point name of its own; see the SQLite docs `Loading an Extension`_ for details."
msgstr "نام نقطه ورود. اگر ``None`` (پیشفرض) باشد، SQLite نام نقطه ورود خاص خود را انتخاب میکند؛ برای جزئیات، مستندات SQLite با عنوان `Loading an Extension`_ را ببینید."
msgid "Raises an :ref:`auditing event <auditing>` ``sqlite3.load_extension`` with arguments ``connection``, ``path``."
msgstr "یک :ref:`رویداد حسابرسی <auditing>` ``sqlite3.load_extension`` را با آرگومانهای ``connection`` و ``path`` پرتاب میکند."
msgid "Added the ``sqlite3.load_extension`` auditing event."
msgstr "رویداد حسابرسی ``sqlite3.load_extension`` افزوده شد."
msgid "Added the *entrypoint* parameter."
msgstr "پارامتر *entrypoint* اضافه شد."
msgid "Return an :term:`iterator` to dump the database as SQL source code. Useful when saving an in-memory database for later restoration. Similar to the ``.dump`` command in the :program:`sqlite3` shell."
msgstr "یک :term:`iterator` برای برونریزی پایگاه داده بهصورت کد منبع SQL برمیگرداند. هنگام ذخیرهی یک پایگاه دادهی درونحافظهای برای بازیابی بعدی مفید است. مشابه دستور ``.dump`` در پوستهی :program:`sqlite3` است."
msgid "An optional ``LIKE`` pattern for database objects to dump, e.g. ``prefix_%``. If ``None`` (the default), all database objects will be included."
msgstr "یک الگوی ``LIKE`` اختیاری برای اشیای پایگاه دادهای که باید برونریزی شوند، بهعنوان مثال ``prefix_%``. اگر ``None`` (پیشفرض) باشد، تمام اشیای پایگاه داده گنجانده میشوند."
msgid ""
"# Convert file example.db to SQL dump file dump.sql\n"
"con = sqlite3.connect('example.db')\n"
"with open('dump.sql', 'w') as f:\n"
" for line in con.iterdump():\n"
" f.write('%s\\n' % line)\n"
"con.close()"
msgstr ""