ル微王徴

Railsライブラリ

最終更新:

rubyocho

- view
メンバー限定 登録/ログイン

Railsのライブラリを導入

SQLite3用

  • 検索
    # gem search sqlite3 --remote
    *** REMOTE GEMS ***
    sqlite3-ruby (1.2.1, 1.2.0, 1.1.0, 1.0.1, 1.0.0, 0.9.0, 0.6.0, 0.5.0)
       SQLite3/Ruby is a module to allow Ruby scripts to interface with a
       SQLite database.
    
  • インストール
    # gem install sqlite3-ruby --remote
    Select which gem to install for your platform (i386-linux)
         2. sqlite3-ruby 1.2.1 (ruby)
    > 2
    Building native extensions.  This could take a while...
    Successfully installed sqlite3-ruby-1.2.1
    
  • リスト
    # gem list
    *** LOCAL GEMS ***
    sqlite3-ruby (1.2.1)
       SQLite3/Ruby is a module to allow Ruby scripts to interface with a
       SQLite3 database.
    

PostgreSQL用

  • 検索
    # gem search postgres --remote
    *** REMOTE GEMS ***
    postgres (0.7.1)
       The extension library to access a PostgreSQL database from Ruby.
    postgres-pr (0.4.0, 0.3.6, 0.3.5, 0.3.4, 0.3.3, 0.3.2, 0.3.1, 0.3.0,
                 0.2.2, 0.2.1, 0.2.0, 0.1.1, 0.1.0, 0.0.1)
       A pure Ruby interface to the PostgreSQL (>= 7.4) database
    ruby-postgres (0.7.1.2006.04.06, 0.7.1.2006.04.05, 0.7.1.2005.12.21,
                   0.7.1.2005.12.20, 0.7.1.2005.12.19, 0.7.1.2005.11.27,
                   0.7.1.2005.11.26, 0.7.1.2005.11.24, 0.7.1.2005.11.23)
       Ruby extension library providing an API to PostgreSQL
    
ウィキ募集バナー