{"id":15061277,"url":"https://github.com/mbossx/medoo","last_synced_at":"2025-03-29T20:30:28.164Z","repository":{"id":57294048,"uuid":"86212457","full_name":"mbossX/medoo","owner":"mbossX","description":"javascript version of medoo php at http://medoo.in/","archived":false,"fork":false,"pushed_at":"2017-03-26T07:17:18.000Z","size":9,"stargazers_count":4,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-20T06:12:38.379Z","etag":null,"topics":["database","es7","javascript","medoo"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/mbossX.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":"2017-03-26T06:28:13.000Z","updated_at":"2023-09-12T12:29:35.000Z","dependencies_parsed_at":"2022-08-29T08:01:34.133Z","dependency_job_id":null,"html_url":"https://github.com/mbossX/medoo","commit_stats":null,"previous_names":["1424667164/medoo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbossX%2Fmedoo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbossX%2Fmedoo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbossX%2Fmedoo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbossX%2Fmedoo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mbossX","download_url":"https://codeload.github.com/mbossX/medoo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246242639,"owners_count":20746297,"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":["database","es7","javascript","medoo"],"created_at":"2024-09-24T23:17:34.144Z","updated_at":"2025-03-29T20:30:27.899Z","avatar_url":"https://github.com/mbossX.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e# medoo.js     \n_medoo_ is js version of [catfan/Medoo](https://github.com/catfan/Medoo).   \n_medoo_ write based on ES7 async/wait.   \nBut now it just support mysql.\n\n\u003e# Usage   \n## Install   \n`npm install medoo --save`   \n`npm install`    \n## Use   \n```javascript\nconst Medoo = require('medoo');   \nconst Setting = {   \n    host: 'localhost',   \n    port: 3306,   \n    database: 'terraria',   \n    user: 'terraria',   \n    password: '04140906',   \n    debug_mode: true   \n}\nlet medoo = new Medoo(Setting);\nawait medoo.setup(); // this code must call in a async function\n```   \n## method list   \n```javascript\n    setup(option = null)\n    release()\n    select(table, join, columns = null, where = null)\n    insert(table, datas)\n    delete(table, where)\n    update(table, data, where = null)\n    get(table, join = null, columns = null, where = null)\n    has(table, join, where = null)\n    count(table, join, column, where = null)\n    max(table, join, column = null, where = null)\n    min(table, join, column = null, where = null)\n    avg(table, join, column = null, where = null)\n    sum(table, join, column = null, where = null)\n    alter(table, action, column)\n    action(actions)\n```\nUsage of _medoo_ is simply like medoo.php, please read [catfan/Medoo doc](http://medoo.in/doc) here is just a little dif.    \n\u003eAs in php, object is use [] to init, but in javascript it use {}.     \n\u003eSo just change [] to {} if nessesary.\n\n\u003e# Todo list    \n* add other db support   \n* write documents   \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbossx%2Fmedoo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmbossx%2Fmedoo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbossx%2Fmedoo/lists"}