Momomoto is a database abstraction layer

Methods
Classes and Modules
Module Momomoto::Datatype
Module Momomoto::Information_schema
Class Momomoto::Base
Class Momomoto::ConversionError
Class Momomoto::CriticalError
Class Momomoto::Database
Class Momomoto::Error
Class Momomoto::Nothing_found
Class Momomoto::Order
Class Momomoto::Procedure
Class Momomoto::Row
Class Momomoto::Table
Class Momomoto::Too_many_records
Attributes
[RW] debug Getter and setter for debugging. If debug evaluates to true then all SQL queries to the database are printed to STDOUT.
Public Class methods
asc( *args )

Returns an instance of Order::Asc where args is either a single or array of Symbol representing columns.

Eases the use of class Order::Asc. You can use it whenever selecting rows or in default_order.

  order_lower = Momomoto.asc( :person )
    => #<Momomoto::Order::Asc:0x5184131c @fields=[:person]>
  Table.select( {}, {:order => order} )
    => returns Table's rows ordered asc by column person
# File lib/momomoto/base.rb, line 36
    def asc( *args )
      Momomoto::Order::Asc.new( *args )
    end
desc( *args )

Returns an instance of Order::Asc where args is either a single or array of Symbol representing columns.

Eases the use of class Order::Desc. You can use it whenever selecting rows or in default_order.

  order_lower = Momomoto.lower( :person )
    => #<Momomoto::Order::Desc:0x5184131c @fields=[:person]>
  Table.select( {}, {:order => order} )
    => returns Table's rows ordered desc by column person
# File lib/momomoto/base.rb, line 50
    def desc( *args )
      Momomoto::Order::Desc.new( *args )
    end
lower( *args )

Returns an instance of Order::Lower where args is either a single or array of Symbol representing columns.

Eases the use of class Order::Lower. You can use it whenever selecting rows or in default_order.

  order_lower = Momomoto.lower( :person )
    => #<Momomoto::Order::Lower:0x5184131c @fields=[:person]>
  Table.select( {}, {:order => order} )
    => returns Table's rows ordered case-insensitively by column person
# File lib/momomoto/base.rb, line 22
    def lower( *args )
      Momomoto::Order::Lower.new( *args )
    end