Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > d51872cc0e1fdee944d71993f94ac764 > files > 472

ruby-activerecord-2.3.4-1mdv2010.0.noarch.rpm

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>Class: ActiveRecord::ConnectionAdapters::SQLiteAdapter</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
  <script type="text/javascript">
  // <![CDATA[

  function popupCode( url ) {
    window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
  }

  function toggleCode( id ) {
    if ( document.getElementById )
      elem = document.getElementById( id );
    else if ( document.all )
      elem = eval( "document.all." + id );
    else
      return false;

    elemStyle = elem.style;
    
    if ( elemStyle.display != "block" ) {
      elemStyle.display = "block"
    } else {
      elemStyle.display = "none"
    }

    return true;
  }
  
  // Make codeblocks hidden by default
  document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
  
  // ]]>
  </script>

</head>
<body>



    <div id="classHeader">
        <table class="header-table">
        <tr class="top-aligned-row">
          <td><strong>Class</strong></td>
          <td class="class-name-in-header">ActiveRecord::ConnectionAdapters::SQLiteAdapter</td>
        </tr>
        <tr class="top-aligned-row">
            <td><strong>In:</strong></td>
            <td>
                <a href="../../../files/lib/active_record/connection_adapters/sqlite_adapter_rb.html">
                lib/active_record/connection_adapters/sqlite_adapter.rb
                </a>
        <br />
            </td>
        </tr>

        <tr class="top-aligned-row">
            <td><strong>Parent:</strong></td>
            <td>
                <a href="AbstractAdapter.html">
                AbstractAdapter
               </a>
            </td>
        </tr>
        </table>
    </div>
  <!-- banner header -->

  <div id="bodyContent">



  <div id="contextContent">

    <div id="description">
      <p>
The SQLite adapter works with both the 2.x and 3.x series of SQLite with
the sqlite-ruby drivers (available both as gems and from <a
href="http://rubyforge.org/projects/sqlite-ruby">rubyforge.org/projects/sqlite-ruby</a>/).
</p>
<p>
Options:
</p>
<ul>
<li><tt>:database</tt> - Path to the database file.

</li>
</ul>

    </div>


   </div>

    <div id="method-list">
      <h3 class="section-bar">Methods</h3>

      <div class="name-list">
      <a href="#M000227">catch_schema_changes</a>&nbsp;&nbsp;
      <a href="#M000224">change_column_null</a>&nbsp;&nbsp;
      <a href="#M000229">default_primary_key_type</a>&nbsp;&nbsp;
      <a href="#M000220">disconnect!</a>&nbsp;&nbsp;
      <a href="#M000225">empty_insert_statement</a>&nbsp;&nbsp;
      <a href="#M000216">new</a>&nbsp;&nbsp;
      <a href="#M000222">rename_table</a>&nbsp;&nbsp;
      <a href="#M000218">requires_reloading?</a>&nbsp;&nbsp;
      <a href="#M000221">select_rows</a>&nbsp;&nbsp;
      <a href="#M000228">sqlite_version</a>&nbsp;&nbsp;
      <a href="#M000219">supports_add_column?</a>&nbsp;&nbsp;
      <a href="#M000217">supports_ddl_transactions?</a>&nbsp;&nbsp;
      <a href="#M000226">table_structure</a>&nbsp;&nbsp;
      <a href="#M000223">valid_alter_table_options</a>&nbsp;&nbsp;
      </div>
    </div>

  </div>


    <!-- if includes -->

    <div id="section">

    <div id="class-list">
      <h3 class="section-bar">Classes and Modules</h3>

      Class <a href="SQLiteAdapter/Version.html" class="link">ActiveRecord::ConnectionAdapters::SQLiteAdapter::Version</a><br />

    </div>


    <div id="aliases-list">
      <h3 class="section-bar">External Aliases</h3>

      <div class="name-list">
                        <table summary="aliases">
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">remove_column</td>
          <td>-&gt;</td>
          <td class="context-item-value">remove_columns</td>
        </tr>
                        </table>
      </div>
    </div>


      


    <!-- if method_list -->
    <div id="methods">
      <h3 class="section-bar">Public Class methods</h3>

      <div id="method-M000216" class="method-detail">
        <a name="M000216"></a>

        <div class="method-heading">
          <a href="SQLiteAdapter.src/M000216.html" target="Code" class="method-signature"
            onclick="popupCode('SQLiteAdapter.src/M000216.html');return false;">
          <span class="method-name">new</span><span class="method-args">(connection, logger, config)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <h3 class="section-bar">Public Instance methods</h3>

      <div id="method-M000224" class="method-detail">
        <a name="M000224"></a>

        <div class="method-heading">
          <a href="SQLiteAdapter.src/M000224.html" target="Code" class="method-signature"
            onclick="popupCode('SQLiteAdapter.src/M000224.html');return false;">
          <span class="method-name">change_column_null</span><span class="method-args">(table_name, column_name, null, default = nil)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000220" class="method-detail">
        <a name="M000220"></a>

        <div class="method-heading">
          <a href="SQLiteAdapter.src/M000220.html" target="Code" class="method-signature"
            onclick="popupCode('SQLiteAdapter.src/M000220.html');return false;">
          <span class="method-name">disconnect!</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000225" class="method-detail">
        <a name="M000225"></a>

        <div class="method-heading">
          <a href="SQLiteAdapter.src/M000225.html" target="Code" class="method-signature"
            onclick="popupCode('SQLiteAdapter.src/M000225.html');return false;">
          <span class="method-name">empty_insert_statement</span><span class="method-args">(table_name)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000222" class="method-detail">
        <a name="M000222"></a>

        <div class="method-heading">
          <a href="SQLiteAdapter.src/M000222.html" target="Code" class="method-signature"
            onclick="popupCode('SQLiteAdapter.src/M000222.html');return false;">
          <span class="method-name">rename_table</span><span class="method-args">(name, new_name)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000218" class="method-detail">
        <a name="M000218"></a>

        <div class="method-heading">
          <a href="SQLiteAdapter.src/M000218.html" target="Code" class="method-signature"
            onclick="popupCode('SQLiteAdapter.src/M000218.html');return false;">
          <span class="method-name">requires_reloading?</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000221" class="method-detail">
        <a name="M000221"></a>

        <div class="method-heading">
          <a href="SQLiteAdapter.src/M000221.html" target="Code" class="method-signature"
            onclick="popupCode('SQLiteAdapter.src/M000221.html');return false;">
          <span class="method-name">select_rows</span><span class="method-args">(sql, name = nil)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000219" class="method-detail">
        <a name="M000219"></a>

        <div class="method-heading">
          <a href="SQLiteAdapter.src/M000219.html" target="Code" class="method-signature"
            onclick="popupCode('SQLiteAdapter.src/M000219.html');return false;">
          <span class="method-name">supports_add_column?</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000217" class="method-detail">
        <a name="M000217"></a>

        <div class="method-heading">
          <a href="SQLiteAdapter.src/M000217.html" target="Code" class="method-signature"
            onclick="popupCode('SQLiteAdapter.src/M000217.html');return false;">
          <span class="method-name">supports_ddl_transactions?</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000223" class="method-detail">
        <a name="M000223"></a>

        <div class="method-heading">
          <a href="SQLiteAdapter.src/M000223.html" target="Code" class="method-signature"
            onclick="popupCode('SQLiteAdapter.src/M000223.html');return false;">
          <span class="method-name">valid_alter_table_options</span><span class="method-args">( type, options)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
See: <a
href="http://www.sqlite.org/lang_altertable.html">www.sqlite.org/lang_altertable.html</a>
SQLite has an additional restriction on the ALTER TABLE statement
</p>
        </div>
      </div>

      <h3 class="section-bar">Protected Instance methods</h3>

      <div id="method-M000227" class="method-detail">
        <a name="M000227"></a>

        <div class="method-heading">
          <a href="SQLiteAdapter.src/M000227.html" target="Code" class="method-signature"
            onclick="popupCode('SQLiteAdapter.src/M000227.html');return false;">
          <span class="method-name">catch_schema_changes</span><span class="method-args">() {|| ...}</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000229" class="method-detail">
        <a name="M000229"></a>

        <div class="method-heading">
          <a href="SQLiteAdapter.src/M000229.html" target="Code" class="method-signature"
            onclick="popupCode('SQLiteAdapter.src/M000229.html');return false;">
          <span class="method-name">default_primary_key_type</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000228" class="method-detail">
        <a name="M000228"></a>

        <div class="method-heading">
          <a href="SQLiteAdapter.src/M000228.html" target="Code" class="method-signature"
            onclick="popupCode('SQLiteAdapter.src/M000228.html');return false;">
          <span class="method-name">sqlite_version</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000226" class="method-detail">
        <a name="M000226"></a>

        <div class="method-heading">
          <a href="SQLiteAdapter.src/M000226.html" target="Code" class="method-signature"
            onclick="popupCode('SQLiteAdapter.src/M000226.html');return false;">
          <span class="method-name">table_structure</span><span class="method-args">(table_name)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>


    </div>


  </div>


<div id="validator-badges">
  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
</div>

</body>
</html>