Sha256: 2bbd92532df82d667646f72ce92fc18a52275ad65e1daa222608acfe4a6b3f74

Contents?: true

Size: 399 Bytes

Versions: 4

Compression:

Stored size: 399 Bytes

Contents

#!/usr/bin/env ruby

$:.unshift(File.join(File.dirname(__FILE__), "../../lib"))
$:.unshift(File.join(File.dirname(__FILE__), "../../test"))

require 'Assert'
require 'sqlpostgres'

include SqlPostgres
include Assert

# Example: ../../lib/sqlpostgres/Select.rb
select = Select.new
select.select('i')
select.from('foo')
select.order_by('i')
select.limit(1)
p select.statement   # OUTPUT
# End example

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sqlpostgres-1.3.0 doc/examples/select_limit.rb
sqlpostgres-1.2.6 doc/examples/select_limit.rb
sqlpostgres-1.2.5 doc/examples/select_limit.rb
sqlpostgres-1.2.4 doc/examples/select_limit.rb