mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 19:08:50 +00:00
feat(MYSQL) Bun.SQL mysql support (#21968)
### What does this PR do? Add MySQL support, Refactor will be in a followup PR ### How did you verify your code works? A lot of tests --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: cirospaciari <6379399+cirospaciari@users.noreply.github.com>
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
pub fn write(data: []const u8) void {
|
||||
debug("SocketMonitor: write {s}", .{std.fmt.fmtSliceHexLower(data)});
|
||||
if (comptime bun.Environment.isDebug) {
|
||||
DebugSocketMonitorWriter.check.call();
|
||||
if (DebugSocketMonitorWriter.enabled) {
|
||||
@@ -8,6 +9,7 @@ pub fn write(data: []const u8) void {
|
||||
}
|
||||
|
||||
pub fn read(data: []const u8) void {
|
||||
debug("SocketMonitor: read {s}", .{std.fmt.fmtSliceHexLower(data)});
|
||||
if (comptime bun.Environment.isDebug) {
|
||||
DebugSocketMonitorReader.check.call();
|
||||
if (DebugSocketMonitorReader.enabled) {
|
||||
@@ -16,6 +18,9 @@ pub fn read(data: []const u8) void {
|
||||
}
|
||||
}
|
||||
|
||||
const debug = bun.Output.scoped(.SocketMonitor, .visible);
|
||||
|
||||
const DebugSocketMonitorReader = @import("./DebugSocketMonitorReader.zig");
|
||||
const DebugSocketMonitorWriter = @import("./DebugSocketMonitorWriter.zig");
|
||||
const bun = @import("bun");
|
||||
const std = @import("std");
|
||||
|
||||
Reference in New Issue
Block a user