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

singlestore/valibot

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

SingleStore int column to Valibot schema mapping

A SingleStore int() column maps to pipe(number(), minValue(-2147483648), maxValue(2147483647), int()) in Valibot.

SingleStore boolean column to Valibot schema mapping

A SingleStore boolean column maps to the Valibot boolean() schema.

SingleStore date and datetime to Valibot date schema mapping

SingleStore date(), datetime(), and timestamp() columns with mode 'date' map to the Valibot date() schema.

SingleStore binary and string columns to Valibot string schema mapping

SingleStore binary(), date/datetime/timestamp columns with mode 'string', decimal(), time(), and varbinary() columns all map to the Valibot string() schema.

SingleStore varchar column to Valibot maxLength schema mapping

A SingleStore varchar() column with a specified length maps to pipe(string(), maxLength(length)) in Valibot.

SingleStore text column to Valibot maxLength schema mapping

A SingleStore text() column maps to pipe(string(), maxLength(65535)) in Valibot, where 65535 is the limit of an unsigned 16-bit integer.

SingleStore enum columns to Valibot enum schema mapping

SingleStore text(), char(), or varchar() columns with enum option, and singlestoreEnum() columns map to the Valibot enum() schema.

SingleStore mediumint column to Valibot schema mapping

A SingleStore mediumint() column maps to pipe(number(), minValue(-8388608), maxValue(8388607), int()) in Valibot, with limits representing 24-bit integer bounds.

SingleStore double and real column to Valibot schema mapping

SingleStore double() and real() columns map to pipe(number(), minValue(-140737488355328), maxValue(140737488355327)) in Valibot, with limits representing 48-bit integer bounds.

SingleStore unsigned double column to Valibot schema mapping

A SingleStore double({ unsigned: true }) column maps to pipe(number(), minValue(0), maxValue(281474976710655)) in Valibot.

SingleStore serial column to Valibot schema mapping

A SingleStore serial() column maps to pipe(number(), minValue(0), maxValue(9007199254740991), int()) in Valibot, using JavaScript max safe integer.

SingleStore unsigned bigint bigint mode column to Valibot schema mapping

A SingleStore bigint({ mode: 'bigint', unsigned: true }) column maps to pipe(bigint(), minValue(0n), maxValue(18446744073709551615n)) in Valibot.

SingleStore year column to Valibot schema mapping

A SingleStore year() column maps to pipe(number(), minValue(1901), maxValue(2155), int()) in Valibot.

SingleStore json column to Valibot schema mapping

A SingleStore json() column maps to union([union([string(), number(), boolean(), null_()]), array(any()), record(string(), any())]) in Valibot, allowing strings, numbers, booleans, null, arrays, or objects.

Give your agent this brain