# How to include SQLite in a Stand-Alone Executable?

**URL:** <https://racket.discourse.group/t/how-to-include-sqlite-in-a-stand-alone-executable/150>\
**Category:** Questions & Answers\
**Tags:** sqlite, raco\
**Created:** [November 17, 2021, 8:49am UTC](https://racket.discourse.group/t/how-to-include-sqlite-in-a-stand-alone-executable/150 "2021-11-17T08:49:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![spdegabrielle](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/spdegabrielle/32/95_2.png) [@spdegabrielle](https://racket.discourse.group/u/spdegabrielle)\
**Post date:** [November 17, 2021, 8:49am UTC](https://racket.discourse.group/t/how-to-include-sqlite-in-a-stand-alone-executable/150/1 "2021-11-17T08:49:55Z")

</div>

> How do I use [libsqlite3](https://pkgs.racket-lang.org/package/libsqlite3) ? Would like to distribute sqlite with an exe but unsure how to do so with that pkg

---

<div class="post-metadata">

**Author:** ![spdegabrielle](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/spdegabrielle/32/95_2.png) [@spdegabrielle](https://racket.discourse.group/u/spdegabrielle)\
**Post date:** [November 17, 2021, 8:51am UTC](https://racket.discourse.group/t/how-to-include-sqlite-in-a-stand-alone-executable/150/2 "2021-11-17T08:51:40Z")

</div>

> Installing the package then building a distribution with raco exe followed by raco distribute should be enough. The package puts the foreign lib in the right place and the db lib uses define-runtime-path to look it up so it should all work out.

(thanks to @bogdan for great answer)
