go-sqlite3 icon indicating copy to clipboard operation
go-sqlite3 copied to clipboard

A question about how to open the file stream database

Open AnxysUaen opened this issue 3 years ago • 3 comments

How to open a file stream?

AnxysUaen avatar Jan 25 '22 19:01 AnxysUaen

The downloaded file is []byt. I don't want to write it to a local file, Is there any way to open it directly in the program?

AnxysUaen avatar Jan 25 '22 19:01 AnxysUaen

Does sqlite3_deserialize meet your needs? https://www.sqlite.org/c3ref/deserialize.html It's not currently exposed via this library, but could be.

rittneje avatar Jan 25 '22 22:01 rittneje

Does sqlite3_deserialize meet your needs? https://www.sqlite.org/c3ref/deserialize.html It's not currently exposed via this library, but could be.

Thanks, I will try how to use it in Go

AnxysUaen avatar Jan 26 '22 06:01 AnxysUaen

Support for Deserialize has been added and will be included in the next release. https://pkg.go.dev/github.com/mattn/go-sqlite3@master#SQLiteConn.Deserialize

rittneje avatar Nov 22 '22 18:11 rittneje