Page MenuHomePhabricator

[keyserver] Type ConnectionOptions passed to mysql2 library
ClosedPublic

Authored by ashoat on Jul 13 2022, 4:50 PM.
Tags
None
Referenced Files
F3562236: D4529.id14546.diff
Fri, Dec 27, 10:07 AM
F3562235: D4529.id14451.diff
Fri, Dec 27, 10:07 AM
F3562232: D4529.id14449.diff
Fri, Dec 27, 10:07 AM
F3562201: D4529.id.diff
Fri, Dec 27, 10:07 AM
F3562170: D4529.diff
Fri, Dec 27, 10:02 AM
Unknown Object (File)
Fri, Dec 20, 3:49 PM
Unknown Object (File)
Mon, Dec 16, 12:22 AM
Unknown Object (File)
Mon, Dec 16, 12:22 AM

Details

Summary

We should type this. (We use types from the mysql library because mysql2 is meant to be a drop-in replacement, and there is no Flow libdef for mysql2.)

Depends on D4515

Test Plan

Flow

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Make PoolOptions and ConnectionOptions exact objects to be consistent with this runtime warning we get from mysql2:

Ignoring invalid configuration option passed to Connection: dbType. This is currently a warning, but in future versions of MySQL2, an error will be thrown if you pass an invalid configuration option to a Connection

This revision is now accepted and ready to land.Jul 14 2022, 9:54 AM