Readonly[ReadonlyTypeReadonlycreateimport * as S from "@effect/schema/Schema";
import * as E from "@evolu/react";
// The same API for different platforms
// import * as E from "@evolu/react-native";
// import * as E from "@evolu/common-web";
const TodoId = E.id("Todo");
type TodoId = typeof TodoId.Type;
const TodoTable = E.table({
id: TodoId,
title: E.NonEmptyString1000,
});
type TodoTable = typeof TodoTable.Type;
const Database = E.database({
todo: TodoTable,
// Prefix `_` makes the table local-only (it will not sync)
_todo: TodoTable,
});
type Database = typeof Database.Type;
const evolu = E.createEvolu(Database);
Static Readonly_opStatic Readonly[ReadonlycreateCreate Evolu from the database schema.
Tables with a name prefixed with _ are local-only, which means they are
never synced. It's useful for device-specific or temporal data.
import * as S from "@effect/schema/Schema";
import * as E from "@evolu/react";
// The same API for different platforms
// import * as E from "@evolu/react-native";
// import * as E from "@evolu/common-web";
const TodoId = E.id("Todo");
type TodoId = typeof TodoId.Type;
const TodoTable = E.table({
id: TodoId,
title: E.NonEmptyString1000,
});
type TodoTable = typeof TodoTable.Type;
const Database = E.database({
todo: TodoTable,
// Prefix `_` makes the table local-only (it will not sync)
_todo: TodoTable,
});
type Database = typeof Database.Type;
const evolu = E.createEvolu(Database);
Static Readonly[ReadonlycreateCreate Evolu from the database schema.
Tables with a name prefixed with _ are local-only, which means they are
never synced. It's useful for device-specific or temporal data.
import * as S from "@effect/schema/Schema";
import * as E from "@evolu/react";
// The same API for different platforms
// import * as E from "@evolu/react-native";
// import * as E from "@evolu/common-web";
const TodoId = E.id("Todo");
type TodoId = typeof TodoId.Type;
const TodoTable = E.table({
id: TodoId,
title: E.NonEmptyString1000,
});
type TodoTable = typeof TodoTable.Type;
const Database = E.database({
todo: TodoTable,
// Prefix `_` makes the table local-only (it will not sync)
_todo: TodoTable,
});
type Database = typeof Database.Type;
const evolu = E.createEvolu(Database);
Static Optional[ignoreStatic Readonly[ReadonlycreateCreate Evolu from the database schema.
Tables with a name prefixed with _ are local-only, which means they are
never synced. It's useful for device-specific or temporal data.
import * as S from "@effect/schema/Schema";
import * as E from "@evolu/react";
// The same API for different platforms
// import * as E from "@evolu/react-native";
// import * as E from "@evolu/common-web";
const TodoId = E.id("Todo");
type TodoId = typeof TodoId.Type;
const TodoTable = E.table({
id: TodoId,
title: E.NonEmptyString1000,
});
type TodoTable = typeof TodoTable.Type;
const Database = E.database({
todo: TodoTable,
// Prefix `_` makes the table local-only (it will not sync)
_todo: TodoTable,
});
type Database = typeof Database.Type;
const evolu = E.createEvolu(Database);
Static Readonly[STMTypeStatic Readonly[ReadonlycreateCreate Evolu from the database schema.
Tables with a name prefixed with _ are local-only, which means they are
never synced. It's useful for device-specific or temporal data.
import * as S from "@effect/schema/Schema";
import * as E from "@evolu/react";
// The same API for different platforms
// import * as E from "@evolu/react-native";
// import * as E from "@evolu/common-web";
const TodoId = E.id("Todo");
type TodoId = typeof TodoId.Type;
const TodoTable = E.table({
id: TodoId,
title: E.NonEmptyString1000,
});
type TodoTable = typeof TodoTable.Type;
const Database = E.database({
todo: TodoTable,
// Prefix `_` makes the table local-only (it will not sync)
_todo: TodoTable,
});
type Database = typeof Database.Type;
const evolu = E.createEvolu(Database);
Static Readonly[Static Optional[typeStatic Optional[unifyStaticCommonStatic ReadonlyIdentifierStatic ReadonlykeyStatic ReadonlyServiceReadonlycreateCreate Evolu from the database schema.
Tables with a name prefixed with _ are local-only, which means they are
never synced. It's useful for device-specific or temporal data.
import * as S from "@effect/schema/Schema";
import * as E from "@evolu/react";
// The same API for different platforms
// import * as E from "@evolu/react-native";
// import * as E from "@evolu/common-web";
const TodoId = E.id("Todo");
type TodoId = typeof TodoId.Type;
const TodoTable = E.table({
id: TodoId,
title: E.NonEmptyString1000,
});
type TodoTable = typeof TodoTable.Type;
const Database = E.database({
todo: TodoTable,
// Prefix `_` makes the table local-only (it will not sync)
_todo: TodoTable,
});
type Database = typeof Database.Type;
const evolu = E.createEvolu(Database);
Static Optional ReadonlystackStatic[iterator]Static[StaticcontextReadonlycreateCreate Evolu from the database schema.
Tables with a name prefixed with _ are local-only, which means they are
never synced. It's useful for device-specific or temporal data.
import * as S from "@effect/schema/Schema";
import * as E from "@evolu/react";
// The same API for different platforms
// import * as E from "@evolu/react-native";
// import * as E from "@evolu/common-web";
const TodoId = E.id("Todo");
type TodoId = typeof TodoId.Type;
const TodoTable = E.table({
id: TodoId,
title: E.NonEmptyString1000,
});
type TodoTable = typeof TodoTable.Type;
const Database = E.database({
todo: TodoTable,
// Prefix `_` makes the table local-only (it will not sync)
_todo: TodoTable,
});
type Database = typeof Database.Type;
const evolu = E.createEvolu(Database);
StaticofReadonlycreateCreate Evolu from the database schema.
Tables with a name prefixed with _ are local-only, which means they are
never synced. It's useful for device-specific or temporal data.
import * as S from "@effect/schema/Schema";
import * as E from "@evolu/react";
// The same API for different platforms
// import * as E from "@evolu/react-native";
// import * as E from "@evolu/common-web";
const TodoId = E.id("Todo");
type TodoId = typeof TodoId.Type;
const TodoTable = E.table({
id: TodoId,
title: E.NonEmptyString1000,
});
type TodoTable = typeof TodoTable.Type;
const Database = E.database({
todo: TodoTable,
// Prefix `_` makes the table local-only (it will not sync)
_todo: TodoTable,
});
type Database = typeof Database.Type;
const evolu = E.createEvolu(Database);
ReadonlycreateCreate Evolu from the database schema.
Tables with a name prefixed with _ are local-only, which means they are
never synced. It's useful for device-specific or temporal data.
import * as S from "@effect/schema/Schema";
import * as E from "@evolu/react";
// The same API for different platforms
// import * as E from "@evolu/react-native";
// import * as E from "@evolu/common-web";
const TodoId = E.id("Todo");
type TodoId = typeof TodoId.Type;
const TodoTable = E.table({
id: TodoId,
title: E.NonEmptyString1000,
});
type TodoTable = typeof TodoTable.Type;
const Database = E.database({
todo: TodoTable,
// Prefix `_` makes the table local-only (it will not sync)
_todo: TodoTable,
});
type Database = typeof Database.Type;
const evolu = E.createEvolu(Database);
StaticpipeStatictoJSONStaticto
Create Evolu from the database schema.
Tables with a name prefixed with
_are local-only, which means they are never synced. It's useful for device-specific or temporal data.