Sha256: d9eada2d41de48073466fce194e1689814d49541a1fda8cc1a14af91838dd8bd

Contents?: true

Size: 436 Bytes

Versions: 4

Compression:

Stored size: 436 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.distinct_on('i')
select.select('integer', 'i')
select.select('integer', 'j')
select.from('foo')
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_distinct_on
sqlpostgres-1.2.6 doc/examples/select_distinct_on
sqlpostgres-1.2.5 doc/examples/select_distinct_on
sqlpostgres-1.2.4 doc/examples/select_distinct_on