瀏覽代碼

Added more adapter instructions

Andrew Kane 8 年之前
父節點
當前提交
498201563e
共有 1 個文件被更改,包括 38 次插入6 次删除
  1. 38 6
      README.md

+ 38 - 6
README.md

@@ -366,12 +366,12 @@ data_sources:
 
 ### Full List
 
-- PostgreSQL
-- MySQL
-- SQL Server
-- Oracle
-- IBM DB2 and Informix
-- SQLite
+- [PostgreSQL](#postgresql)
+- [MySQL](#mysql)
+- [SQL Server](#sql-server)
+- [Oracle](#oracle)
+- [IBM DB2 and Informix](#ibm-db2-and-informix)
+- [SQLite](#sqlite)
 - [Redshift](#redshift)
 - [Presto](#presto)
 - [MongoDB](#mongodb) [beta]
@@ -387,6 +387,38 @@ data_sources:
     url: <%= ENV["BLAZER_MY_SOURCE_URL"] %>
 ```
 
+### PostgreSQL
+
+Add [pg](https://bitbucket.org/ged/ruby-pg/wiki/Home) to your Gemfile (if it’s not there) and set:
+
+```yml
+data_sources:
+  my_source:
+    url: postgres://user:password@hostname:5432/database
+```
+
+### MySQL
+
+Add [mysql2](https://github.com/brianmario/mysql2) to your Gemfile (if it’s not there) and set:
+
+```yml
+data_sources:
+  my_source:
+    url: mysql2://user:password@hostname:3306/database
+```
+
+### SQL Server
+
+Use [activerecord-sqlserver-adapter](https://github.com/rails-sqlserver/activerecord-sqlserver-adapter).
+
+### IMB DB2 and Informix
+
+Use [ibm_db](https://github.com/ibmdb/ruby-ibmdb).
+
+### SQLite
+
+Use [sqlite3](https://github.com/sparklemotion/sqlite3-ruby).
+
 ### Redshift
 
 Add [activerecord4-redshift-adapter](https://github.com/aamine/activerecord4-redshift-adapter) to your Gemfile and set: