JDBC HTTP Server
JDBC HTTP Server能夠讓你通過http api直接操作數據庫。這意味著如果有一個數據庫名為testdb,其中有一張表,表名為testtable。然后你就可以進行以下操作:Retrieve (GET), update (PUT) or delete (DELETE) a single row at:
/db/testdb/schemas/public/tables/testtable/rows/1
Retrieve (GET), update (PUT) rows or create a new row (POST) at: /db/testdb/schemas/public/tables/testtable/rows</pre></code>
上述資源接受select參數, where, limit, offset and orderby 等都支持。比如:
GET a maximum of 10 rows where cost>100 at:
/db/testdb/schemas/public/tables/testtable/rows?where=cost>100&limit=10
在默認情況下,目前唯一的數據格式是JSON。
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!