9e6bea681f
Añade funciones Go stub para la API de Metabase en dominio infra: auth, CRUD de cards, dashboards y users, execute_query y execute_card. Incluye tipo MetabaseClient y helper HTTP compartido. Todas las funciones son impuras con stubs not-implemented.
1.1 KiB
1.1 KiB
name, kind, lang, domain, version, purity, signature, description, tags, uses_functions, uses_types, returns, returns_optional, error_type, imports, tested, tests, test_file_path, file_path
| name | kind | lang | domain | version | purity | signature | description | tags | uses_functions | uses_types | returns | returns_optional | error_type | imports | tested | tests | test_file_path | file_path | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| metabase_delete_card | function | go | infra | 1.0.0 | impure | func MetabaseDeleteCard(client MetabaseClient, cardID int) error | Elimina permanentemente una card/pregunta de Metabase. Accion irreversible. Para soft-delete usar MetabaseUpdateCard con archived:true. Endpoint: DELETE /api/card/:id. |
|
|
false | error_go_core |
|
false | functions/infra/metabase_delete_card.go |
Ejemplo
// Eliminar permanentemente
err := MetabaseDeleteCard(client, 42)
// Preferir soft-delete cuando sea posible:
// MetabaseUpdateCard(client, 42, map[string]any{"archived": true})
Notas
ATENCION: Esta operacion es irreversible. La card se elimina permanentemente.
Para un borrado seguro, preferir archivar con MetabaseUpdateCard(client, cardID, map[string]any{"archived": true}) que permite recuperar la card despues.