mysqljs / mysql

A pure node.js JavaScript Client implementing the MySQL protocol.
MIT License
18.3k stars 2.53k forks source link

Binary row stream? (Buffer objects) #1503

Closed Simran-B closed 8 years ago

Simran-B commented 8 years ago

Is it possible to avoid processing the raw MySQL protocol packets and just hand the content over as Buffers? My assumption is that if I want to forward the data via a binary protocol anyway, then converting back and forth is unnecessary and could be a bottleneck.

dougwilson commented 8 years ago

HI @Simran-B, no, it's not possible to do that currently with this module, and I've never really thought about it before. It would be interesting to hear your thoughts on what we could do to support this feature.

sidorares commented 8 years ago

@Simran-B which parts of this library would you use? De-framing parser ( raw data chunks -> [mysql packet header + raw payload] ) ?

dougwilson commented 8 years ago

Hi @Simran-B I hope it's OK if I close this issue. Without more information, it's hard to know where we should even start on this.