Class: Sqlbuilder::Builders::PostgresBuilder
- Inherits:
-
Sqlbuilder::Builder
- Object
- Sqlbuilder::Builder
- Sqlbuilder::Builders::PostgresBuilder
- Defined in:
- lib/sqlbuilder/builders/postgres_builder.rb
Instance Method Summary collapse
-
#initialize ⇒ PostgresBuilder
constructor
A new instance of PostgresBuilder.
- #insert ⇒ Object
- #sequence(name) ⇒ Object
Methods inherited from Sqlbuilder::Builder
Constructor Details
#initialize ⇒ PostgresBuilder
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
#insert ⇒ Object
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 |