pg, add missing nodocs for extracted modules.
This commit is contained in:
parent
c6ee495e2e
commit
881cab448c
@ -1,7 +1,7 @@
|
||||
module ActiveRecord
|
||||
module ConnectionAdapters
|
||||
module PostgreSQL
|
||||
module ArrayParser
|
||||
module ArrayParser # :nodoc:
|
||||
|
||||
DOUBLE_QUOTE = '"'
|
||||
BACKSLASH = "\\"
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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(";"))
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user