aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-07-06 10:14:58 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-07-06 10:14:58 +0000
commit17f7f8a091657a2192106668f00e74c6d70c0614 (patch)
treef66793b16c762a1edc2cb5f3c3eefb63099decde /activerecord/lib/active_record/connection_adapters
parentbde3df2bec99103eeb91c4caaf0483aacadccd92 (diff)
downloadrails-17f7f8a091657a2192106668f00e74c6d70c0614.tar.gz
rails-17f7f8a091657a2192106668f00e74c6d70c0614.tar.bz2
rails-17f7f8a091657a2192106668f00e74c6d70c0614.zip
Made documentation ready for release (AR)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1733 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters')
-rw-r--r--activerecord/lib/active_record/connection_adapters/sqlserver_adapter.rb84
1 files changed, 41 insertions, 43 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/sqlserver_adapter.rb b/activerecord/lib/active_record/connection_adapters/sqlserver_adapter.rb
index a5dc5a0faf..0ce5f39421 100644
--- a/activerecord/lib/active_record/connection_adapters/sqlserver_adapter.rb
+++ b/activerecord/lib/active_record/connection_adapters/sqlserver_adapter.rb
@@ -11,47 +11,6 @@ require 'active_record/connection_adapters/abstract_adapter'
# Modifications (ODBC): Mark Imbriaco <mark.imbriaco@pobox.com>
# Date: 6/26/2005
#
-# In ADO mode, this adapter will ONLY work on Windows systems,
-# since it relies on Win32OLE, which, to my knowledge, is only
-# available on Windows.
-#
-# This mode also relies on the ADO support in the DBI module. If you are using the
-# one-click installer of Ruby, then you already have DBI installed, but
-# the ADO module is *NOT* installed. You will need to get the latest
-# source distribution of Ruby-DBI from http://ruby-dbi.sourceforge.net/
-# unzip it, and copy the file
-# <tt>src/lib/dbd_ado/ADO.rb</tt>
-# to
-# <tt>X:/Ruby/lib/ruby/site_ruby/1.8/DBD/ADO/ADO.rb</tt>
-# (you will more than likely need to create the ADO directory).
-# Once you've installed that file, you are ready to go.
-#
-# In ODBC mode, the adapter requires the ODBC support in the DBI module which requires
-# the Ruby ODBC module. Ruby ODBC 0.996 was used in development and testing,
-# and it is available at http://www.ch-werner.de/rubyodbc/
-#
-# Options:
-#
-# * <tt>:mode</tt> -- ADO or ODBC. Defaults to ADO.
-# * <tt>:username</tt> -- Defaults to sa.
-# * <tt>:password</tt> -- Defaults to empty string.
-#
-# ADO specific options:
-#
-# * <tt>:host</tt> -- Defaults to localhost.
-# * <tt>:database</tt> -- The name of the database. No default, must be provided.
-#
-# ODBC specific options:
-#
-# * <tt>:dsn</tt> -- Defaults to nothing.
-#
-# ADO code tested on Windows 2000 and higher systems,
-# running ruby 1.8.2 (2004-07-29) [i386-mswin32], and SQL Server 2000 SP3.
-#
-# ODBC code tested on a Fedora Core 4 system, running FreeTDS 0.63,
-# unixODBC 2.2.11, Ruby ODBC 0.996, Ruby DBI 0.0.23 and Ruby 1.8.2.
-# [Linux strongmad 2.6.11-1.1369_FC4 #1 Thu Jun 2 22:55:56 EDT 2005 i686 i686 i386 GNU/Linux]
-#
module ActiveRecord
class Base
def self.sqlserver_connection(config) #:nodoc:
@@ -160,9 +119,48 @@ module ActiveRecord
end
end
end
+ end
- end #class ColumnWithIdentity < Column
-
+ # In ADO mode, this adapter will ONLY work on Windows systems,
+ # since it relies on Win32OLE, which, to my knowledge, is only
+ # available on Windows.
+ #
+ # This mode also relies on the ADO support in the DBI module. If you are using the
+ # one-click installer of Ruby, then you already have DBI installed, but
+ # the ADO module is *NOT* installed. You will need to get the latest
+ # source distribution of Ruby-DBI from http://ruby-dbi.sourceforge.net/
+ # unzip it, and copy the file
+ # <tt>src/lib/dbd_ado/ADO.rb</tt>
+ # to
+ # <tt>X:/Ruby/lib/ruby/site_ruby/1.8/DBD/ADO/ADO.rb</tt>
+ # (you will more than likely need to create the ADO directory).
+ # Once you've installed that file, you are ready to go.
+ #
+ # In ODBC mode, the adapter requires the ODBC support in the DBI module which requires
+ # the Ruby ODBC module. Ruby ODBC 0.996 was used in development and testing,
+ # and it is available at http://www.ch-werner.de/rubyodbc/
+ #
+ # Options:
+ #
+ # * <tt>:mode</tt> -- ADO or ODBC. Defaults to ADO.
+ # * <tt>:username</tt> -- Defaults to sa.
+ # * <tt>:password</tt> -- Defaults to empty string.
+ #
+ # ADO specific options:
+ #
+ # * <tt>:host</tt> -- Defaults to localhost.
+ # * <tt>:database</tt> -- The name of the database. No default, must be provided.
+ #
+ # ODBC specific options:
+ #
+ # * <tt>:dsn</tt> -- Defaults to nothing.
+ #
+ # ADO code tested on Windows 2000 and higher systems,
+ # running ruby 1.8.2 (2004-07-29) [i386-mswin32], and SQL Server 2000 SP3.
+ #
+ # ODBC code tested on a Fedora Core 4 system, running FreeTDS 0.63,
+ # unixODBC 2.2.11, Ruby ODBC 0.996, Ruby DBI 0.0.23 and Ruby 1.8.2.
+ # [Linux strongmad 2.6.11-1.1369_FC4 #1 Thu Jun 2 22:55:56 EDT 2005 i686 i686 i386 GNU/Linux]
class SQLServerAdapter < AbstractAdapter
def native_database_types
{