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:
Ciro Spaciari
2025-08-21 15:28:15 -07:00
committed by GitHub
parent efdbe3b54f
commit ecbf103bf5
107 changed files with 10184 additions and 1387 deletions

View File

@@ -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");