--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Returns the sequence value returned by the last call to the PostgreSQL function <tt>nextval(sequence_name)</tt>. Equivalent to <tt>conn.query('select lastval()').first.first</tt>.
- !ruby/struct:SM::Flow::P 
  body: This functionality is only available with PostgreSQL 8.1 and newer. See the PostgreSQL documentation on lastval[http://www.postgresql.org/docs/current/interactive/functions-sequence.html] for more information.
full_name: PGconn#lastval
is_singleton: false
name: lastval
params: |
  conn.lastval -> Integer

visibility: public
