{"id":23024472,"url":"https://github.com/thipages/quicksql","last_synced_at":"2025-04-02T19:41:03.287Z","repository":{"id":57068911,"uuid":"253255363","full_name":"thipages/quicksql","owner":"thipages","description":"Quick sql builder","archived":false,"fork":false,"pushed_at":"2023-01-27T15:13:51.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-10T20:18:26.271Z","etag":null,"topics":["delete","insert","php","quick","select","update"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thipages.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-05T14:33:45.000Z","updated_at":"2023-01-27T15:03:14.000Z","dependencies_parsed_at":"2023-02-15T10:30:59.620Z","dependency_job_id":null,"html_url":"https://github.com/thipages/quicksql","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thipages%2Fquicksql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thipages%2Fquicksql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thipages%2Fquicksql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thipages%2Fquicksql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thipages","download_url":"https://codeload.github.com/thipages/quicksql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246882880,"owners_count":20849330,"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":["delete","insert","php","quick","select","update"],"created_at":"2024-12-15T13:18:50.029Z","updated_at":"2025-04-02T19:41:03.262Z","avatar_url":"https://github.com/thipages.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# quicksql\nQuick sql builder\n\n### Installation\n**composer** require thipages\\quicksql OR use the single php file **quicksql.php**\n\n### Usage of QSql class\n#### Through the following static methods (more to come)\n```php\n    insert  ($tableName, $keyValues)\n    insert  ($tableName, $keyValues, $values)\n    update  ($tableName, $keyValues, $where)\n    delete  ($tableName, $where)\n```\n\n#### Examples\n```php\n\n $sql=QSql::insert(\n    \"aTable\",\n    [\n      'field1'=\u003e1\n      'field2'=\u003e2\n   ]\n );\n /* INSERT INTO aTable ( field1,field2 ) VALUES ( '1', '2' ); */\n\n$sql=QSql::insert(\n   \"aTable\",\n   ['field1','field2'],\n   [\n      [1,2],\n      [3,4]\n   ]\n);\n/* INSERT INTO aTable ( field1,field2 ) VALUES ( '1','2' ),( '3','4' ); */\n\n$sql=QSql::update(\n   \"aTable\",\n   [\n      'field1'=\u003e1,\n      'field2'=\u003e2\n   ],\n   \"id=1\"\n);\n /* UPDATE aTable SET field1='1',field2='2' WHERE id=1; */\n\n $sql=QSql::delete(\"aTable\",\"id=1\");\n /* DELETE FROM aTable WHERE id=1; */\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthipages%2Fquicksql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthipages%2Fquicksql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthipages%2Fquicksql/lists"}