Derek Sivers blog 09月29日
基于PostgreSQL的购物车示例
index_new5.html
../../../zaker_core/zaker_tpl_static/wap/tpl_guoji1.html

 

本文分享了一个使用PostgreSQL数据库构建的购物车示例,通过存储过程实现数据逻辑集中管理,支持JavaScript、Python、Ruby等多种语言。

First, see my previous article about PostgreSQL functions at sive.rs/pg.That article gave tiny examples, but no finished working code.

This week, I wrote a shopping cart to sell my books directly from my own site.

So I took a couple extra hours today to put my code into public view, so anyone can play around with it.See github.com/sivers/store, to browse, download, and try it.

It’s a working self-contained shopping cart / store.It’s a very concrete example of using stored procedures to keep all the data logic together in one place.You can use it from JavaScript, Python, Ruby, or any language you want, since all the functionality is in the database itself.It works.

If you have any questions, or want to tell me how stupid I am for doing this, email me.

Fish AI Reader

Fish AI Reader

AI辅助创作,多种专业模板,深度分析,高质量内容生成。从观点提取到深度思考,FishAI为您提供全方位的创作支持。新版本引入自定义参数,让您的创作更加个性化和精准。

FishAI

FishAI

鱼阅,AI 时代的下一个智能信息助手,助你摆脱信息焦虑

联系邮箱 441953276@qq.com

相关标签

PostgreSQL 购物车 存储过程 数据库 跨语言
相关文章