Sometimes an application needs to be able to perform some commands against every new connection before that connection can be used for querying (eg, connection settings). The mysql2 wrapper also does not extend its coverage to transactions, which MySequel provides. While mysql2 provides a promise wrapper of its own, it is surface level only and actually makes it harder to work with connections and pools directly. Please note that the below is NOT a criticism of the excellent work put forward by Felix Geisendörfer, Doug Wilson and Andrey Sidorov, for whom this library would not be possible without. What MySequel provides over using node-mysql or mysql2 Pools directly: The mysql2 library must be installed as a peer dependency. A best-practices abstraction of node-mysql2.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |