Files
myrag/__marimo__/session/crud interactivo.py.json
T

359 lines
21 KiB
JSON

{
"version": "1",
"metadata": {
"marimo_version": "0.15.5"
},
"cells": [
{
"id": "Hbol",
"code_hash": "1d0db38904205bec4d6f6f6a1f6cec3e",
"outputs": [
{
"type": "data",
"data": {
"text/plain": ""
}
}
],
"console": []
},
{
"id": "MJUe",
"code_hash": "a140d2922a2ce53cb099f6bde8d0809d",
"outputs": [
{
"type": "data",
"data": {
"text/plain": ""
}
}
],
"console": []
},
{
"id": "vblA",
"code_hash": "fc11529c9e3d0dc8f21af0544866b1d9",
"outputs": [
{
"type": "data",
"data": {
"text/html": "<marimo-ui-element object-id='vblA-0' random-id='c861c370-36b6-04eb-a3d6-06f105a64396'><marimo-dropdown data-initial-value='[&quot;nota&quot;]' data-label='&quot;&lt;span class=&#92;&quot;markdown prose dark:prose-invert&#92;&quot;&gt;&lt;span class=&#92;&quot;paragraph&#92;&quot;&gt;Selecciona una tabla&lt;/span&gt;&lt;/span&gt;&quot;' data-options='[&quot;nota&quot;,&quot;prueba_simple&quot;]' data-allow-select-none='false' data-searchable='false' data-full-width='false'></marimo-dropdown></marimo-ui-element>"
}
}
],
"console": []
},
{
"id": "bkHC",
"code_hash": "a47ac438791b89042e2abdbc7cf12608",
"outputs": [
{
"type": "data",
"data": {
"text/html": "<span class=\"markdown prose dark:prose-invert\"><h2 id=\"leer-datos\">Leer Datos</h2></span>"
}
}
],
"console": []
},
{
"id": "lEQa",
"code_hash": "d6d9505cb9812d5cf8ac2c50adca02dd",
"outputs": [
{
"type": "data",
"data": {
"text/html": "<marimo-ui-element object-id='lEQa-0' random-id='dcb09e0f-a0fa-af56-5e10-12cfe075373c'><marimo-table data-initial-value='[]' data-label='null' data-data='&quot;[]&quot;' data-total-rows='0' data-total-columns='14' data-max-columns='50' data-banner-text='&quot;&quot;' data-pagination='false' data-page-size='10' data-field-types='[[&quot;titulo&quot;,[&quot;string&quot;,&quot;object&quot;]],[&quot;contenido&quot;,[&quot;string&quot;,&quot;object&quot;]],[&quot;embedder&quot;,[&quot;string&quot;,&quot;object&quot;]],[&quot;tags&quot;,[&quot;string&quot;,&quot;object&quot;]],[&quot;relaciones&quot;,[&quot;string&quot;,&quot;object&quot;]],[&quot;propiedades&quot;,[&quot;string&quot;,&quot;object&quot;]],[&quot;id&quot;,[&quot;string&quot;,&quot;object&quot;]],[&quot;sys_created_at&quot;,[&quot;string&quot;,&quot;object&quot;]],[&quot;sys_created_by&quot;,[&quot;string&quot;,&quot;object&quot;]],[&quot;sys_updated_at&quot;,[&quot;string&quot;,&quot;object&quot;]],[&quot;sys_updated_by&quot;,[&quot;string&quot;,&quot;object&quot;]],[&quot;sys_version&quot;,[&quot;string&quot;,&quot;object&quot;]],[&quot;sys_notes&quot;,[&quot;string&quot;,&quot;object&quot;]],[&quot;sys_deleted_at&quot;,[&quot;string&quot;,&quot;object&quot;]]]' data-selection='&quot;multi&quot;' data-show-filters='true' data-show-download='true' data-show-column-summaries='false' data-show-data-types='true' data-show-page-size-selector='false' data-show-column-explorer='true' data-show-chart-builder='true' data-row-headers='[]' data-has-stable-row-id='true' data-lazy='false' data-preload='false'></marimo-table></marimo-ui-element>"
}
}
],
"console": []
},
{
"id": "PKri",
"code_hash": "efee8978c4cc896329f5d545979e1cae",
"outputs": [
{
"type": "data",
"data": {
"text/html": "<div style='display: flex;flex: 1;flex-direction: row;justify-content: space-between;align-items: normal;flex-wrap: nowrap;gap: 0.5rem'><marimo-ui-element object-id='PKri-0' random-id='69fecbc2-934e-c429-98c5-6fdf1b97f10d'><marimo-number data-initial-value='1' data-label='&quot;&lt;span class=&#92;&quot;markdown prose dark:prose-invert&#92;&quot;&gt;&lt;span class=&#92;&quot;paragraph&#92;&quot;&gt;ID a recuperar&lt;/span&gt;&lt;/span&gt;&quot;' data-debounce='false' data-full-width='false' data-disabled='false'></marimo-number></marimo-ui-element><marimo-ui-element object-id='PKri-1' random-id='d546b821-73ee-b36e-3541-58b977adc173'><marimo-button data-initial-value='0' data-label='&quot;&lt;span class=&#92;&quot;markdown prose dark:prose-invert&#92;&quot;&gt;&lt;span class=&#92;&quot;paragraph&#92;&quot;&gt;Recuperar objeto&lt;/span&gt;&lt;/span&gt;&quot;' data-kind='&quot;neutral&quot;' data-disabled='false' data-full-width='false'></marimo-button></marimo-ui-element></div>"
}
}
],
"console": []
},
{
"id": "Xref",
"code_hash": "dbd655fa8172a7a0bdc15d8136654a54",
"outputs": [
{
"type": "data",
"data": {
"text/html": "<div style='display: flex;flex: 1;flex-direction: column;justify-content: flex-start;align-items: normal;flex-wrap: nowrap;gap: 0.5rem'><span class=\"markdown prose dark:prose-invert\"><span class=\"paragraph\"><strong>Estado:</strong> \u2139\ufe0f Introduce un ID y pulsa <em>Recuperar</em>.</span></span><div style='border-radius: 6px; overflow: hidden; background-color: var(--slate-1); display: inline-block; min-width: 0; max-width: 100%;'><div style='padding: 10px 12px 8px 12px; display: flex; align-items: center;'><span style='background-color: var(--crimson-3); color: var(--crimson-11);padding: 2px 8px; border-radius: 4px; font-family: monospace; font-size: 0.75rem; font-weight: 600; margin-right: 8px; display: inline-block;'>instance</span><span style='font-family: monospace; font-size: 0.875rem; color: var(--slate-12);'>builtins.NoneType</span></div><div style='height: 1px; background-color: var(--slate-3); margin: 0 12px 8px 12px;'></div><div style='background-color: var(--background); border: 1px solid var(--slate-3); border-radius: 4px; padding: 8px 10px; margin: 0 12px 8px 12px; overflow-x: auto; overflow-y: hidden;'><span>None</span></div></div></div>"
}
}
],
"console": []
},
{
"id": "SFPL",
"code_hash": "afa3b5e8e9cb8430be7308e6277f262f",
"outputs": [
{
"type": "data",
"data": {
"text/html": "<span class=\"markdown prose dark:prose-invert\"><h2 id=\"crear-datos\">Crear datos</h2></span>"
}
}
],
"console": []
},
{
"id": "BYtC",
"code_hash": "bb06bed12045257025c88f5965778806",
"outputs": [
{
"type": "data",
"data": {
"text/plain": ""
}
}
],
"console": []
},
{
"id": "RGSE",
"code_hash": "091792b8fca71a2927f9fd134032d180",
"outputs": [
{
"type": "data",
"data": {
"text/html": "<div style='display: flex;flex: 1;flex-direction: column;justify-content: flex-start;align-items: normal;flex-wrap: nowrap;gap: 0.5rem'><marimo-ui-element object-id='RGSE-0' random-id='d81572e7-d6ef-d09f-0bc5-39ce8dc23108'><marimo-text data-initial-value='&quot;&quot;' data-label='&quot;&lt;span class=&#92;&quot;markdown prose dark:prose-invert&#92;&quot;&gt;&lt;span class=&#92;&quot;paragraph&#92;&quot;&gt;titulo&lt;/span&gt;&lt;/span&gt;&quot;' data-placeholder='&quot;&quot;' data-kind='&quot;text&quot;' data-full-width='false' data-disabled='false' data-debounce='true'></marimo-text></marimo-ui-element><marimo-ui-element object-id='RGSE-1' random-id='0a3bce1c-03ba-c0f4-a10b-2b1e60ef3ca9'><marimo-text data-initial-value='&quot;&quot;' data-label='&quot;&lt;span class=&#92;&quot;markdown prose dark:prose-invert&#92;&quot;&gt;&lt;span class=&#92;&quot;paragraph&#92;&quot;&gt;contenido&lt;/span&gt;&lt;/span&gt;&quot;' data-placeholder='&quot;&quot;' data-kind='&quot;text&quot;' data-full-width='false' data-disabled='false' data-debounce='true'></marimo-text></marimo-ui-element><marimo-ui-element object-id='RGSE-2' random-id='b0166af8-382a-621d-999b-8477a6589cd5'><marimo-text data-initial-value='&quot;&quot;' data-label='&quot;&lt;span class=&#92;&quot;markdown prose dark:prose-invert&#92;&quot;&gt;&lt;span class=&#92;&quot;paragraph&#92;&quot;&gt;embedder&lt;/span&gt;&lt;/span&gt;&quot;' data-placeholder='&quot;&quot;' data-kind='&quot;text&quot;' data-full-width='false' data-disabled='false' data-debounce='true'></marimo-text></marimo-ui-element><marimo-ui-element object-id='RGSE-3' random-id='a3112d4f-a1b3-b4e5-20cf-b0f66ae97dfa'><marimo-text data-initial-value='&quot;&quot;' data-label='&quot;&lt;span class=&#92;&quot;markdown prose dark:prose-invert&#92;&quot;&gt;&lt;span class=&#92;&quot;paragraph&#92;&quot;&gt;tags&lt;/span&gt;&lt;/span&gt;&quot;' data-placeholder='&quot;&quot;' data-kind='&quot;text&quot;' data-full-width='false' data-disabled='false' data-debounce='true'></marimo-text></marimo-ui-element><marimo-ui-element object-id='RGSE-4' random-id='f45cc46c-7291-e545-5555-3f7e185444e3'><marimo-text data-initial-value='&quot;&quot;' data-label='&quot;&lt;span class=&#92;&quot;markdown prose dark:prose-invert&#92;&quot;&gt;&lt;span class=&#92;&quot;paragraph&#92;&quot;&gt;relaciones&lt;/span&gt;&lt;/span&gt;&quot;' data-placeholder='&quot;&quot;' data-kind='&quot;text&quot;' data-full-width='false' data-disabled='false' data-debounce='true'></marimo-text></marimo-ui-element><marimo-ui-element object-id='RGSE-5' random-id='f7a04960-08c6-eb37-4aef-f53bf76bf476'><marimo-text data-initial-value='&quot;&quot;' data-label='&quot;&lt;span class=&#92;&quot;markdown prose dark:prose-invert&#92;&quot;&gt;&lt;span class=&#92;&quot;paragraph&#92;&quot;&gt;propiedades&lt;/span&gt;&lt;/span&gt;&quot;' data-placeholder='&quot;&quot;' data-kind='&quot;text&quot;' data-full-width='false' data-disabled='false' data-debounce='true'></marimo-text></marimo-ui-element><marimo-ui-element object-id='RGSE-6' random-id='a9bcb810-83d7-a331-441c-156479ab8cd4'><marimo-button data-initial-value='0' data-label='&quot;&lt;span class=&#92;&quot;markdown prose dark:prose-invert&#92;&quot;&gt;&lt;span class=&#92;&quot;paragraph&#92;&quot;&gt;Agregar fila a nota&lt;/span&gt;&lt;/span&gt;&quot;' data-kind='&quot;neutral&quot;' data-disabled='false' data-full-width='false'></marimo-button></marimo-ui-element></div>"
}
}
],
"console": []
},
{
"id": "Kclp",
"code_hash": "08b6a92e6023c45e2a1faa991cca1465",
"outputs": [
{
"type": "data",
"data": {
"text/html": "<div style='display: flex;flex: 1;flex-direction: column;justify-content: flex-start;align-items: normal;flex-wrap: nowrap;gap: 0.5rem'><span class=\"markdown prose dark:prose-invert\"><span class=\"paragraph\"><strong>Estado:</strong> \u2139\ufe0f Completa los campos y pulsa <em>Agregar fila</em>.</span></span><span class=\"markdown prose dark:prose-invert\"></span></div>"
}
}
],
"console": []
},
{
"id": "emfo",
"code_hash": "515e2a1ee6f6bb4e70db428cdab232ef",
"outputs": [
{
"type": "data",
"data": {
"text/html": "<span class=\"markdown prose dark:prose-invert\"><span class=\"paragraph\">Para a\u00f1adir un objeto dentro de la base de datos:</span></span>"
}
}
],
"console": []
},
{
"id": "Hstk",
"code_hash": "30cfa4d73e93ebb8d87cff0080dbe588",
"outputs": [
{
"type": "data",
"data": {
"text/html": "<div style='display: flex;flex: 1;flex-direction: column;justify-content: flex-start;align-items: normal;flex-wrap: nowrap;gap: 0.5rem'><marimo-ui-element object-id='Hstk-0' random-id='29554cd3-1c21-364b-20c1-33d8f3abba4a'><marimo-button data-initial-value='0' data-label='&quot;&lt;span class=&#92;&quot;markdown prose dark:prose-invert&#92;&quot;&gt;&lt;span class=&#92;&quot;paragraph&#92;&quot;&gt;Insertar objeto en la bbdd&lt;/span&gt;&lt;/span&gt;&quot;' data-kind='&quot;neutral&quot;' data-disabled='false' data-full-width='false'></marimo-button></marimo-ui-element></div>"
}
}
],
"console": []
},
{
"id": "nWHF",
"code_hash": "ec621b22f37f5ac499733f8e9a9a5690",
"outputs": [
{
"type": "data",
"data": {
"text/html": "<span class=\"markdown prose dark:prose-invert\"><span class=\"paragraph\">\u2139\ufe0f Pulsa el bot\u00f3n para insertar el objeto.</span></span>"
}
}
],
"console": []
},
{
"id": "iLit",
"code_hash": "cc58ebb0b0434b75a91d49ebf58dbe35",
"outputs": [
{
"type": "data",
"data": {
"text/html": "<span class=\"markdown prose dark:prose-invert\"><h2 id=\"actualizar-datos\">Actualizar datos</h2></span>"
}
}
],
"console": []
},
{
"id": "ZHCJ",
"code_hash": "32e14415e9ab6e0fbe53b67cb8d64005",
"outputs": [
{
"type": "data",
"data": {
"text/html": "<div style='display: flex;flex: 1;flex-direction: row;justify-content: space-between;align-items: normal;flex-wrap: nowrap;gap: 0.5rem'><marimo-ui-element object-id='ZHCJ-0' random-id='bdbf71f8-99f2-9446-7831-24b7bfe579da'><marimo-number data-initial-value='1' data-label='&quot;&lt;span class=&#92;&quot;markdown prose dark:prose-invert&#92;&quot;&gt;&lt;span class=&#92;&quot;paragraph&#92;&quot;&gt;ID a actualizar&lt;/span&gt;&lt;/span&gt;&quot;' data-debounce='false' data-full-width='false' data-disabled='false'></marimo-number></marimo-ui-element><marimo-ui-element object-id='ZHCJ-1' random-id='23ec135c-41be-39da-8ac9-253323513080'><marimo-button data-initial-value='0' data-label='&quot;&lt;span class=&#92;&quot;markdown prose dark:prose-invert&#92;&quot;&gt;&lt;span class=&#92;&quot;paragraph&#92;&quot;&gt;Buscar registro&lt;/span&gt;&lt;/span&gt;&quot;' data-kind='&quot;neutral&quot;' data-disabled='false' data-full-width='false'></marimo-button></marimo-ui-element><marimo-ui-element object-id='ZHCJ-2' random-id='3e1c601b-b92f-8e7c-e9fc-640a84049b26'><marimo-button data-initial-value='0' data-label='&quot;&lt;span class=&#92;&quot;markdown prose dark:prose-invert&#92;&quot;&gt;&lt;span class=&#92;&quot;paragraph&#92;&quot;&gt;Confirmar actualizaci\u00f3n&lt;/span&gt;&lt;/span&gt;&quot;' data-kind='&quot;success&quot;' data-disabled='false' data-full-width='false'></marimo-button></marimo-ui-element></div>"
}
}
],
"console": []
},
{
"id": "ROlb",
"code_hash": "6d12c71c1c4ac237c5e0c82fb931d1a4",
"outputs": [
{
"type": "data",
"data": {
"text/html": "<div style='display: flex;flex: 1;flex-direction: column;justify-content: flex-start;align-items: normal;flex-wrap: nowrap;gap: 0.5rem'><span class=\"markdown prose dark:prose-invert\"><span class=\"paragraph\"><strong>Estado:</strong> \u2139\ufe0f Introduce un ID y pulsa <em>Buscar</em>.</span></span><span class=\"markdown prose dark:prose-invert\"></span></div>"
}
}
],
"console": []
},
{
"id": "qnkX",
"code_hash": "9dc30c75899af32ea77e419cc735061b",
"outputs": [
{
"type": "data",
"data": {
"text/html": "<span class=\"markdown prose dark:prose-invert\"><span class=\"paragraph\"><strong>Estado final:</strong> \u2139\ufe0f Esperando confirmaci\u00f3n de actualizaci\u00f3n.</span></span>"
}
}
],
"console": []
},
{
"id": "TqIu",
"code_hash": "8c918601d587b1c6e350302e7b9069e0",
"outputs": [
{
"type": "data",
"data": {
"text/html": "<span class=\"markdown prose dark:prose-invert\"><h2 id=\"eliminar-datos\">Eliminar datos</h2></span>"
}
}
],
"console": []
},
{
"id": "Vxnm",
"code_hash": "c0214118b582809003e3039a0341057a",
"outputs": [
{
"type": "data",
"data": {
"text/html": "<div style='display: flex;flex: 1;flex-direction: row;justify-content: space-between;align-items: normal;flex-wrap: nowrap;gap: 0.5rem'><marimo-ui-element object-id='Vxnm-0' random-id='dc2f9c49-4c2b-9859-b678-f83c79c3402b'><marimo-number data-initial-value='1' data-label='&quot;&lt;span class=&#92;&quot;markdown prose dark:prose-invert&#92;&quot;&gt;&lt;span class=&#92;&quot;paragraph&#92;&quot;&gt;ID a eliminar&lt;/span&gt;&lt;/span&gt;&quot;' data-debounce='false' data-full-width='false' data-disabled='false'></marimo-number></marimo-ui-element><marimo-ui-element object-id='Vxnm-1' random-id='277cff69-08c7-70d7-f5cd-c497b74f6287'><marimo-button data-initial-value='0' data-label='&quot;&lt;span class=&#92;&quot;markdown prose dark:prose-invert&#92;&quot;&gt;&lt;span class=&#92;&quot;paragraph&#92;&quot;&gt;Hard delete&lt;/span&gt;&lt;/span&gt;&quot;' data-kind='&quot;danger&quot;' data-disabled='false' data-full-width='false'></marimo-button></marimo-ui-element></div>"
}
}
],
"console": []
},
{
"id": "DnEU",
"code_hash": "00884625b81ef34105cef03ff14fc88e",
"outputs": [
{
"type": "data",
"data": {
"text/html": "<span class=\"markdown prose dark:prose-invert\"><span class=\"paragraph\"><strong>Estado:</strong> \u2139\ufe0f Introduce un ID y pulsa <em>Eliminar</em>.</span></span>"
}
}
],
"console": []
},
{
"id": "ulZA",
"code_hash": "d89cdd832d925cffca734778040f2e4a",
"outputs": [
{
"type": "data",
"data": {
"text/html": "<div style='display: flex;flex: 1;flex-direction: row;justify-content: space-between;align-items: normal;flex-wrap: nowrap;gap: 0.5rem'><marimo-ui-element object-id='ulZA-0' random-id='3f07edfc-97c3-071f-86a7-7d342918cfa3'><marimo-number data-initial-value='1' data-label='&quot;&lt;span class=&#92;&quot;markdown prose dark:prose-invert&#92;&quot;&gt;&lt;span class=&#92;&quot;paragraph&#92;&quot;&gt;ID a eliminar (soft)&lt;/span&gt;&lt;/span&gt;&quot;' data-debounce='false' data-full-width='false' data-disabled='false'></marimo-number></marimo-ui-element><marimo-ui-element object-id='ulZA-1' random-id='8507ea99-794f-903c-cb6b-fa4f16a471e4'><marimo-button data-initial-value='0' data-label='&quot;&lt;span class=&#92;&quot;markdown prose dark:prose-invert&#92;&quot;&gt;&lt;span class=&#92;&quot;paragraph&#92;&quot;&gt;Soft delete&lt;/span&gt;&lt;/span&gt;&quot;' data-kind='&quot;warn&quot;' data-disabled='false' data-full-width='false'></marimo-button></marimo-ui-element></div>"
}
}
],
"console": []
},
{
"id": "ecfG",
"code_hash": "c6127f223f7e2b14d957a78930d717a5",
"outputs": [
{
"type": "data",
"data": {
"text/html": "<span class=\"markdown prose dark:prose-invert\"><span class=\"paragraph\"><strong>Estado:</strong> \u2139\ufe0f Introduce un ID y pulsa <em>Soft delete</em>.</span></span>"
}
}
],
"console": []
},
{
"id": "Pvdt",
"code_hash": "19d503fb42af4a3d9f0ed03cc9b5ea4a",
"outputs": [
{
"type": "data",
"data": {
"text/html": "<div style='display: flex;flex: 1;flex-direction: row;justify-content: space-between;align-items: normal;flex-wrap: nowrap;gap: 0.5rem'><marimo-ui-element object-id='Pvdt-0' random-id='9ec434b9-ac5f-0852-6ef5-b238bb1859f7'><marimo-number data-initial-value='1' data-label='&quot;&lt;span class=&#92;&quot;markdown prose dark:prose-invert&#92;&quot;&gt;&lt;span class=&#92;&quot;paragraph&#92;&quot;&gt;ID a restaurar (soft)&lt;/span&gt;&lt;/span&gt;&quot;' data-debounce='false' data-full-width='false' data-disabled='false'></marimo-number></marimo-ui-element><marimo-ui-element object-id='Pvdt-1' random-id='67587b59-8f1e-eee5-b7c9-0ae66174438c'><marimo-button data-initial-value='0' data-label='&quot;&lt;span class=&#92;&quot;markdown prose dark:prose-invert&#92;&quot;&gt;&lt;span class=&#92;&quot;paragraph&#92;&quot;&gt;Restaurar registro&lt;/span&gt;&lt;/span&gt;&quot;' data-kind='&quot;success&quot;' data-disabled='false' data-full-width='false'></marimo-button></marimo-ui-element></div>"
}
}
],
"console": []
},
{
"id": "ZBYS",
"code_hash": "9060810de67ce9024b4371e9589f0912",
"outputs": [
{
"type": "data",
"data": {
"text/html": "<span class=\"markdown prose dark:prose-invert\"><span class=\"paragraph\"><strong>Estado:</strong> \u2139\ufe0f Introduce un ID y pulsa <em>Restaurar</em>.</span></span>"
}
}
],
"console": []
},
{
"id": "aLJB",
"code_hash": "7f5d14e9bea4cf343e656f2f50b35466",
"outputs": [
{
"type": "data",
"data": {
"text/plain": ""
}
}
],
"console": []
},
{
"id": "nHfw",
"code_hash": "49c5a314d8c46512d86821c15a3c9373",
"outputs": [
{
"type": "data",
"data": {
"text/plain": ""
}
}
],
"console": []
}
]
}