Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Events
Videos
Audiobooks
Packt Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Systems Programming with Zig

You're reading from   Systems Programming with Zig Build Real Tools with No Hidden Cost

Arrow left icon
Product type Paperback
Published in Jun 2026
Publisher Packt
ISBN-13 9781807426439
Length 542 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Mihalis Tsoukalos Mihalis Tsoukalos
Author Profile Icon Mihalis Tsoukalos
Mihalis Tsoukalos
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Preface 1. Part 1: Zig Foundations
2. Chapter 1: Building Essential UNIX Tools FREE CHAPTER 3. Chapter 2: Systems Infrastructure: Builds, Testing, and Distribution 4. Chapter 3: Direct Memory Access and Binary Formats 5. Chapter 4: Processing Streams, Buffers, and Data Encoding 6. Part 2: Systems Programming in Practice
7. Chapter 5: Navigating Directories and Filesystem Events 8. Chapter 6: Programming the Network Stack 9. Chapter 7: Managing Threads, Processes, and Signals 10. Chapter 8: Orchestrating Concurrency and Synchronization 11. Chapter 9: Implementing Asynchronous I/O 12. Chapter 10: Building a High-Performance In-Memory Cache Server 13. Chapter 11: Persisting Structured Data with SQLite3 14. Chapter 12: Developing a Domain-Specific Language 15. Chapter 13: Unlock Your Exclusive Benefits 16. Other Books You May Enjoy 17. Index

Using SQLite3

Working with databases is a foundational skill for any systems engineer aiming to manage, query, and persist structured data efficiently. Among the many database engines available, SQLite3 stands out for its simplicity, portability, and lightweight design. Unlike client-server databases, SQLite3 operates as an embedded library within your application, eliminating the need for a separate database server and configuration. This makes it ideal for applications where ease of deployment and minimal dependencies are critical. In this section, we will explore how to integrate SQLite3 with your systems code, focusing on performing reliable transactions, executing queries, and handling data safely — all while leveraging the power and flexibility that SQLite3 brings to database management.

Connecting to SQLite3

Before you can execute any SQL or interact with a database, you need to establish a connection to SQLite3. In Zig, this is done by calling the C function...

lock icon The rest of the chapter is locked
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Systems Programming with Zig
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at ₹800/month. Cancel anytime
Modal Close icon
Modal Close icon