···77- Bun and pnpm is managed by mise, to run commands, use `mise exec -- bun ...`
88- install dependencies with `pnpm install`
99- format via `bun run fmt` (prettier, in root directory)
1010-- lint via `bun run lint` (oxlint, in root directory)
1010+- lint and typecheck via `bun run lint` (oxlint, in root directory)
1111- run tests via `bun test` (bun, in package)
1212- build via `bun run build` (tsgo + assets, in package)
1313- check `pnpm view <package>` before adding a new dependency
···11-import type { ActorDbConnection } from '../actor-store-types';
21import { t } from '../db';
3243import { PreferenceReader, type LegacyPreferences } from './reader';
···76 * preference writer.
87 */
98export class PreferenceTransactor extends PreferenceReader {
1010- /**
1111- * create a preference writer.
1212- * @param db actor database handle
1313- */
1414- constructor(db: ActorDbConnection) {
1515- super(db);
1616- }
1717-189 /**
1910 * replace legacy preferences.
2011 * @param preferences legacy preferences
-9
packages/danaus/src/actors/record/transactor.ts
···2233import { eq, inArray, sql } from 'drizzle-orm';
4455-import type { ActorDbConnection } from '../actor-store-types';
65import { t } from '../db';
76import type { RepoRecordIndexer } from '../repo/side-effects';
87···1312 * record index writer.
1413 */
1514export class RecordTransactor extends RecordReader implements RepoRecordIndexer {
1616- /**
1717- * create a record writer.
1818- * @param db actor database handle
1919- */
2020- constructor(db: ActorDbConnection) {
2121- super(db);
2222- }
2323-2415 /**
2516 * upsert record index entries.
2617 * @param records record index entries