I am using SQLite3 library to read the Chrome's history. I am successful in reading the history however, when I try to insert the data, the data is inserted but doesn't shows up in Google Chrome's history. Here's my code to insert into History:
SQLiteCommand Command = new SQLiteCommand();
Command.Connection = Connection;
Command.CommandText = "INSERT INTO urls(url,title,visit_count,typed_count,last_visit_time,hidden,favicon_id) VALUES ('My Website','http://coolsite.com',40,30,(@Date),0,0)";
SQLiteParameter DateParam = new SQLiteParameter("Date", DbType.Int64);
DateParam.Value = DateTime.Now.Ticks;
Command.Parameters.Add(DateParam);
Command.ExecuteNonQuery();
The History item is created using this code, but it won't appear if viewed in Google Chrome's History tab. The difference I find in my insertion and Chrome's insertion is the TimeStamp. Refer to the screenshot below:
https://i.stack.imgur.com/0MSnA.jpg
Any idea on how to add the row properly and make it appear in Chrome's History tab ?