Page MenuHomePhabricator

[web-db] implement Draft Store Operations
ClosedPublic

Authored by kamil on Mar 21 2023, 8:19 AM.
Tags
None
Referenced Files
F3353682: D7122.id24363.diff
Sat, Nov 23, 10:54 AM
F3353118: D7122.diff
Sat, Nov 23, 8:21 AM
Unknown Object (File)
Thu, Nov 7, 10:47 AM
Unknown Object (File)
Thu, Nov 7, 10:47 AM
Unknown Object (File)
Wed, Nov 6, 3:15 AM
Unknown Object (File)
Wed, Nov 6, 3:15 AM
Unknown Object (File)
Mon, Nov 4, 11:11 PM
Unknown Object (File)
Sat, Nov 2, 2:53 AM
Subscribers

Details

Summary

SQL implementation of draft store operations.

Depends on D7121

Test Plan

Tests D7124

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kamil held this revision as a draft.
web/database/queries/draft-queries.js
3 ↗(On Diff #23931)

native version: link

7 ↗(On Diff #23931)

native version: link

20 ↗(On Diff #23931)

native version: link
Return value is not used anywhere so skipping it

kamil published this revision for review.Mar 22 2023, 5:34 AM
ashoat added inline comments.
web/database/queries/draft-queries.js
4 ↗(On Diff #23931)
9 ↗(On Diff #23931)

Does this actually work in SQLite? In MySQL it would error because key is a reserved keyword

This revision is now accepted and ready to land.Mar 22 2023, 11:36 AM

add import, improve query format

web/database/queries/draft-queries.js
9 ↗(On Diff #23931)

It works, I checked in D7124.

It's the same engine as on native, since it works there it should work here.

As far as I know, KEY is reserved in SQLite, not key (for KEY it fails).

This revision was automatically updated to reflect the committed changes.