Skip to content

docs: simplify query_as usage examples #453

docs: simplify query_as usage examples

docs: simplify query_as usage examples #453

Workflow file for this run

name: test
on:
pull_request:
push:
branches:
- main
env:
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
RUSTFLAGS: -Dwarnings
SNOWFLAKE_USERNAME: ${{ secrets.SNOWFLAKE_USERNAME }}
SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }}
SNOWFLAKE_ROLE: ${{ secrets.SNOWFLAKE_ROLE }}
SNOWFLAKE_WAREHOUSE: ${{ secrets.SNOWFLAKE_WAREHOUSE }}
SNOWFLAKE_DATABASE: ${{ secrets.SNOWFLAKE_DATABASE }}
SNOWFLAKE_SCHEMA: ${{ secrets.SNOWFLAKE_SCHEMA }}
SNOWFLAKE_PRIVATE_KEY: ${{ secrets.SNOWFLAKE_PRIVATE_KEY }}
SNOWFLAKE_PRIVATE_KEY_PASSWORD: ${{ secrets.SNOWFLAKE_PRIVATE_KEY_PASSWORD }}
jobs:
test:
name: Rust ${{ matrix.version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
version: ["1.88", stable]
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- uses: dtolnay/rust-toolchain@f7ccc83f9ed1e5b9c81d8a67d7ad1a747e22a561 # 2025-12-17
with:
toolchain: ${{ matrix.version }}
components: rustfmt, clippy
- name: Check formatting
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy --profile ci --workspace --lib --tests --examples --all-features -- -D warnings
- name: Check default features
run: cargo check --profile ci --workspace --lib --tests --examples
- name: Check all features
run: cargo check --profile ci --workspace --lib --tests --examples --all-features
- name: Check without default features
run: cargo check --profile ci --workspace --lib --tests --examples --no-default-features
- name: Test library
run: cargo test --profile ci --workspace --all-features --lib
- name: Test derive macro
run: cargo test --profile ci --workspace --all-features --test derive_trybuild
- name: Test integration
run: cargo test --profile ci --workspace --test integration
- name: Test documentation
run: cargo test --profile ci --workspace --all-features --doc