fernandobatels / rsfbclient

Rust Firebird Client
MIT License
74 stars 10 forks source link

Example don't work. #111

Closed almir-lima closed 3 years ago

almir-lima commented 3 years ago

Hi, i try made this example, but don't work in the new version 0.16.0.

https://medium.com/@luisfbatels/como-utilizar-o-banco-de-dados-firebird-com-a-linguagem-rust-812630dc0058

image image

almir-lima commented 3 years ago

I managed to compile, but I'm getting error 111: connection refused, I will continue testing. thanks

fernandobatels commented 3 years ago

Please, share your code if you need more help.

You also can run our examples with the cargo run --example command.

fernandobatels commented 3 years ago

Looking your first print, the line 9 don't have the rows type that you want.

If you only need a simple columns structs, you can use the tuples Vec<(String, String)>. See here an example.

almir-lima commented 3 years ago

Hi, thank for response. The mode native is compatible with new version of firebird 4?

fernandobatels commented 3 years ago

Yes, I guess.

fernandobatels commented 3 years ago

I will test this as soon as possible

fernandobatels commented 3 years ago

[pt-br] Caso queiras um contato mais rápido e até trocar uma ideia sobre a lib, temos um grupo no telegram: https://t.me/rsfbclient

almir-lima commented 3 years ago

[pt-br] Obrigado vou participar, tenho um projeto novo e estava entre FB e MySql.