mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
This commit is contained in:
@ -68,10 +68,10 @@ pub fn (db DB) delete(table string, where orm.QueryData) ! {
|
||||
sqlite_stmt_worker(db, query, orm.QueryData{}, where)!
|
||||
}
|
||||
|
||||
pub fn (db DB) last_id() orm.Primitive {
|
||||
pub fn (db DB) last_id() int {
|
||||
query := 'SELECT last_insert_rowid();'
|
||||
id := db.q_int(query)
|
||||
return orm.Primitive(id)
|
||||
|
||||
return db.q_int(query)
|
||||
}
|
||||
|
||||
// table
|
||||
|
Reference in New Issue
Block a user