new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Drizzle ORM · all subjects

validation & schema generation

4 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

createSelectSchema supports views

createSelectSchema can be used with MySQL views created using mysqlView, generating schemas from view definitions in the same way as tables.

createSelectSchema for validating API responses

createSelectSchema generates an arktype schema from a MySQL table definition that can be used to validate API responses. The schema validates that query results match the expected shape of the table. If a queried field is missing from the result, validation fails.

createInsertSchema for validating API requests

createInsertSchema generates an arktype schema from a MySQL table definition that validates data to be inserted into the database. It can be used to validate API requests. Fields with autoincrement or defaults are optional (marked with ?), while notNull fields are required.

createUpdateSchema for validating update requests

createUpdateSchema generates an arktype schema from a MySQL table definition that validates data to be updated in the database. All fields are optional in the update schema, allowing partial updates.

Give your agent this brain