New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dbt-sas

Package Overview
Dependencies
Maintainers
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dbt-sas

dbt (data build tool) adapter for SAS

  • 1.3.0a17
  • PyPI
  • Socket score

Maintainers
3

SAS DBT adapter

Build Status PyPI version PyPI License Code style: black

The dbt-sas package allows dbt to connect to SAS.

Installation

pip install dbt-sas

Configurations

Basic profile.yml for connecting to SAS:

sas-test:
  outputs:
    dev:
      type: sas
      host: SAS host
      port: 8591
      database: sas (keep 'sas', don't change)
      schema: default libray name
      user: SAS username
      password: SAS password
      autoexec: optional local path of autoexec.sas file
      lib_base_path: optional path (on the SAS server) for new libraries
      threads: 1
      fail_on_warnings: False
      lib_name_strict_mode: False
  target: dev

KeyRequiredDescription
typeYesThe specific adapter to use (sas)
hostYesSAS server hostname
portYesSAS server port
databaseYessas, don't change
schemaYesDefault SAS libname
usernameYesThe username to use to connect to the server
passwordYesThe password to use for authenticating to the server
handlerYesSAS handler ws (default) or saspy
autoexecNoLocal path of autoexec.sas file
lib_base_pathNoBase path on the SAS server for new libraries
fail_on_warningsNoRaise and error if it encounters a warning
lib_name_strict_modeNoEnable strict libname/identifier check

Features

KeySupportedDescription
TestsYesRun dbt tests on SAS
Load seed filesYesLoad seeds from CSV files to SAS
View MaterializationYesMaterialize dbt models as views in SAS
Table MaterializationYesMaterialize dbt models as tables in SAS
Ephemeral MaterializationPartialMaterialize dbt ephemeral tables as temporary views in SAS
Incremental MaterializationNo
SnapshotsNo
GrantsNoSQL grants are not supported by SAS

Limitations

  • Schemas (lib names) are limited to 8 characters.
  • Table names, column names, and aliases are limited to 32 characters.

Usage

  • Create dbt project, choose sas database and set up connection
$ dbt init <project_name>

Query Logging

Enable additional logging by setting the DBT_SAS_LOG environment variable to the log filename, e.g.:

export DBT_SAS_LOG='file.log'

Select the log families, e.g.:

export DBT_SAS_FAMILY='sas,sql'

Log families are:

  • sas
  • sql
  • original_sql

Adapter Testing

  • Install dev requirements
$ pip install -r dev_requirements.txt
  • Run pytest
$ python -m pytest tests/

Licence

Apache License, Version 2.0

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc