Skip to content

slingdata-io/sling-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

drawing

Slings from a data source to a data target.

How To Use

  1. Somewhere in your repo, create a Replication YAML file, something like this:
source: MY_POSTGRES
target: MY_SNOWFLAKE

# default config options which apply to all streams
defaults:
  mode: full-refresh # valid choices: incremental, truncate, full-refresh, snapshot

  # specify pattern to use for object naming in target connection, see below for options
  object: '{target_schema}.{stream_schema}_{stream_table}'

  # source_options: # optional for more advanced options for source connection
  # target_options: # optional for more advanced options for target connection

streams:
  finance.accounts:
  finance.users:
    disabled: true
  finance.departments:
    object: '{target_schema}.finance_departments_old' # overwrite default object
    source_options:
      empty_as_null: false
  finance."Transactions":
    mode: incremental # overwrite default mode
    primary_key: id
    update_key: last_updated_at
  1. Add your Connection credentials to your Github Secrets. In our example above, we need to set the connection URL strings as secrets in MY_POSTGRES and MY_SNOWFLAKE. See here for examples.

  2. Add this step to your Github Actions workflow:

steps:
  - uses: slingdata-io/sling-action@v2
    with:
      command: run -r my-replication.yaml
    env:
      MY_POSTGRES: ${{ secrets.MY_POSTGRES }}
      MY_SNOWFLAKE: ${{ secrets.MY_SNOWFLAKE }}
  1. Run your action! Reach out to support@slingdata.io if facing any issues.

About

Github Action for Sling

Resources

License

Stars

Watchers

Forks

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy