- Aug
- 2,320
- 111
Code:
_x64: 1
_admin: 1
_elevated: 1
TCC 27.00.21 x64 Windows 10 [Version 10.0.19042.867]
In the help for UNQLITE, it says;
If filename is ":mem:", then a private in-memory database is created. The in-memory database will be discarded when the database is closed.
When I run the following;
Code:
@setlocal
@echo off
::set thedb=jlc.db
set thedb=:mem:
echo Datebase: %thedb
echo Opening database for read/write/create
unqlite /db:"%thedb" /rwc
echo Name of current database: %_unq_db
unqlite /db:"%thedb" /kvs "keyone" "This is a string value assigned to keyone"
unqlite /db:"%thedb" /r "keyone"
echo Closing the database
unqlite /c
echo Name of current database: %_unq_db
endlocal
quit
It gives an I/O error;
Code:
e:\utils>testun
Datebase: :mem:
Opening database for read/write/create
Name of current database: E:\Utils\:mem:
IO error while opening the target database file: E:\Utils\:mem:
IO error while opening the target database file: E:\Utils\:mem:
IO error while opening the target database file: E:\Utils\:mem:
Closing the database
Name of current database: E:\Utils\:mem:
Also, %_unq_db says that the :mem: database is in the directory from which I opened the :mem: database.
I have checked, and there is no physical E:\Utils\:mem: database created, nor should there be.
Why am I getting these I/O errors?
Joe