首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > JavaScript > 一个纯粹的JavaScript包装访问SQLite数据库在WebKit和谷歌齿轮

一个纯粹的JavaScript包装访问SQLite数据库在WebKit和谷歌齿轮

  • 资源大小:8.31 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: javascript sqlite api Webkit gears

资 源 简 介

One of those "because I can" experiments to allow object-oriented Rails-like CRUD operations to made on the sqlite3 database that comes with Webkit-based browsers and Google Gears. Databases are simply created with: store = LocalStorage("dbName") You access tables like you would any object. First to make a table! store.createTable("Phonebook","Name","Number") Then from thereon, you call the table as you would any method. store.Phonebook.insert("Jane","555-000-001") To query"s just the same! store.Phonebook.find( {Name:"Jane"} ) Currently tested with Safari only and allows for insert & find. Further documentation in source file.

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP