GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - mbossX/medoo: javascript version of medoo php at http://medoo.in/

BranchesTags
Open more actions menu

Latest commit

 

History

6 Commits
6 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitignore
.gitignore
 
 
README.md
README.md
 
 
medoo.js
medoo.js
 
 
package.json
package.json
 
 
test.js
test.js
 
 

Repository files navigation

medoo.js

medoo is js version of catfan/Medoo.
medoo write based on ES7 async/wait.
But now it just support mysql.

Usage

Install

npm install medoo --save
npm install

Use

const Medoo = require('medoo');   
const Setting = {   
    host: 'localhost',   
    port: 3306,   
    database: 'terraria',   
    user: 'terraria',   
    password: '04140906',   
    debug_mode: true   
}
let medoo = new Medoo(Setting);
await medoo.setup(); // this code must call in a async function

method list

    setup(option = null)
    release()
    select(table, join, columns = null, where = null)
    insert(table, datas)
    delete(table, where)
    update(table, data, where = null)
    get(table, join = null, columns = null, where = null)
    has(table, join, where = null)
    count(table, join, column, where = null)
    max(table, join, column = null, where = null)
    min(table, join, column = null, where = null)
    avg(table, join, column = null, where = null)
    sum(table, join, column = null, where = null)
    alter(table, action, column)
    action(actions)

Usage of medoo is simply like medoo.php, please read catfan/Medoo doc here is just a little dif.

As in php, object is use [] to init, but in javascript it use {}.
So just change [] to {} if nessesary.

Todo list

  • add other db support
  • write documents

About

javascript version of medoo php at http://medoo.in/

Topics

databasees7javascriptmedoo

Resources

Readme
Activity

Stars

4 stars

Watchers

1 watching

Forks

2 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.