#Astro database on a nodejs server without Astro frameworks

3 messages · Page 1 of 1 (latest)

static zinc
#

Can I run the Astro database outside the Astro framework, I want to create a cron job server in nodejs and in that cron job I need to access the Astro db database.

versed prawnBOT
#

Hi @static zinc. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

I'm sorry, but based on the provided knowledge sources, Astro DB is designed to work within the Astro ecosystem and there's no explicit information about using it outside of the Astro framework. Astro DB is a fully local libSQL database that is created from scratch every time you start up the Astro dev server. It's designed to work with the Astro framework and its associated tools, such as the Astro Studio web portal and the Drizzle ORM.

If you want to use a database in a Node.js cron job server, you might need to consider other databases that are designed to work in a standalone Node.js environment. If you still want to use Astro DB, I would recommend reaching out to the Astro community or checking the official Astro documentation for more information.

Astro DB Deep Dive (https://astro.build/blog/astro-db-deep-dive#designing-a-local-database-the-astro-way)
Astro DB Documentation (https://docs.astro.build/en/guides/astro-db#query-your-database)

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: