Class: Sqlbuilder::Builders::PostgresBuilder

Inherits:
Sqlbuilder::Builder show all
Defined in:
lib/sqlbuilder/builders/postgres_builder.rb

Instance Method Summary collapse

Methods inherited from Sqlbuilder::Builder

#delete, #select, #update

Constructor Details

#initializePostgresBuilder

Returns a new instance of PostgresBuilder.



10
11
12
# File 'lib/sqlbuilder/builders/postgres_builder.rb', line 10

def initialize
  @utils = Utils::Postgres.new
end

Instance Method Details

#insertObject



14
15
16
# File 'lib/sqlbuilder/builders/postgres_builder.rb', line 14

def insert
  Statements::Postgres::Insert.new(@utils)
end

#sequence(name) ⇒ Object



18
19
20
# File 'lib/sqlbuilder/builders/postgres_builder.rb', line 18

def sequence(name)
  Statements::Postgres::Sequence.new(name)
end