znone

Results 16 comments of znone

db.query("select * from test where id=? and CreateTime=?", std::make_tuple(id, time), ...);

This is a SQL problem, the parameters you provided must be the same as required in the SQL. QTL directly transparently transmits your parameters to the database.

This function has been implemented. You can try it. ```C++ db.query("select 0, 'hello world'", [](const std::any& v1, const std::any& v2) { int i = std::get(v1); std::string s = std::get(v2); }...

结果集是空的话,不会调用回调函数。每个记录会调用一次回调函数。

这三种database是不同的类,应该分别使用不用的变量。如果你需要做一个通用的数据库访问程序,可以仅使用odbc,然后通过sqlite、mysql,以及其他数据库的odbc驱动去访问这两种数据库。

这样写: qtl::bind_field(command, size_t(0), v.id); 0可能会被当作整数或指针。

I did some additional tests here. The related table structure is as follows: CREATE TYPE public.rational AS ( num integer, den integer ); CREATE TABLE public.test ( id integer NOT...

SQLite的源文件里的,可以去SQLite的官方网站下载。

> 这里目前只支持绝对路径,相对路径不生效 默认配置是相对路径(.\lyrics\),但无效。我正是发现改为绝对路径后发现也没效果,才来提问题的。

The Makefile in the project directory is designed for GCC under Linux. If you use Visual Studio, you should refer to the Makefile in the directory sample\window, or create a...