Page MenuHomePhabricator

[keyserver] Type ConnectionOptions passed to mysql2 library
ClosedPublic

Authored by ashoat on Jul 13 2022, 4:50 PM.
Tags
None
Referenced Files
F3372473: D4529.diff
Tue, Nov 26, 6:37 AM
F3372088: D4529.id14451.diff
Tue, Nov 26, 5:33 AM
Unknown Object (File)
Mon, Nov 11, 5:45 AM
Unknown Object (File)
Sat, Nov 2, 6:32 PM
Unknown Object (File)
Sat, Nov 2, 6:32 PM
Unknown Object (File)
Sat, Nov 2, 6:32 PM
Unknown Object (File)
Sat, Nov 2, 6:31 PM
Unknown Object (File)
Sat, Nov 2, 6:21 PM

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