Page MenuHomePhabricator

[web-db] implement Draft Store Operations
ClosedPublic

Authored by kamil on Mar 21 2023, 8:19 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 23, 1:52 PM
Unknown Object (File)
Sat, Nov 23, 10:54 AM
Unknown Object (File)
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
Subscribers

Details

Summary

SQL implementation of draft store operations.

Depends on D7121

Test Plan

Tests D7124

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

kamil held this revision as a draft.
web/database/queries/draft-queries.js
3

native version: link

7

native version: link

20

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
9

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

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.