{"id":23248902,"url":"https://github.com/sinhapaurush/sql_to_json","last_synced_at":"2025-04-06T01:20:47.762Z","repository":{"id":37742152,"uuid":"506156858","full_name":"sinhapaurush/sql_to_json","owner":"sinhapaurush","description":"A library for Yugal which input SQL query and returns data from MySQL DB/ MariaDB.","archived":false,"fork":false,"pushed_at":"2022-06-22T08:43:34.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-12T07:25:46.492Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/sinhapaurush.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":"2022-06-22T08:13:13.000Z","updated_at":"2022-06-22T08:23:16.000Z","dependencies_parsed_at":"2022-08-24T16:02:03.156Z","dependency_job_id":null,"html_url":"https://github.com/sinhapaurush/sql_to_json","commit_stats":null,"previous_names":["fuhrerindia/sql_to_json","sinhapaurush/sql_to_json"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinhapaurush%2Fsql_to_json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinhapaurush%2Fsql_to_json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinhapaurush%2Fsql_to_json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinhapaurush%2Fsql_to_json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sinhapaurush","download_url":"https://codeload.github.com/sinhapaurush/sql_to_json/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247421111,"owners_count":20936234,"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-12-19T08:16:06.885Z","updated_at":"2025-04-06T01:20:47.729Z","avatar_url":"https://github.com/sinhapaurush.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SQL TO JSON\nA library for Yugal which input SQL query and returns data from MySQL DB/ MariaDB.\n## Installation\n- Run `yugal --install https://github.com/sinhapaurush/sql_to_json.git`\n- Paste following code in `string.php` file.\n  ```php\n    //...\n        $debug_mode = true; //'true' if in development mode, 'false' for relase mode.\n        $kill_mysql_after_dumping = false; //false | true\n  //...\n  ```\n ## How to use\n ### dumo_sql\n ```dump_sql(mysqli_connection, sql_query)```\n Provide this function with mysqli_connection in first argument and sql query in second arguement.\n This will return response in JSON format. You can decode and modify response with `json_decode` function. It will provide you with error prompt in JSON if `$debug_mode` is `true` in `string.php`.\n \n ### debug_error\n ```debug_error(error_message);```\n This will return error message is `$debug_mode` is `true` in `string.php`, else will return \"Error\", in `string` data type.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinhapaurush%2Fsql_to_json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsinhapaurush%2Fsql_to_json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinhapaurush%2Fsql_to_json/lists"}