#NanoDB Design (draft)
定位:跨应用,跨平台
##Creating Database
####Memory Database
创建内存数据库,只需要提供库名(此名字用于标识数据库在内存中的名字)和数据源(数据源为空则是一个空数据库)。数据源的来源不关心,只要是完整的JSON数据对象即可。
#!/bin/sh | |
# | |
echo '' | |
echo '/*教程请参考:极路由Shadowsocks家庭无痛翻墙实践*/' | |
echo 'https://luolei.org/hiwifi-shadowsocks/' | |
echo 'by @foru17' | |
echo '' | |
echo '' | |
echo '那一天,' | |
echo '人类终于回想起了,' |
#NanoDB Design (draft)
定位:跨应用,跨平台
##Creating Database
####Memory Database
创建内存数据库,只需要提供库名(此名字用于标识数据库在内存中的名字)和数据源(数据源为空则是一个空数据库)。数据源的来源不关心,只要是完整的JSON数据对象即可。
/* | |
* FormData for XMLHttpRequest 2 - Polyfill for Web Worker (c) 2012 Rob W | |
* License: Creative Commons BY - http://creativecommons.org/licenses/by/3.0/ | |
* - append(name, value[, filename]) | |
* - toString: Returns an ArrayBuffer object | |
* | |
* Specification: http://www.w3.org/TR/XMLHttpRequest/#formdata | |
* http://www.w3.org/TR/XMLHttpRequest/#the-send-method | |
* The .append() implementation also accepts Uint8Array and ArrayBuffer objects | |
* Web Workers do not natively support FormData: |