Skip to content

"TutorialD is not recommended for use in production systems." #332

Answered by agentm
boogerlad asked this question in Q&A
Discussion options

You must be logged in to vote

Indeed, we should clarify that statement.

Like SQL, TutorialD offers a quick way to learn and experiment with the relational algebra. As in SQL, string concatentation could be used to create unsafe scenarios such as with SQL/TutorialD injection vectors. However, unlike SQL, TutorialD is parsed on the client into its constituent Haskell representation, so TutorialD is never used in remote procedure calls.

As a compromise, we plan to support template-haskell-based TutorialD to be compiled within Haskell source, similar to parameterized SQL queries, but parsed and type-checked at Haskell compile time. It might look something like this:

do
  let myName = "Blake"
  res <- [tutd|s where sname =…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@boogerlad
Comment options

@agentm
Comment options

@boogerlad
Comment options

@agentm
Comment options

Answer selected by boogerlad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants