Skip to content

Commit caa3611

Browse files
committed
60%: Objetos de la clase cursor: execute, executemany, executescript, fetchone, fetchmany, fetchall, close, rowcount, lastrowid, arraysize, description, connection
1 parent 366e9ee commit caa3611

File tree

1 file changed

+65
-6
lines changed

1 file changed

+65
-6
lines changed

library/sqlite3.po

Lines changed: 65 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgstr ""
1111
"Project-Id-Version: Python 3.8\n"
1212
"Report-Msgid-Bugs-To: \n"
1313
"POT-Creation-Date: 2020-05-05 12:54+0200\n"
14-
"PO-Revision-Date: 2020-10-04 20:18-0500\n"
14+
"PO-Revision-Date: 2020-10-06 09:54-0500\n"
1515
"Language-Team: python-doc-es\n"
1616
"MIME-Version: 1.0\n"
1717
"Content-Type: text/plain; charset=UTF-8\n"
@@ -858,7 +858,7 @@ msgid ""
858858
"parameter and returns the resulting object."
859859
msgstr ""
860860
"También se puede configurar a cualquier otro *callable* que acepte un único "
861-
"parámetro *bytestring* y retorne el objeto resultante"
861+
"parámetro *bytestring* y retorne el objeto resultante."
862862

863863
#: ../Doc/library/sqlite3.rst:516
864864
msgid "See the following example code for illustration:"
@@ -1004,33 +1004,44 @@ msgid ""
10041004
"the sequence *seq_of_parameters*. The :mod:`sqlite3` module also allows "
10051005
"using an :term:`iterator` yielding parameters instead of a sequence."
10061006
msgstr ""
1007+
"Ejecuta un comando SQL contra todas las secuencias de parámetros o mapeos "
1008+
"encontrados en la secuencia *seq_of_parameters*. El módulo también permite "
1009+
"usar un :term:`iterator` produciendo parámetros en lugar de una secuencia."
10071010

10081011
#: ../Doc/library/sqlite3.rst:636
10091012
msgid "Here's a shorter example using a :term:`generator`:"
1010-
msgstr ""
1013+
msgstr "Acá un corto ejemplo usando un :term:`generator`:"
10111014

10121015
#: ../Doc/library/sqlite3.rst:643
10131016
msgid ""
10141017
"This is a nonstandard convenience method for executing multiple SQL "
10151018
"statements at once. It issues a ``COMMIT`` statement first, then executes "
10161019
"the SQL script it gets as a parameter."
10171020
msgstr ""
1021+
"Este es un conveniente método no estándar para ejecutar múltiples sentencias "
1022+
"SQL de una vez. Emite una sentencia ``COMMIT`` primero, luego ejecuta el "
1023+
"script SQL obtenido como parámetro."
10181024

10191025
#: ../Doc/library/sqlite3.rst:647
10201026
msgid "*sql_script* can be an instance of :class:`str`."
1021-
msgstr ""
1027+
msgstr "*sql_script* puede ser una instancia de :class:`str`."
10221028

10231029
#: ../Doc/library/sqlite3.rst:656
10241030
msgid ""
10251031
"Fetches the next row of a query result set, returning a single sequence, or :"
10261032
"const:`None` when no more data is available."
10271033
msgstr ""
1034+
"Obtiene la siguiente fila de un conjunto resultado, retorna una única "
1035+
"secuencia, o :const:`None` cuando no hay más datos disponibles."
10281036

10291037
#: ../Doc/library/sqlite3.rst:662
10301038
msgid ""
10311039
"Fetches the next set of rows of a query result, returning a list. An empty "
10321040
"list is returned when no more rows are available."
10331041
msgstr ""
1042+
"Obtiene el siguiente conjunto de filas del resultado de una consulta, "
1043+
"retornando una lista. Una lista vacía es retornada cuando no hay más filas "
1044+
"disponibles."
10341045

10351046
#: ../Doc/library/sqlite3.rst:665
10361047
msgid ""
@@ -1040,6 +1051,12 @@ msgid ""
10401051
"size parameter. If this is not possible due to the specified number of rows "
10411052
"not being available, fewer rows may be returned."
10421053
msgstr ""
1054+
"El número de filas a obtener por llamado es especificado por el parámetro "
1055+
"*size*. Si no es suministrado, el *arraysize* del cursor determina el número "
1056+
"de filas a obtener. El método debería intentar obtener tantas filas como las "
1057+
"indicadas por el parámetro *size*. Si esto no es posible debido a que el "
1058+
"número especificado de filas no está disponible, entonces menos filas "
1059+
"deberán ser retornadas."
10431060

10441061
#: ../Doc/library/sqlite3.rst:671
10451062
msgid ""
@@ -1048,37 +1065,52 @@ msgid ""
10481065
"attribute. If the *size* parameter is used, then it is best for it to retain "
10491066
"the same value from one :meth:`fetchmany` call to the next."
10501067
msgstr ""
1068+
"Nótese que hay consideraciones de desempeño involucradas con el parámetro "
1069+
"*size*. Para un optimo desempeño, es usualmente mejor usar el atributo "
1070+
"*arraysize*. Si el parámetro *size* es usado, entonces es mejor retener el "
1071+
"mismo valor de una llamada :meth:`fetchmany` a la siguiente."
10511072

10521073
#: ../Doc/library/sqlite3.rst:678
10531074
msgid ""
10541075
"Fetches all (remaining) rows of a query result, returning a list. Note that "
10551076
"the cursor's arraysize attribute can affect the performance of this "
10561077
"operation. An empty list is returned when no rows are available."
10571078
msgstr ""
1079+
"Obtiene todas las filas (restantes) del resultado de una consulta. Nótese "
1080+
"que el atributo *arraysize* del cursor puede afectar el desempeño de esta "
1081+
"operación. Una lista vacía será retornada cuando no hay filas disponibles."
10581082

10591083
#: ../Doc/library/sqlite3.rst:684
10601084
msgid "Close the cursor now (rather than whenever ``__del__`` is called)."
1061-
msgstr ""
1085+
msgstr "Cierra el cursor ahora (en lugar que cuando ``__del__`` es llamado)"
10621086

10631087
#: ../Doc/library/sqlite3.rst:686
10641088
msgid ""
10651089
"The cursor will be unusable from this point forward; a :exc:"
10661090
"`ProgrammingError` exception will be raised if any operation is attempted "
10671091
"with the cursor."
10681092
msgstr ""
1093+
"El cursor no será usable de este punto en adelante; una exepción :exc:"
1094+
"`ProgrammingError` será lanzada si se intenta cualquier operación con el "
1095+
"cursor."
10691096

10701097
#: ../Doc/library/sqlite3.rst:691
10711098
msgid ""
10721099
"Although the :class:`Cursor` class of the :mod:`sqlite3` module implements "
10731100
"this attribute, the database engine's own support for the determination of "
10741101
"\"rows affected\"/\"rows selected\" is quirky."
10751102
msgstr ""
1103+
"A pesar de que la clase :class:`Cursor` del módulo :mod:`sqlite3` implementa "
1104+
"este atributo, el propio soporte del motor de base de datos para la "
1105+
"determinación de \"filas afectadas\"/\"filas seleccionadas\" es raro."
10761106

10771107
#: ../Doc/library/sqlite3.rst:695
10781108
msgid ""
10791109
"For :meth:`executemany` statements, the number of modifications are summed "
10801110
"up into :attr:`rowcount`."
10811111
msgstr ""
1112+
"Para sentencias :meth:`executemany`, el número de modificaciones se resumen "
1113+
"en :attr:`rowcount`."
10821114

10831115
#: ../Doc/library/sqlite3.rst:698
10841116
msgid ""
@@ -1088,12 +1120,20 @@ msgid ""
10881120
"includes ``SELECT`` statements because we cannot determine the number of "
10891121
"rows a query produced until all rows were fetched."
10901122
msgstr ""
1123+
"Cómo lo requiere la especificación Python DB API, el atributo :attr:"
1124+
"`rowcount` \"es -1 en caso de que ``executeXX()`` no haya sido ejecutada en "
1125+
"el cursor o en el *rowcount* de la última operación no haya sido determinada "
1126+
"por la interface\". Esto incluye sentencias ``SELECT`` porque no podemos "
1127+
"determinar el número de filas que una consulta produce hasta que todas las "
1128+
"filas sean obtenidas."
10911129

10921130
#: ../Doc/library/sqlite3.rst:704
10931131
msgid ""
10941132
"With SQLite versions before 3.6.5, :attr:`rowcount` is set to 0 if you make "
10951133
"a ``DELETE FROM table`` without any condition."
10961134
msgstr ""
1135+
"Con versiones de SQLite anteriores a 3.6.5, :attr:`rowcount` es configurado "
1136+
"a 0 si se hace un ``DELETE FROM table`` sin ninguna condición."
10971137

10981138
#: ../Doc/library/sqlite3.rst:709
10991139
msgid ""
@@ -1103,34 +1143,49 @@ msgid ""
11031143
"or when :meth:`executemany` is called, :attr:`lastrowid` is set to :const:"
11041144
"`None`."
11051145
msgstr ""
1146+
"Este atributo de solo lectura provee el *rowid* de la última fila "
1147+
"modificada. Solo se configura si se emite una sentencia ``INSERT`` o "
1148+
"``REPLACE`` usando el método :meth:`execute`. Para otras operaciones "
1149+
"diferentes a ``INSERT`` o ``REPLACE`` o cuando :meth:`executemany` es "
1150+
"llamado, attr:`lastrowid` es configurado a :const:`None`."
11061151

11071152
#: ../Doc/library/sqlite3.rst:715
11081153
msgid ""
11091154
"If the ``INSERT`` or ``REPLACE`` statement failed to insert the previous "
11101155
"successful rowid is returned."
11111156
msgstr ""
1157+
"Si la sentencia ``INSERT`` o ``REPLACE`` no se pudo insertar, se retorna el "
1158+
"anterior *rowid* exitoso."
11121159

11131160
#: ../Doc/library/sqlite3.rst:718
11141161
msgid "Added support for the ``REPLACE`` statement."
1115-
msgstr ""
1162+
msgstr "Se agregó soporte para sentencias ``REPLACE``."
11161163

11171164
#: ../Doc/library/sqlite3.rst:723
11181165
msgid ""
11191166
"Read/write attribute that controls the number of rows returned by :meth:"
11201167
"`fetchmany`. The default value is 1 which means a single row would be "
11211168
"fetched per call."
11221169
msgstr ""
1170+
"Atributo de lectura/escritura que controla el número de filas retornadas "
1171+
"por :meth:`fetchmany`. El valor por defecto es 1, lo cual significa que una "
1172+
"única fila será obtenida por llamada."
11231173

11241174
#: ../Doc/library/sqlite3.rst:728
11251175
msgid ""
11261176
"This read-only attribute provides the column names of the last query. To "
11271177
"remain compatible with the Python DB API, it returns a 7-tuple for each "
11281178
"column where the last six items of each tuple are :const:`None`."
11291179
msgstr ""
1180+
"Este atributo de solo lectura provee el nombre de las columnas de la última "
1181+
"consulta. Para ser compatible con *Python DB API*, retorna una 7-tupla para "
1182+
"cada columna en donde los últimos seis ítems de cada tupla son :const:`None`."
11301183

11311184
#: ../Doc/library/sqlite3.rst:732
11321185
msgid "It is set for ``SELECT`` statements without any matching rows as well."
11331186
msgstr ""
1187+
"También es configurado para sentencias ``SELECT`` sin ninguna fila "
1188+
"coincidente."
11341189

11351190
#: ../Doc/library/sqlite3.rst:736
11361191
msgid ""
@@ -1139,6 +1194,10 @@ msgid ""
11391194
"calling :meth:`con.cursor() <Connection.cursor>` will have a :attr:"
11401195
"`connection` attribute that refers to *con*::"
11411196
msgstr ""
1197+
"Este atributo de solo lectura provee la :class:`Connection` de la base de "
1198+
"datos SQLite usada por el objeto :class:`Cursor`. Un objeto :class:`Cursor` "
1199+
"creado por la llamada de :meth:`con.cursor() <Connection.cursor>` tendrá un "
1200+
"atributo :attr:`connection` que se fiere a *con*::"
11421201

11431202
#: ../Doc/library/sqlite3.rst:749
11441203
msgid "Row Objects"

0 commit comments

Comments
 (0)