{"id":1568,"date":"2020-09-10T15:15:45","date_gmt":"2020-09-10T18:15:45","guid":{"rendered":"https:\/\/kondado.com.br\/blog\/wiki\/?p=1568"},"modified":"2026-04-08T17:49:09","modified_gmt":"2026-04-08T20:49:09","slug":"funcao-uuid","status":"publish","type":"post","link":"https:\/\/kondado.com.br\/blog\/wiki\/2020\/09\/10\/funcao-uuid\/","title":{"rendered":"UUID"},"content":{"rendered":"\n<p><strong>Descri\u00e7\u00e3o<\/strong><\/p>\n\n\n\n<p>Substitui o campo por um UUID V4 gerado aleatoriamente<\/p>\n\n\n\n<p><strong>Categoria<\/strong><\/p>\n\n\n\n<p>Anonimiza\u00e7\u00e3o<\/p>\n\n\n\n<p><strong>Tipos de campo suportados<\/strong><\/p>\n\n\n\n<ul><li>text<\/li><li>timestamp<\/li><li>date<\/li><li>float<\/li><li>int<\/li><li>boolean<\/li><li>time<\/li><\/ul>\n\n\n\n<p><strong>Tipo de sa\u00edda<\/strong> <strong>do campo<\/strong><\/p>\n\n\n\n<p>text<\/p>\n\n\n\n<p><strong>Argumentos<\/strong><\/p>\n\n\n\n<ul><li><em>Nenhum<\/em><\/li><\/ul>\n\n\n\n<p><strong>Pseudo-c\u00f3digo (python)<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">def func(val):\n    \"\"\"\n        val: campo\n    \"\"\"\n    import uuid\n    return str(uuid.uuid4())<\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Documenta\u00e7\u00e3o da fun\u00e7\u00e3o UUID da Kondado. Gere identificadores \u00fanicos universais (UUID) nos seus modelos de transforma\u00e7\u00e3o de dados.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[448],"tags":[321,320,328],"_links":{"self":[{"href":"https:\/\/kondado.com.br\/blog\/wiki\/wp-json\/wp\/v2\/posts\/1568"}],"collection":[{"href":"https:\/\/kondado.com.br\/blog\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kondado.com.br\/blog\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kondado.com.br\/blog\/wiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kondado.com.br\/blog\/wiki\/wp-json\/wp\/v2\/comments?post=1568"}],"version-history":[{"count":3,"href":"https:\/\/kondado.com.br\/blog\/wiki\/wp-json\/wp\/v2\/posts\/1568\/revisions"}],"predecessor-version":[{"id":11143,"href":"https:\/\/kondado.com.br\/blog\/wiki\/wp-json\/wp\/v2\/posts\/1568\/revisions\/11143"}],"wp:attachment":[{"href":"https:\/\/kondado.com.br\/blog\/wiki\/wp-json\/wp\/v2\/media?parent=1568"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kondado.com.br\/blog\/wiki\/wp-json\/wp\/v2\/categories?post=1568"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kondado.com.br\/blog\/wiki\/wp-json\/wp\/v2\/tags?post=1568"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}