{"id":21741976,"url":"https://github.com/mortinger91/header-only-cpp-mysql","last_synced_at":"2026-04-15T15:33:05.006Z","repository":{"id":149352461,"uuid":"164666439","full_name":"mortinger91/header-only-cpp-mysql","owner":"mortinger91","description":"Header-Only C++ Wrapper of Mysql Official Library","archived":false,"fork":false,"pushed_at":"2019-02-14T12:06:10.000Z","size":40,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-29T01:24:32.377Z","etag":null,"topics":["cpp","cpp11","cpp14","cpp17","header-only","mysql"],"latest_commit_sha":null,"homepage":"","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/mortinger91.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-08T14:29:31.000Z","updated_at":"2022-04-08T11:21:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"4c07c01e-7df9-482c-b16d-297977bbd436","html_url":"https://github.com/mortinger91/header-only-cpp-mysql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mortinger91/header-only-cpp-mysql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mortinger91%2Fheader-only-cpp-mysql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mortinger91%2Fheader-only-cpp-mysql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mortinger91%2Fheader-only-cpp-mysql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mortinger91%2Fheader-only-cpp-mysql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mortinger91","download_url":"https://codeload.github.com/mortinger91/header-only-cpp-mysql/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mortinger91%2Fheader-only-cpp-mysql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31847765,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cpp","cpp11","cpp14","cpp17","header-only","mysql"],"created_at":"2024-11-26T06:42:22.945Z","updated_at":"2026-04-15T15:33:04.968Z","avatar_url":"https://github.com/mortinger91.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# header-only-cpp-mysql\nHEADER-ONLY easy C++ Mysql Wrapper\n\nOnly .h file, just paste it into your project\n\nFollowing, a few more informations:\n* build instructions\n* how to find and install dependencies\n* example function\n* example cpp file\n\nThe official mysql C library is required and is the only dependency.\n\nOn Debian-like distributions issue the command \"*sudo apt install libmysqlclient-dev*\".\n\nTry with \"*sudo apt install default-libmysqlclient-dev*\" as an alternative.\n\nLook for an equivalent one if you are on a different OS or Linux distribution.\n\nUsing GCC build with **lmysqlclient** flag (tested on Debian buster/sid \u0026 GCC 8.2.0-13).\n\nExample: \"*g++ program main.o ... -lmysqlclient*\".\n\nIf you cannot locate the package you are probably missing the mysql repositories.\n\nGo to \"*https://repo.mysql.com/*\" and download the file \"*mysql-apt-config_LATEST_VERSION_NUMBER_all.deb*\".\n\nYou can download it using \"*curl DOWNLOAD LINK --output pkg.deb*\" or via browser.\n\nInstall it using \"*sudo dpkg -i pkg.deb*\" and choose your system version or the latest one.\n\nAfter having added mysql repos you should be able to \"*sudo apt install libmysqlclient-dev*\".\n\n**EXAMPLE:**\n\nA very simple example.cpp file, that's everything you need to test the functions.\n\nCompile it with \"*g++ example example.cpp -lmysqlclient*\"\nExecute it with \"*./example*\"\n\n*example.cpp:*\n\n\t#include \"mysql_wrapper.h\"\n\t\t\n\tint main(int argc, char *argv[])\n\t{\n\t\texample(\"my_hostname\", \"my_user\", \"my_password\", \n\t\t\"SELECT * FROM myschema.mydatabase\", \n\t\t\"INSERT INTO myschema.mydatabase (col1,col2,col3) VALUES (1,2,3)\");\n\t\treturn 0;\n\t}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmortinger91%2Fheader-only-cpp-mysql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmortinger91%2Fheader-only-cpp-mysql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmortinger91%2Fheader-only-cpp-mysql/lists"}