{"id":17706186,"url":"https://github.com/fernandomoraes/persistencelib","last_synced_at":"2025-03-31T05:26:14.218Z","repository":{"id":8981983,"uuid":"10727815","full_name":"fernandomoraes/persistencelib","owner":"fernandomoraes","description":"The easy way to persist your data","archived":false,"fork":false,"pushed_at":"2013-07-08T02:50:37.000Z","size":124,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-06T09:47:42.407Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fernandomoraes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-06-17T01:03:16.000Z","updated_at":"2023-03-10T10:42:43.000Z","dependencies_parsed_at":"2022-09-10T05:40:06.023Z","dependency_job_id":null,"html_url":"https://github.com/fernandomoraes/persistencelib","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fernandomoraes%2Fpersistencelib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fernandomoraes%2Fpersistencelib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fernandomoraes%2Fpersistencelib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fernandomoraes%2Fpersistencelib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fernandomoraes","download_url":"https://codeload.github.com/fernandomoraes/persistencelib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246420613,"owners_count":20774350,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-24T23:07:13.216Z","updated_at":"2025-03-31T05:26:14.199Z","avatar_url":"https://github.com/fernandomoraes.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"Persistence Lib\n\nAcredito que trabalhar com dados em linguagem C/C++ em trabalhos acadêmicos ou pequenos projetos pode-se tornar custoso e um bucado chato.\nA idéia é abstrair toda essa abertura de arquivos e toda dor de cabeça na hora de gravar e ler os dados. Isso não é nenhum \ntipo de SGDB ou coisa do tipo, a propósito. Um emboço bem simples de seu uso seria:\n\n\u003cpre\u003e\u003ccode\u003e\n#include \"persistence.h\"\n\n// nome das tabelas\n#define CONTATOS \"contatos\n#define ENDERECOS \"enderecos\"\n\n\nint main(){\n  createTable(CONTATOS, \"nome endereco email telefone\"); //nome da tabela e as colunas\n  createTable(ENDERECOS, \"id* rua bairro cidade estado\"); //* indica que a coluna é auto-incremento\n\n  insertInto(CONTATOS, \"Fernando\", \"1\", \"fernandosmoraes@msn.com\", \"00000000\");\n  insertInto(ENDERECOS, \"Av. Centenario\", \"Centro\", \"Criciuma\", \"Santa Catarina\");\n\n}\n\u003c/code\u003e\u003c/pre\u003e\n\n\nPor falta de tempo e tudo mais, as principais funções como \u003ci\u003eDELETE, SELECT\u003c/i\u003e e \u003ci\u003eUPDATE\u003c/i\u003e ainda não foram implementadas, mas espero que isso inspire e que seja escrito o resto até o fim.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffernandomoraes%2Fpersistencelib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffernandomoraes%2Fpersistencelib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffernandomoraes%2Fpersistencelib/lists"}