Function insertId

Synopsis

#include <orm_lib/inc/drogon/orm/Result.h>

unsigned long long insertId() const noexcept

Description

For Mysql, Sqlite3 databases, return the auto-incrementing primary key after inserting For postgreSQL databases, this method always returns zero, One can use the following sql to get auto-incrementing id: insert into table_name volumn1, volumn2 values(....) returning id;

Source

Line 125 in orm_lib/inc/drogon/orm/Result.h.






Add Discussion as Guest

Log in to DocsForge