Are my SQL files read at build time or run time?
Read OriginalThe article explores a debugging scenario in Go where SQL migration files embedded via //go:embed might still trigger runtime I/O. It details using DTrace's io provider to trace file accesses, filtering by .sql extensions, to distinguish between build-time and runtime file reads, aiding in system understanding and troubleshooting.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser