# Sqlite conection in function node

**URL:** <https://discourse.nodered.org/t/sqlite-conection-in-function-node/8051>\
**Category:** General\
**Created:** [16 February 2019 17:01 UTC](https://discourse.nodered.org/t/sqlite-conection-in-function-node/8051 "2019-02-16T17:01:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jhon.zambrano](https://avatars.discourse-cdn.com/v4/letter/j/ea666f/32.png) [@jhon.zambrano](https://discourse.nodered.org/u/jhon.zambrano)\
**Post date:** [16 February 2019 17:01 UTC](https://discourse.nodered.org/t/sqlite-conection-in-function-node/8051/1 "2019-02-16T17:01:44Z")

</div>

Hi  
Its possible to conect to my database in function node? how can i do it? any template, link or advice,  
Thanks!  
Regards!

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [16 February 2019 18:46 UTC](https://discourse.nodered.org/t/sqlite-conection-in-function-node/8051/2 "2019-02-16T18:46:19Z")

</div>

I advise that you use the sqlite node.

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [16 February 2019 19:08 UTC](https://discourse.nodered.org/t/sqlite-conection-in-function-node/8051/3 "2019-02-16T19:08:45Z")

</div>

I agree with @Colin, why do you want to access it from a function node?

---

<div class="post-metadata">

**Author:** ![PiMo131](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pimo131/32/34978_2.png) [@PiMo131](https://discourse.nodered.org/u/PiMo131)\
**Post date:** [9 July 2022 06:46 UTC](https://discourse.nodered.org/t/sqlite-conection-in-function-node/8051/4 "2022-07-09T06:46:27Z")

</div>

Did you solve this? I want to do the same...

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [9 July 2022 16:03 UTC](https://discourse.nodered.org/t/sqlite-conection-in-function-node/8051/5 "2022-07-09T16:03:28Z")

</div>

Seeing that this thread is three years old and the original poster hasn’t been on the forum since February of 2019, I don’t think you will get a response so I going to close this thread and agree with Colin and Ghayne and say use the sqlite node.

Unless you have an absolute reason for needing to do it in a function node, use the sqlite node. Other wise open a new thread and explain why you need to do it in a function node.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [9 July 2022 16:07 UTC](https://discourse.nodered.org/t/sqlite-conection-in-function-node/8051/6 "2022-07-09T16:07:28Z")

</div>


