Code Node: where is the code stored?

Where is the code that I enter in the code node text area stored?

Is it stored in a file locally? in a database?

It is in the json file when I export the node suppose that’s just an export file and not how the code node data is saved? Could someone confirm?

Thanks.

It is saved with the workflow. So the JSON you export is exactly how n8n stores it.

2 Likes

oh excellent. Thanks for your quick response.

I didn’t know the workflow is stored in a JSON file locally (I had assumed it is stored in a DB).
Would you mind indicating where that is in a local install?

To be clear. The code is stored in a database (by default SQLite). In that database is a table which stores all the workflows, and those workflows are stored as JSON.

Got it. That clarifies things even further.

Thanks.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.