[WordPress] 外掛分享: Gigaom Simple DB

前言介紹

  • 這款 WordPress 外掛「Gigaom Simple DB」是 2014-04-06 上架。 目前已經下架不再更新,不建議安裝使用。
  • 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
  • 上一次更新是 2014-04-08,距離現在已有 4043 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.6.1 以上版本才可以安裝。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

methnen | zbtirrell |

外掛標籤

amazon simple db |

內容簡介

建立到 Amazon Simple DB 的連線,使用了令人驚嘆的 php-sdb2 SDB 庫。

使用方式

載入 simple db 類別

$go_simple_db = go_simple_db(
YOUR_SDB_DOMAIN,
YOUR_KEY,
YOUR_SECRET
);
SDB Domain 值與 SQL 表格相似。如果 SDB Domain 尚未存在,Gigaom Simple DB 將為您建立它。
有關獲取 Key 和 Secret 值的更多信息,請參閱 Amazon Simple DB 入門指南。
同時參閱 SDB Limits 以了解 Amazon Simple DB 支持的允許範圍。因為這不會與您以前使用的其他資料庫相同。

將一列資料寫入 SDB Domain:$go_simple_db->putAttributes( YOUR_SDB_DOMAIN, array( 'post_id' => array( 'value' => '1234' ) ) )
查詢您的 SDB Domain:$go_simple_db->select( 'SELECT * FROM `' . YOUR_SDB_DOMAIN . '` LIMIT 100, NULL );

在您從 SDB Domain 獲取下一塊結果的情況下,上述代碼中的 NULL 值將替換為 SDB 下一個 Token(它本質上觸發查詢中的偏移),有關詳細信息,請參閱開發人員指南。
SDB 的查詢方式有所不同,您需要熟悉這些差異。
我有提到過SDB 開發人員指南嗎?

貢獻

此外掛在 GitHub 上進行開發和可用。歡迎貢獻和提問!

原文外掛簡介

Establish a connection to Amazon Simple DB. Uses the awesome php-sdb2 SDB library.
Usage

Load simple db class

$go_simple_db = go_simple_db(
YOUR_SDB_DOMAIN,
YOUR_KEY,
YOUR_SECRET
);
The SDB Domain value is analagous to an SQL Table. If the SDB Domain doesn’t exist yet Gigaom Simple DB will create it for you.
See: Amazon Simple DB Getting Started Guide for more information on getting your Key and Secret values.
Also see: SDB Limits to get an idea of what Amazon Simple DB allows as it’s not going to be the same as other databases you’ve worked with before.

Write a row to the your SDB Domain: $go_simple_db->putAttributes( YOUR_SDB_DOMAIN, array( 'post_id' => array( 'value' => '1234' ) ) )
Query your SDB Domain: $go_simple_db->select( 'SELECT * FROM `' . YOUR_SDB_DOMAIN . '` LIMIT 100, NULL );

In the case where you are getting the next chunk of results from you SDB Domain the NULL value in the code above would be replaced with a SDB Next Token (which essentially triggers an offset in the query) see the Developer Guide for more info on that.
Queries are quite different in SDB and you’ll need to familiarize yourself with those differences.
Did I mention the SDB Developer Guide?
Contributing
This plugin is developed and available on GitHub. Contributions and questions are welcome!

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Gigaom Simple DB」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


最新版本

延伸相關外掛(你可能也想知道)

  • Gigaom Slog 》透過 Amazon Simple DB 紀錄事件的外掛程式(需要Gigaom Simple DB)。, 最初我們是為了在無法存取伺服器上的 PHP 錯誤日誌且無法在本機上重現錯誤時,能夠紀...。

文章
Filter
Apply Filters
Mastodon