File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
packages/common/src/db/schema Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @powersync/common ' : minor
3+ ' @powersync/node ' : minor
4+ ' @powersync/capacitor ' : minor
5+ ' @powersync/react-native ' : minor
6+ ' @powersync/web ' : minor
7+ ---
8+
9+ Improve raw tables by making ` put ` and ` delete ` statements optional if a local name is given.
Original file line number Diff line number Diff line change @@ -79,6 +79,12 @@ export class Schema<S extends SchemaType = SchemaType> {
7979 } ;
8080 }
8181
82+ /**
83+ * Returns a representation of the raw table that is understood by the PowerSync SQLite core extension.
84+ *
85+ * The output of this can be passed through `JSON.serialize` and then used in `powersync_create_raw_table_crud_trigger`
86+ * to define triggers for this table.
87+ */
8288 static rawTableToJson ( table : RawTable ) : unknown {
8389 const serialized : any = {
8490 name : table . name ,
You can’t perform that action at this time.
0 commit comments