<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ytbarek Hailu on Medium]]></title>
        <description><![CDATA[Stories by Ytbarek Hailu on Medium]]></description>
        <link>https://medium.com/@ytbarekgh?source=rss-4336c9cd2ad7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*VnVTjYLrN79PsDEy</url>
            <title>Stories by Ytbarek Hailu on Medium</title>
            <link>https://medium.com/@ytbarekgh?source=rss-4336c9cd2ad7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 05:18:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ytbarekgh/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[DLSync: A Modern Way to Manage your Snowflake Database Changes]]></title>
            <link>https://medium.com/snowflake/dlsync-a-modern-way-to-manage-your-snowflake-database-changes-8dc8a1413ae8?source=rss-4336c9cd2ad7------2</link>
            <guid isPermaLink="false">https://medium.com/p/8dc8a1413ae8</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[snowflake]]></category>
            <category><![CDATA[database-change-mgmt]]></category>
            <category><![CDATA[app-development]]></category>
            <dc:creator><![CDATA[Ytbarek Hailu]]></dc:creator>
            <pubDate>Wed, 05 Mar 2025 19:14:00 GMT</pubDate>
            <atom:updated>2025-03-05T20:08:19.038Z</atom:updated>
            <content:encoded><![CDATA[<p>Contributors: <a href="/service/mailto:ytbarek.hailu@snowflake.com">Ytbarek Hailu</a> <a href="/service/mailto:k.gopalakrishnan@snowflake.com">Karthik Gopalakrishnan</a> <a href="/service/mailto:sridhar.kalaga@snowflake.com">Sridhar Kalaga</a> <a href="/service/mailto:ben.luu@snowflake.com">Ben Luu</a> <a href="/service/mailto:henok.gebreslassie@snowflake.com">Henok Gebreslassie</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*esToFcJIs98omSUF" /></figure><p>In the world of cloud data platforms, <strong>Snowflake</strong> has become one of the most widely adopted solutions for data warehousing, analytics, AI and scaling large datasets. However, as Snowflake environments grow, managing database changes — from schema alterations to updates in views, UDFs, and other objects — can become complex and error-prone. Without an efficient change management process, even small updates can lead to inconsistencies, deployment issues, or downtime.</p><p>That’s where <a href="https://github.com/Snowflake-Labs/dlsync"><strong>DLSync</strong></a> comes in. DLSync is a powerful <strong>database change management tool</strong> designed specifically for Snowflake environments. DLSync empowers developers to treat snowflake as code, enabling seamless management of database changes with the same principles and practices of modern software development. It brings best modern software development principles like version control, DevOps, test driven development and dependency tracking to Snowflake deployments, ensuring that database changes are applied smoothly and consistently across environments. In this post, we’ll explore how <strong>DLSync</strong> works, its key features, and how it can help teams better manage and deploy changes to their Snowflake databases.</p><p><strong>What is DLSync?</strong></p><p>DLSync is an open-source database change management tool for Snowflake. This tool automates and streamlines the deployment of Snowflake database changes by managing Snowflake objects as version-controlled code. By treating each object as version-controlled, testable and deployable code, DLSync brings modern DevOps principles and best practices of the modern software development process into the realm of database change management. It helps teams adopt a more structured, efficient, and scalable approach to managing their Snowflake environments — reducing manual errors, speeding up deployments, and improving collaboration.</p><h3>How DLSync Works</h3><p>At its core, DLSync treats every database object as a script that resides in a corresponding file. Each Snowflake database object (such as views, UDFs, stored procedures, tables, sequences, tasks, etc.) has its corresponding script file, and changes made to these objects are tracked within this file. For example, each <strong>view</strong>, <strong>table</strong>, or <strong>UDF</strong> will have its own SQL script file with the name of the object. When a change needs to be made to that object — whether it’s a schema modification, code update, or migration — the change is tracked directly in the script file itself.</p><p>On top of that DLSync enables developers to write and execute unit tests for each snowflake object, ensuring each database change is validated and behaves as expected before deployment. This feature helps catch issues early and uphold high quality standards on snowflake database changes aligning with modern test driven development.</p><p>Another important feature of <strong>DLSync</strong> is its ability to track changes to scripts. Each time a script is deployed or modified, DLSync keeps track of which scripts have already been applied to the Snowflake database. By comparing the current version of a script with its previously deployed state, DLSync identifies the changes and ensures that only modified scripts are deployed. DLSync classifies database object scripts into two types: <strong>State Scripts</strong> and <strong>Migration Scripts</strong>.</p><ul><li><strong>State Scripts</strong>: These are used for objects such as Views, UDFs, and Stored Procedures. In a state script, you define the current state of the object — its SQL definition. When a change is made to the object, DLSync replaces the current version of the object with the updated definition. Essentially, this script reflects the “desired” state of the object. The script content can have DDL scripts only.</li><li><strong>Migration Scripts</strong>: These are used for objects like Tables, Sequences, Streams, Stages, and Tasks. Migration scripts are versioned, and each script contains migration code that applies changes sequentially based on the version number. DLSync applies migration scripts one by one, in the correct order, to ensure that the database objects evolve as intended. The script content can have DDL or DML script.</li></ul><p>By combining state-based and migration-based change management, DLSync provides a flexible and scalable approach to managing Snowflake deployments.</p><h3>Key Features of DLSync</h3><h4><strong>Change Detection &amp; Dependency Resolution</strong></h4><p>The main feature of DLSync is its ability to <strong>detect changes</strong> between the previously deployed state and the current script state. When deploying changes to the database, DLSync only deploys <strong>scripts that have been modified</strong>. This means you don’t have to worry about deploying unchanged objects, reducing the chances of errors and minimizing deployment time.</p><p>A unique feature of <strong>DLSync </strong>is its <strong>Dependency Resolution</strong> mechanism, which ensures that changes are deployed in the correct order. In complex data environments, some database objects depend on others. For example, a <strong>view</strong> might rely on an underlying <strong>table</strong>, or a <strong>stored procedure</strong> might reference a <strong>sequence</strong>. DLSync automatically detects these inter-dependencies and arranges the scripts in the correct order before deployment.</p><p>By doing this, DLSync ensures that:</p><ul><li>Dependencies are respected, preventing errors or failures during deployment.</li><li>Changes are applied in the proper sequence, even if the scripts are developed or committed out of order.</li><li>Developers don’t need to manually manage or reorder scripts, saving time and reducing the risk of human error.</li></ul><p>This <strong>dependency resolution</strong> is critical for large teams and complex Snowflake environments, where inter-dependencies between database objects can easily become a source of confusion or failure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*V5oOk5Zd4bMJiOb3" /></figure><h4><strong>Unit Testing</strong></h4><p>DLSync introduces seamless unit testing to database change management, enabling developers to validate database changes with precision before deployment. With this feature you can write and execute tests to ensure that individual operations perform as expected, reducing the risk of errors during production deployment. This approach integrates test driven practices into your snowflake code allowing developers to catch bugs early and improve code quality.</p><h4><strong>Parametrization</strong></h4><p>In modern data environments, different database instances (e.g., development, staging, production) often require slight variations in how certain scripts are applied. <strong>DLSync</strong> supports <strong>parameterization</strong> of scripts, allowing you to define variables that change between different environments.</p><h4><strong>Rollback Made Simple</strong></h4><p>Mistakes happen, and sometimes a deployment needs to be undone. DLSync makes <strong>rollback</strong> simple and intuitive. If you need to roll back a deployment, all you need to do is roll back to the previous version of the script in your code repository and trigger the rollback module in DLSync. The tool will handle the reversal of changes for you, ensuring that your database is returned to its previous state without requiring complex manual intervention.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ha0hvqAISj3qbqIY" /></figure><h4><strong>Verify Module for Consistency</strong></h4><p>To ensure that deployments are successful and that your database is always in sync with your scripts, DLSync includes a <strong>verify module</strong>. This module checks the current state of database objects against the latest scripts to confirm that everything is deployed correctly and as expected. If any discrepancies are found (e.g., out-of-sync database changes), the verify module will flag them, helping you catch potential issues before they affect production.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3cx2D6fi_gGBE51e" /></figure><h4><strong>Script Creation for easy setup</strong></h4><p>DLSync includes a <strong>script creation</strong> feature that simplifies the process of setting up and adopting the tool. This feature automatically generates SQL script files for each database object based on the current state of your Snowflake database. Even if the objects were created manually or with a different database change management tool, DLSync will generate the corresponding scripts reflecting the existing database state and structure. This makes it easy to transition to DLSync from other tools, ensuring a smooth adoption process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JFHSafChh9hKUc0q" /></figure><h3>How DLSync Benefits Teams</h3><h4>Streamlined Database Management</h4><p>With DLSync, managing database changes becomes far more streamlined and transparent. Developers and data engineers can easily track changes through version-controlled scripts, apply them automatically, and verify the success of deployments without the need for manual intervention. This saves time, reduces errors, and accelerates the overall development process.</p><h4>Enhanced Collaboration and Auditability</h4><p>By storing database object scripts in a Git repository, <strong>DLSync</strong> fosters better collaboration and ensures full traceability of changes. Teams can leverage their existing <strong>Version Control System (Git)</strong> processes to treat their Snowflake database as code. This enables seamless code reviews, where developers can simply check the Git diff to identify changes made to any object. Additionally, Git’s built-in versioning capabilities support parallel feature development, preventing conflicts when multiple team members are working on the same object. Unlike traditional database change management tools, where the latest script may overwrite previous contributions, DLSync ensures that changes are tracked and contributions are preserved. Furthermore, this approach maintains a clear audit trail of all database modifications, which is vital for compliance and troubleshooting.</p><h4>Efficient Deployment and Risk Reduction</h4><p><strong>DLSync</strong> enables teams to deploy changes to their Snowflake environments with greater efficiency by automating the deployment process and carefully managing database changes. By identifying changed scripts and tracking dependencies between database objects, it ensures that only the necessary changes are applied in the correct order, reducing the risk of manual errors. This streamlined approach helps ensure that deployments are smooth, consistent, and repeatable.</p><p>Moreover, DLSync significantly minimizes the risk of failure during deployment. It leverages the <strong>verify module</strong> to ensure deployments are accurate and reliable. In the event of unexpected issues (as often happens in production), there’s no need to manually figure out how to roll back your database changes. Simply rolling back your Git repository is all it takes to undo the changes. As a result, teams can confidently manage their database updates without worrying about deployment failures or errors.</p><h3>Conclusion</h3><p>Managing database changes in Snowflake can be a challenging task, especially as your environment grows and the complexity of your database objects increases. <strong>DLSync</strong> offers a robust solution for teams looking to take control of their Snowflake deployments with ease and precision.</p><p>By leveraging DLSync’s state-based and migration-based change management, unit testing, automated dependency resolution, rollback capabilities, and instance-specific configurations, you can ensure that your Snowflake database evolves smoothly, reliably, and with minimal risk. Whether you’re a small team or a large enterprise, DLSync is the perfect tool to help you manage and scale your Snowflake environment while maintaining consistency and agility.</p><p>If you’re looking to optimize your Snowflake deployments and embrace best practices for database change management, DLSync might just be the tool you need.</p><p>For further information please visit the github repository <a href="https://github.com/Snowflake-Labs/dlsync">DLSync</a>.</p><p><a href="https://github.com/Snowflake-Labs/dlsync">https://github.com/Snowflake-Labs/dlsync</a></p><p>NOTE: The content available in this topic and linked from it is not supported by Snowflake, nor does Snowflake warrant that the content is accurate. All code is provided “AS IS” and without warranty.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8dc8a1413ae8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/snowflake/dlsync-a-modern-way-to-manage-your-snowflake-database-changes-8dc8a1413ae8">DLSync: A Modern Way to Manage your Snowflake Database Changes</a> was originally published in <a href="https://medium.com/snowflake">Snowflake Builders Blog: Data Engineers, App Developers, AI, &amp; Data Science</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>