go-ozzo / ozzo-dbx

A Go (golang) package that enhances the standard database/sql package by providing powerful data retrieval methods as well as DB-agnostic query building capabilities.
MIT License
636 stars 91 forks source link

Method "Model" does not exist? #11

Closed maxvoronov closed 8 years ago

maxvoronov commented 8 years ago

Hi team.

I want try to use models like in your example:

// SELECT * FROM customer WHERE id=100
db.Select().Model(100, &customer)

But I don't see this method (screenshot attached).

DB Model?

Please advise where my mistake? Thank you

qiangxue commented 8 years ago

Are you using the latest code?

maxvoronov commented 8 years ago

Sorry, my bad. Thank you