java - 是否存在根据MYSQL表格自动生成RESTFULL接口的技术?
PHP中文网
PHP中文网 2017-04-18 10:21:45
0
6
659

想咨询各位大神一下,是否存在根据数据库表接口自动生成restfull 接口的技术。
支持

select 
    sum(filedA) as PV ,
    count( distinct filedA) as UV,
    sum( if ( SomeCondition is true , 1 ,0 )) as SumOtherA
from 
    SomeTable 
where 
    filedA   >  0 

更进一步,还能生成多表关联查询的代码,支持各种join 操作。
语言不限,不知道是否有县城的工具?

PHP中文网
PHP中文网

认证0级讲师

reply all(6)
Ty80

php version: https://github.com/mevdschee/...

Python version: http://flask-restless.readthe...

小葫芦

The most mature one I know is postgres
https://github.com/begriffs/p...

大家讲道理

For php: yii2’s gii can basically satisfy you, but in the end I didn’t try restful~

左手右手慢动作

loopback.io doesn’t know if it has this capability. You need to write some code and configure it a little bit.

小葫芦

xorm and gorm can meet your needs

迷茫

There are many similar technologies, you can study ActiveRecord

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!