The queue that works like you do.
Go to file
themodrnhakr 0c002edefa Add getByTaskId() and getByDbId() methods.
`getByTaskId()` takes an array of strings. It is parsed into task prefix (e.g.
"TA") and task_id. The database is then queried on an array of task_ids.
The result is wrapped in an object with a status code. Currently, the
code is hardcoded as "ok", but can be fleshed out when additional
features are implemented.

There are a few features missing:
- Validation that each string is the right length
- Validation that syntactically valid prefixes and ids were passed
- A check that all requested records are returned
- A check that task prefixes actually exist in the config (requires
  implementing the config module)
- Proper status codes

`getByDbId()` takes and array of id numbers. The database is then
queried with this array. The results are wrapped as above.

Missing features:
- A check that all requested records are returned
- Proper status codes

Both methods return `{status: "failed", error}` when the database
request throws an error.
2025-09-28 16:08:15 -05:00
src Add getByTaskId() and getByDbId() methods. 2025-09-28 16:08:15 -05:00
static Initialize Sveltekit. 2025-09-25 00:06:52 -05:00
utils Create seeding script. 2025-09-27 23:24:20 -05:00
.gitignore Remove drizzle directory from repo. 2025-09-26 21:52:49 -05:00
.npmrc Initialize Sveltekit. 2025-09-25 00:06:52 -05:00
bun.lock Add drizzle-seed and faker-js for database seeding. 2025-09-27 23:23:21 -05:00
dprint.json Add dprint config. 2025-09-25 15:14:03 -05:00
drizzle.config.ts Get drizzle-kit working. 2025-09-25 15:34:19 -05:00
eslint.config.js Formatting pass. 2025-09-25 22:47:41 -05:00
LICENSE Initial commit 2025-09-25 00:02:02 -05:00
package.json Add drizzle-seed and faker-js for database seeding. 2025-09-27 23:23:21 -05:00
README.md Initialize Sveltekit. 2025-09-25 00:06:52 -05:00
svelte.config.js Formatting pass. 2025-09-25 22:47:41 -05:00
tsconfig.json Formatting pass. 2025-09-25 22:47:41 -05:00
vite.config.ts Formatting pass. 2025-09-25 22:47:41 -05:00

sv

Everything you need to build a Svelte project, powered by sv.

Creating a project

If you're seeing this, you've probably already done this step. Congrats!

# create a new project in the current directory
npx sv create

# create a new project in my-app
npx sv create my-app

Developing

Once you've created a project and installed dependencies with npm install (or pnpm install or yarn), start a development server:

npm run dev

# or start the server and open the app in a new browser tab
npm run dev -- --open

Building

To create a production version of your app:

npm run build

You can preview the production build with npm run preview.

To deploy your app, you may need to install an adapter for your target environment.