= Swift == Public API Public API minus the optional stuff like Pool, IdentityMap, Migrations etc. Swift .setup #=> Adapter .db #=> Adapter .schema #=> [Scheme, ...] .trace # Abstract. Adapter .new #=> Adapter #begin #=> Adapter #commit #create #=> Scheme or Result #delete #=> Result #execute #=> Result #get #=> Scheme #prepare #=> Statement #rollback #transaction #=> Adapter #update #=> Scheme or Result #reconnect # Concrete. DB Mysql < Adapter::Sql Postgres < Adapter::Sql Sqlite3 < Adapter::Sql # Enumerable collection of Scheme or Hash tuples. Result .new #=> Result #insert_id #=> Numeric #fields #=> [Symbol, ...] # Field names identical to .first.keys if rows > 0 Statement .new #=> Statement #execute #=> Result #command #=> String # The SQL command executed or to be executed Scheme .attribute #=> Type .create #=> Scheme or Result .get #=> Scheme .header #=> Header .load #=> Scheme .new #=> Scheme .store #=> Symbol #execute #=> Result #prepare #=> Statement #scheme #=> Alias for self.class #tuple #=> Hash #update #=> Scheme or Result # Enumerable collection of Types for Scheme. Header .new #=> Header #all #=> [Type, ...] #insertable #=> [Type, ...] #keys #=> [Symbol, ...] #new_tuple #=> Hash #push #=> Type #serial #=> Symbol or nil. #updatable #=> [Type, ...] # Abstract. Attribute .new #=> Attribute #name #=> Symbol #field #=> Symbol #key #=> true or false #serial #=> Symbol or nil #default #=> Object #define_scheme_methods # Concrete. Type BigDecimal < Attribute Boolean < Attribute Float < Attribute Integer < Attribute IO < Attribute String < Attribute Time < Attribute # Soon to be DateTime?