Skip to content

Commit

Permalink
Added docs for #columns on some adapters
Browse files Browse the repository at this point in the history
  • Loading branch information
smartinez87 committed Apr 22, 2011
1 parent 384dbfd commit 5d59cd8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,7 @@ def indexes(table_name, name = nil)#:nodoc:
indexes
end

# Returns an array of +MysqlColumn+ objects for the table specified by +table_name+.
def columns(table_name, name = nil)#:nodoc:
sql = "SHOW FIELDS FROM #{quote_table_name(table_name)}"
columns = []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ def tables(name = 'SCHEMA') #:nodoc:
end
end

# Returns an array of +SQLiteColumn+ objects for the table specified by +table_name+.
def columns(table_name, name = nil) #:nodoc:
table_structure(table_name).map do |field|
case field["dflt_value"]
Expand Down

0 comments on commit 5d59cd8

Please sign in to comment.