prisma / tiberius

TDS 7.2+ (Microsoft SQL Server) driver for Rust
Apache License 2.0
311 stars 113 forks source link

Get TokenRow from Row #331

Open lpj145 opened 5 months ago

lpj145 commented 5 months ago

We're working with stream out from sql server, this implementation will improve it a lot.

lpj145 commented 5 months ago

@tomhoule please take a look at this, it's very simple.

With that way we should achieve something like this interation:

let sql_meta: ResultMetadata;
let token_row : TokenRow = stream.into();
for column_index in sql_meta.columns().len() {
    match token_row.get(column_index) {
      // match column data types
    }
}
tomhoule commented 5 months ago

Unfortunately I'm not the owner of this crate anymore.

setenum commented 3 months ago

This pull request is very much needed

Thanks @lpj145

pimeys commented 3 months ago

Unfortunately I'm also not the owner of this crate anymore either.