www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Error: no property 'select' for type 'ddbc.core.Statement'

I hope that here I will get answer faster then on 

I am using ddbc diver for access to mysql. I need to return 
result of request to struct. My code is next:

import std.stdio;
import ddbc.all;
import std.stdio;
import std.conv;

void main()
	string[string] params;
	MySQLDriver driver = new MySQLDriver();
     string url = MySQLDriver.generateUrl("localhost", 3306, 
     params = MySQLDriver.setUserAndPassword("root", "pass");
	DataSource ds = new ConnectionPoolDataSourceImpl(driver, url, 

	// creating Connection
	auto conn = ds.getConnection();
	scope(exit) conn.close();

	// creating Statement
	auto stmt = conn.createStatement();
	scope(exit) stmt.close();
	string sql = "select * from test.imgs";
	auto images = stmt.executeQuery(sql);
	struct myData
	 int id;
	 string date;
	foreach(ref e; stmt.select!myData)
	/* this code is work
		string mydata = images.getString(4);

I am getting error: Error: no property 'select' for type 

What I am doing wrong?
Jan 31