{"id":29269117,"url":"https://github.com/master/mongosql","last_synced_at":"2025-07-04T20:07:30.752Z","repository":{"id":138627408,"uuid":"1446896","full_name":"master/mongosql","owner":"master","description":"MongoDB SQL wrapper","archived":false,"fork":false,"pushed_at":"2013-04-08T13:56:46.000Z","size":881,"stargazers_count":20,"open_issues_count":0,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2023-03-11T09:27:36.320Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Erlang","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/master.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-03-06T17:12:14.000Z","updated_at":"2023-03-11T09:36:31.391Z","dependencies_parsed_at":"2023-03-17T16:16:06.107Z","dependency_job_id":null,"html_url":"https://github.com/master/mongosql","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/master/mongosql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/master%2Fmongosql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/master%2Fmongosql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/master%2Fmongosql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/master%2Fmongosql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/master","download_url":"https://codeload.github.com/master/mongosql/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/master%2Fmongosql/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263611900,"owners_count":23488429,"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":"2025-07-04T20:07:30.039Z","updated_at":"2025-07-04T20:07:30.747Z","avatar_url":"https://github.com/master.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"README\n======\n\nThis is the SQL wrapper for [MongoDB](http://www.mongodb.org) for Erlang. It mimics interface and behavior of MySQL Native Erlang driver.\n\n[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/master/mongosql/trend.png)](https://bitdeli.com/free \"Bitdeli Badge\")\n\nINSTALL\n=======\n\nDownload and compile MongoSQL and eMongo driver\n\n\t$ git clone git://github.com/master/emongo.git emongo\n\t$ git clone git://github.com/master/mongosql.git mongosql\n \t$ cd emongo\n \t$ make\n \t$ cd ../mongosql\n \t$ make\n \t$ cd ..\n\nUSAGE\n=====\n\t$ erl -pa emongo/ebin mongosql/ebin\n\n\t\u003e application:start(emongo).\n\t\u003e {ok, Pool} = mongosql_conn:start([{\"127.0.0.1\", 27017}], \"test1\").\n\t\u003e mongosql_conn:fetch(Pool, \"insert into tbl1 col1, col2 values ('string', 1);\", false).\n\t{updated,1}\n\t\u003e mongosql_conn:fetch(Pool, \"select count(*) from tbl1;\", false). \n\t{selected,[\"count(*)\"],[{\"1\"}]}\n\t\u003e mongosql_conn:fetch(Pool, \"select * from tbl1;\", false).\n\t{selected,[\"col1\",\"col2\"],[[\"string\",1]]}\n\t\u003e mongosql_conn:fetch(Pool, \"delete from tbl1 where col2 = 1;\", false).  \n\t{updated,1}\n\t\u003e mongosql_conn:fetch(Pool, \"select count(*) from tbl1;\", false).        \n\t{selected,[\"count(*)\"],[{\"0\"}]}\n\t\u003e mongosql_conn:stop(Pool).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaster%2Fmongosql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaster%2Fmongosql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaster%2Fmongosql/lists"}