Sha256: c51a8965bbfb136b9f5b4f263216bf9fb59380489a8cb7909c13932b4e4c8d82

Contents?: true

Size: 420 Bytes

Versions: 4

Compression:

Stored size: 420 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.select('count(*)', 'count')
select.from('foo')
select.group_by('i')
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_group_by.rb
sqlpostgres-1.2.6 doc/examples/select_group_by.rb
sqlpostgres-1.2.5 doc/examples/select_group_by.rb
sqlpostgres-1.2.4 doc/examples/select_group_by.rb