You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello!
I'm pretty new to the F# world, and started to write an application using Falco with Donald. I was following the setup of FalcoJournal for my application, however when I came to DB access, I kept getting a sequential access error.
When I downgraded to version 5, I was able to get the code to work (change Db.query to DbConn.query)
I noticed that 5.0.* did not have sequential access turned on, which is why I assume it's working when I downgrade. What would I need to update in this code for it to work with sequantial access turned on?
Thank you in advance, your work is much appreciated!
The text was updated successfully, but these errors were encountered:
Thanks for checking out the library, and welcome to the F# community!
I apologize for the error but luckily it's an easy one to get around. The library is premised on sequential access which is what you already discovered. The benefit of this approach is that when interacting with an IDataReader the contents are streamed through. The drawback however is that the fields must be read in order. I'll be sure to go back and correct the FalcoJournal project and post as well.
The updated SQL statement should look like this:
letsql="SELECT state_abbreviation, state FROM states;"
Hello!
I'm pretty new to the F# world, and started to write an application using Falco with Donald. I was following the setup of FalcoJournal for my application, however when I came to DB access, I kept getting a sequential access error.
When I downgraded to version 5, I was able to get the code to work (change
Db.query
toDbConn.query
)I noticed that 5.0.* did not have sequential access turned on, which is why I assume it's working when I downgrade. What would I need to update in this code for it to work with sequantial access turned on?
Thank you in advance, your work is much appreciated!
The text was updated successfully, but these errors were encountered: