Coder Social home page Coder Social logo

dbtable's Introduction

dbTable

load mysql tables and table references

设计目的

  • node天生对json的友好,表数据和结构均可用json表示.
  • 加载mysql某个数据库中的所有表结构和表关联到内存.
  • 根据表结构关系,很容易组建CRUD语句.方便快捷.

使用注意

  • 依赖于db-mgr,请先安装配置db-mgr.

方法支持

获得某表信息

getTable(tableName)

获得插入sql,支持同表批量

getInsertSql = function(tableName, insertJson)

获取删除sql

getDeleteSql = function(tableName, priValue, forValue)

获得更新sql,不支持批量

getUpdateSql = function(tableName, updJson)

根据主键或外键生成select语句,建议用外键

getSelectSql = function(tableName, priValue, forValue)

dbtable's People

Contributors

luckyqqk avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.