Skip to content
Browse files

pg, add missing nodocs for extracted modules.

  • Loading branch information...
1 parent c6ee495 commit 881cab448c698dde1d698ea8ad048561c6bcf702 @senny senny committed May 19, 2014
View
2 activerecord/lib/active_record/connection_adapters/postgresql/array_parser.rb
@@ -1,7 +1,7 @@
module ActiveRecord
module ConnectionAdapters
module PostgreSQL
- module ArrayParser
+ module ArrayParser # :nodoc:
DOUBLE_QUOTE = '"'
BACKSLASH = "\\"
View
2 activerecord/lib/active_record/connection_adapters/postgresql/cast.rb
@@ -1,7 +1,7 @@
module ActiveRecord
module ConnectionAdapters
module PostgreSQL
- module Cast
+ module Cast # :nodoc:
def point_to_string(point) # :nodoc:
"(#{point[0]},#{point[1]})"
end
View
2 activerecord/lib/active_record/connection_adapters/postgresql/oid.rb
@@ -1,7 +1,7 @@
module ActiveRecord
module ConnectionAdapters
module PostgreSQL
- module OID
+ module OID # :nodoc:
class Type
def type; end
def simplified_type(sql_type); type end
View
6 activerecord/lib/active_record/connection_adapters/postgresql/referential_integrity.rb
@@ -1,12 +1,12 @@
module ActiveRecord
module ConnectionAdapters
module PostgreSQL
- module ReferentialIntegrity
- def supports_disable_referential_integrity? #:nodoc:
+ module ReferentialIntegrity # :nodoc:
+ def supports_disable_referential_integrity? # :nodoc:
true
end
- def disable_referential_integrity #:nodoc:
+ def disable_referential_integrity # :nodoc:
if supports_disable_referential_integrity?
begin
execute(tables.collect { |name| "ALTER TABLE #{quote_table_name(name)} DISABLE TRIGGER ALL" }.join(";"))
View
8 activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
@@ -740,7 +740,7 @@ def select(sql, name = nil, binds = [])
# Query implementation notes:
# - format_type includes the column size constraint, e.g. varchar(50)
# - ::regclass is a function that gives the id for a table name
- def column_definitions(table_name) #:nodoc:
+ def column_definitions(table_name) # :nodoc:
exec_query(<<-end_sql, 'SCHEMA').rows
SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
@@ -752,7 +752,7 @@ def column_definitions(table_name) #:nodoc:
end_sql
end
- def extract_pg_identifier_from_name(name)
+ def extract_pg_identifier_from_name(name) # :nodoc:
match_data = name.start_with?('"') ? name.match(/\"([^\"]+)\"/) : name.match(/([^\.]+)/)
if match_data
@@ -762,12 +762,12 @@ def extract_pg_identifier_from_name(name)
end
end
- def extract_table_ref_from_insert_sql(sql)
+ def extract_table_ref_from_insert_sql(sql) # :nodoc:
sql[/into\s+([^\(]*).*values\s*\(/im]
$1.strip if $1
end
- def create_table_definition(name, temporary, options, as = nil)
+ def create_table_definition(name, temporary, options, as = nil) # :nodoc:
TableDefinition.new native_database_types, name, temporary, options, as
end
end

0 comments on commit 881cab4

Please sign in to comment.
Something went wrong with that request. Please try again.