question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support prepared statements

See original GitHub issue

There does not seem to be a way to prepare a statement/query other than globally via connection string. It would be nice to be able to do this explicitly for particular queries.

Correct me if I’m wrong, but it appears to me that the implementation could be as simple as adding

member __.Prepare () = cmd.Prepare ()

around here: https://github.com/demetrixbio/FSharp.Data.Npgsql/blob/50b4f01bdfeb58bfd759d16f102ca3bd78bb4ab7/src/Runtime/ISqlCommand.fs#L107

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:16 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
keramscommented, Apr 8, 2019

Sure, I can change the existing PR

0reactions
melanorecommented, May 6, 2019

Merged.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Prepared Statements - Manual
The MySQL database supports prepared statements. A prepared statement or a parameterized statement is used to execute the same statement repeatedly with high ......
Read more >
MySQL 8.0 Reference Manual :: 13.5 Prepared Statements
MySQL 8.0 provides support for server-side prepared statements. This support takes advantage of the efficient client/server binary protocol.
Read more >
PHP MySQL Prepared Statements
A prepared statement is a feature used to execute the same (or similar) SQL statements repeatedly with high efficiency. Prepared statements basically work...
Read more >
Using Prepared Statements - JDBC Basics
This JDBC Java tutorial describes how to use JDBC API to create, insert into, update, and query tables. You will also learn how...
Read more >
Documentation: 15: PREPARE
Description. PREPARE creates a prepared statement. A prepared statement is a server-side object that can be used to optimize performance.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found