package AdaBase is type Trax_ID is mod 2 ** 64; end AdaBase;
Trax_ID function
AdaBase.Driver.Base.[DB].last_insert_id ()
This function returns the ID of the last inserted row. If the driver does not support the concept of auto-increment fields, the return value will always be zero.
For the PostgreSQL driver, if the query is in the form of INSERT INTO .. RETURNING, then the last_insert_id comes directly from the result set of this INSERT statement. If no RETURNING clause is present, the last_insert_id is the result of "SELECT lastval()" which is normally accurate, but not in every case.
[DB] is "MySQL.MySQL_Driver", "PostgreSQL.PostgreSQL_Driver", or "SQLite.SQLite_Driver"