Add last_insert_rowid function for sqlite DBs
This change adds a sql function for sqlite to utilize the
last_insert_rowid function available in sqlite itself. This is necessary
to return the row ids when adding records.
* -----------------------------------------------------------------------------
*/
+#[cfg(feature = "sqlite")]
+no_arg_sql_function!(
+ last_insert_rowid,
+ diesel::sql_types::BigInt,
+ "Represents the SQLite last_insert_rowid() function"
+);
+
pub struct MerkleRadixOperations<'a, C>
where
C: diesel::Connection,
