Lädt...


🔧 Universal Data Migration: Using Slingdata to Transfer Data Between Databases


Nachrichtenbereich: 🔧 Programmierung
🔗 Quelle: dev.to

Overview

Data management can be complex, especially when dealing with high-volume data pipelines. Whether you're moving data between databases, from file systems to databases, or vice versa, the Extract & Load (EL) approach can streamline these processes. Enter Slingdata, a powerful, free CLI tool built with Go that offers a straightforward solution for creating and maintaining robust data pipelines.

What is Slingdata?

Slingdata is a passion project turned into a practical tool that simplifies data movement across various systems. Its key focus is on the Extract & Load (EL) process, enabling efficient data transfer between:

  • Database to Database
  • File System to Database
  • Database to File System

Key Features of Slingdata

  • Single Binary deployment (built with Go). See the installation page.
  • Use Custom SQL as a stream.
  • Manage / View / Test / Discover your connections with the sling conns sub-command.
  • Use Environment Variables for connections.
  • Provide YAML or JSON configurations (perfect for git version control).
  • Powerful Replication logic, to replicate many tables with a wildcard (my_schema.*).
  • Reads your existing DBT connections.
  • Use your environment variable in your YAML / JSON config (SELECT * from my_table where date = '{date}').
  • Convenient Transformations, such as the flatten option, which auto-creates columns from your nested fields.
  • Run Pre & Post SQL commands.
  • And many more!

Sample EL Process: ClickHouse to PostgreSQL

To showcase Slingdata’s capabilities, let's walk through a sample Extract & Load process moving data from ClickHouse to PostgreSQL.

Prerequisites

Ensure you have:

Step 1: Configure the Source Database

Let's assume our source database is ClickHouse. We can export a new environment variable or add the connection to the env.yaml of Slingdata files:

export MARKETING_URL="postgresql://postgres:postgres@localhost:5432/postgres?sslmode=disable"

To test this connection:

sling conns test MARKETING_URL

You should see the result:

INF success!

We will do the same for ClickHouse:

export DATAWAREHOUSE_URL="http://sling_user:sling_pass@clickhouse:8123/marketing"

To test this connection:

sling conns test DATAWAREHOUSE_URL

You should see the result:

INF success!

Now, let's create a database and a table in ClickHouse:

create database marketing;

CREATE TABLE `marketing`.users (
    id UInt64,
    name String,
    family String,
    age UInt8
) ENGINE = MergeTree()
ORDER BY id;

And in PostgreSQL, create a table with the same schema:

create table users(
   id serial not null primary key,
   name text not null,
   family text,
   age text not null
);

Insert data into ClickHouse:

insert into marketing.users values(1,'Shahab', 'Ranjbary', 28);
insert into marketing.users values(2,'Sepher', 'Ranjbary', 18);
insert into marketing.users values(3,'Mostafa', 'Fekri', 38);

Now, to move data to PostgreSQL, you can either create a replication file or run the following command:

sling run --src-conn DATAWAREHOUSE_URL --src-stream marketing.users --tgt-conn MARKETING_URL --tgt-object public.users

Conclusion

Slingdata offers a powerful and flexible way to manage data pipelines with ease. Its extensive features, combined with simple configurations and robust performance, make it an excellent tool for anyone dealing with high-volume data transfers.

...

🔧 Universal Data Migration: Using Slingdata to Transfer Data Between Databases


📈 101.7 Punkte
🔧 Programmierung

📰 MobiKin Transfer for Mobile (Review): Transfer data between Android phones without overwriting


📈 32.58 Punkte
🤖 Android Tipps

📰 MobiKin Transfer for Mobile (Review): Transfer data between Android phones without overwriting


📈 32.58 Punkte
🖥️ Betriebssysteme

🔧 Data Transfer Between Fragment and BottomSheetDialogFragment Using Dagger and Navigation Component


📈 26.73 Punkte
🔧 Programmierung

🔧 How to transfer data between tabs using a Chrome extension


📈 26.73 Punkte
🔧 Programmierung

🎥 Get Started with the New Database Migration Guides to Migrate Your Databases to Azure | Data Exposed


📈 25.49 Punkte
🎥 Video | Youtube

🔧 Get Started with the New Database Migration Guides to Migrate Your Databases to Azure | Data Exposed


📈 25.49 Punkte
🔧 Programmierung

🔧 Why are NoSQL Databases beeter at Horizontal Scaling Compared to SQL Databases


📈 24.85 Punkte
🔧 Programmierung

🔧 Comparing Graph Databases with Relational Databases


📈 24.85 Punkte
🔧 Programmierung

🔧 NoSQL Databases vs Graph Databases: Which one should you use?


📈 24.85 Punkte
🔧 Programmierung

🔧 Graph Databases vs Relational Databases: What and why?


📈 24.85 Punkte
🔧 Programmierung

🐧 How To Transfer Files Between Servers Using SSH


📈 24.45 Punkte
🐧 Server

🔧 Stop Using Databases and Start Using Data Services


📈 24.21 Punkte
🔧 Programmierung

🎥 Migrating to SQL: Cloud Migration Strategies and Phases in Migration Journey (Ep. 1) | Data Exposed


📈 23.86 Punkte
🎥 Video | Youtube

🔧 Migrating to SQL: Cloud Migration Strategies and Phases in Migration Journey (Ep. 1) | Data Exposed


📈 23.86 Punkte
🔧 Programmierung

🪟 Best Windows 11 Migration Tools For Easy Data Transfer [5+]


📈 23.67 Punkte
🪟 Windows Tipps

📰 Invoke-Transfer - PowerShell Clipboard Data Transfer


📈 23.48 Punkte
📰 IT Security Nachrichten

🎥 Azure Migration | New unified tools for discovering and assessing databases, .NET apps and VMs


📈 23.21 Punkte
🎥 Video | Youtube

📰 Wasabi Cloud Sync Manager simplifies data migration and replication within and between clouds


📈 22.17 Punkte
📰 IT Security Nachrichten

🔧 Data Transfer between 2 PC's in lemon terms


📈 21.98 Punkte
🔧 Programmierung

🪟 Wondershare MobileTrans v4.0 Review: Transfer, backup, restore data between phones


📈 21.98 Punkte
🪟 Windows Tipps

🐧 Transfer Whatsapp Data Between iPhone And Android With Tenorshare iCareFone


📈 21.98 Punkte
🐧 Linux Tipps

📰 How To Easily Back Up & Transfer Data Between iPhones For Free


📈 21.98 Punkte
🖥️ Betriebssysteme

🪟 How To Easily Back Up & Transfer Data Between iPhones For Free


📈 21.98 Punkte
🪟 Windows Tipps

🔧 Navigating the Hidden Costs of Cloud Migration: A Pre-Migration Checklist


📈 21.58 Punkte
🔧 Programmierung

🔧 GBase 8a Migration Plan Based on Netezza (1) - Migration Methods and Recommendations


📈 21.58 Punkte
🔧 Programmierung

📰 The Security Problem With Climate Migration Isn’t the Migration


📈 21.58 Punkte
📰 IT Security Nachrichten

🔧 Database Migration Plan: Avoiding Common Pitfalls in Open Source Migration


📈 21.58 Punkte
🔧 Programmierung

🔧 Differences Between SQL and NoSQL Databases and Their Combined Use in Projects


📈 21.52 Punkte
🔧 Programmierung

🔧 ChatGPT: Your Guide to SQL Query Translation Between Databases


📈 21.52 Punkte
🔧 Programmierung

matomo