API.rdoc in swift-0.14.0 vs API.rdoc in swift-1.0.0
- old
+ new
@@ -5,36 +5,36 @@
Public API minus the optional stuff like Pool, IdentityMap, Migrations etc.
Swift
.setup #=> Adapter
.db #=> Adapter
- .schema #=> [Scheme, ...]
+ .schema #=> [Record, ...]
.trace
# Abstract.
Adapter
.new #=> Adapter
#begin #=> Adapter
#commit
- #create #=> Scheme or Result
+ #create #=> Record or Result
#delete #=> Result
#execute #=> Result
#async_execute #=> Result
- #get #=> Scheme
+ #get #=> Record
#prepare #=> Statement
#rollback
#transaction #=> Adapter
- #update #=> Scheme or Result
+ #update #=> Record or Result
#reconnect
# Concrete.
DB
Mysql < Adapter::Sql
Postgres < Adapter::Sql
Sqlite3 < Adapter::Sql
- # Enumerable collection of Scheme or Hash tuples.
+ # Enumerable collection of Record or Hash tuples.
Result
.new #=> Result
#insert_id #=> Numeric
#fields #=> [Symbol, ...] # Field names identical to .first.keys if rows > 0
#field_types #=> [String, ...] # Type names: boolean, integer, float, numeric, timestamp, date, time, blob, text
@@ -44,25 +44,25 @@
Statement
.new #=> Statement
#execute #=> Result
#command #=> String # The SQL command executed or to be executed
- Scheme
+ Record
.attribute #=> Type
- .create #=> Scheme or Result
- .get #=> Scheme
+ .create #=> Record or Result
+ .get #=> Record
.header #=> Header
- .load #=> Scheme
- .new #=> Scheme
+ .load #=> Record
+ .new #=> Record
.store #=> Symbol
#execute #=> Result
#prepare #=> Statement
- #scheme #=> Alias for self.class
+ #record #=> Alias for self.class
#tuple #=> Hash
- #update #=> Scheme or Result
+ #update #=> Record or Result
- # Enumerable collection of Types for Scheme.
+ # Enumerable collection of Types for Record.
Header
.new #=> Header
#all #=> [Type, ...]
#insertable #=> [Type, ...]
#keys #=> [Symbol, ...]
@@ -77,10 +77,10 @@
#name #=> Symbol
#field #=> Symbol
#key #=> true or false
#serial #=> Symbol or nil
#default #=> Object
- #define_scheme_methods
+ #define_record_methods
# Concrete.
Type
BigDecimal < Attribute
Boolean < Attribute