trevyn / turbosql

An easy local data persistence layer for Rust, backed by SQLite.
208 stars 8 forks source link

Allow selecting just one column #23

Open trevyn opened 2 years ago

trevyn commented 2 years ago
if let Some(rowid) = select!(Option<_turbonet_peers.rowid> "WHERE ip = " ip)? {

vs

if let Some(_turbonet_peers { rowid, .. }) = select!(Option<_turbonet_peers> "WHERE ip = " ip)? {

I think this is also why we have that detailed columntype info in the migrations.toml