# SQL input sanitization

**URL:** <https://discourse.julialang.org/t/sql-input-sanitization/7906>\
**Category:** Web Stack\
**Tags:** question\
**Created:** [December 21, 2017, 11:17pm UTC](https://discourse.julialang.org/t/sql-input-sanitization/7906 "2017-12-21T23:17:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![non-Jedi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/non-jedi/32/3645_2.png) [@non-Jedi](https://discourse.julialang.org/u/non-Jedi)\
**Post date:** [December 21, 2017, 11:17pm UTC](https://discourse.julialang.org/t/sql-input-sanitization/7906/1 "2017-12-21T23:17:23Z")

</div>

I’m a relative newcomer to web technology, and I thought I’d play around with it a bit in my favorite language for numeric computing. I need a DB to back the project I’m playing with, so I’m also learning a bit of SQL in the midst of all of this.

One thing that repeatedly comes up is protecting against SQL injection, which it looks like many wrapper libraries in other languages have special functions to do that for users. I don’t seem to see functions in any of the [https://github.com/JuliaDatabases](https://github.com/JuliaDatabases) packages for doing that. Anybody have advice on dealing with SQL sanitization in Julia or links to resources teaching how to sanitize strings for SQL from scratch?

Thanks

---

<div class="post-metadata">

**Author:** ![Nosferican](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nosferican/32/9275_2.png) [@Nosferican](https://discourse.julialang.org/u/Nosferican)\
**Post date:** [September 28, 2019, 1:57am UTC](https://discourse.julialang.org/t/sql-input-sanitization/7906/2 "2019-09-28T01:57:29Z")

</div>

You can prepare statements with LibPQ.jl.
