KSQL_LASTID(3)

NAME
ksql_lastid - get the last insertion row identifier

LIBRARY
ksql

SYNOPSIS
#include <ksql.h>
enum ksqlc
ksql_lastid(struct ksql *sql, int64_t *id);

DESCRIPTION
The ksql_lastid function fills in id with the row identifier of the last insertion. If id is NULL, this effectively does nothing.

RETURN VALUES
The ksql_lastid function returns KSQL_NOTOPEN if the database is not open or KSQL_OK otherwise.

SEE ALSO
sqlite3_last_insert_rowid(3)