altertable-lakehouse 0.2.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8292ffff4927b361aa1a04dcc2352542e008a977d7ca5d3d91e5913532f490f5
4
- data.tar.gz: e00935a9e22c975c3318b13f2cf05512b6c5082e0109975a01057287775c7897
3
+ metadata.gz: d635646f7f35014bb92fadccf1f9366de1881a9b8340a785f2acfe767073ccd1
4
+ data.tar.gz: ec0735c51c64be58de7e18720e8b97113287324f47317afd34ba5af2193d5439
5
5
  SHA512:
6
- metadata.gz: 443d6b8c28ff54b50dfc7fa52a8d9ac00a44a5398d92fc385ff60e8add97fc63e23be05a5d1b81674e8ffa568c0f8b4eecca80dfb6daf521c50e41af29d5c826
7
- data.tar.gz: c6239d5ff43b91c17652401ef67c8258142df8db73eb6e852988ab6c404f8dae066c32a2a333033852b2f0b3a1535cb5e672bb9122b925fa0988c1f4291e37e7
6
+ metadata.gz: 41343b469a2ccc2b24baa8342ae06ae51160c91470e7946e3e54fd931f9b504a5724be67c30a11da27d81f64dff5c9754ac0f5033ca0ba2a9db1b0bac5c82def
7
+ data.tar.gz: 3e4657c5f172e33d5e2c2e1b67fec4fd04d68ec3f415c6589d63b10d542ee294759eaf3f3a5067414acb58a91ce47cc39c7687a8321747badd4111f634ac5550
@@ -0,0 +1,47 @@
1
+ name: Bug Report
2
+ description: Report a bug
3
+ labels: ["bug"]
4
+ body:
5
+ - type: textarea
6
+ id: description
7
+ attributes:
8
+ label: Description
9
+ description: A clear description of the bug.
10
+ validations:
11
+ required: true
12
+ - type: textarea
13
+ id: reproduction
14
+ attributes:
15
+ label: Steps to Reproduce
16
+ description: Minimal code or steps to reproduce the issue.
17
+ validations:
18
+ required: true
19
+ - type: textarea
20
+ id: expected
21
+ attributes:
22
+ label: Expected Behavior
23
+ validations:
24
+ required: true
25
+ - type: textarea
26
+ id: actual
27
+ attributes:
28
+ label: Actual Behavior
29
+ validations:
30
+ required: true
31
+ - type: input
32
+ id: version
33
+ attributes:
34
+ label: SDK Version
35
+ validations:
36
+ required: true
37
+ - type: input
38
+ id: runtime
39
+ attributes:
40
+ label: "{language} Version"
41
+ validations:
42
+ required: true
43
+ - type: dropdown
44
+ id: os
45
+ attributes:
46
+ label: Operating System
47
+ options: [macOS, Linux, Windows, Other]
@@ -0,0 +1,21 @@
1
+ name: Feature Request
2
+ description: Suggest a feature
3
+ labels: ["enhancement"]
4
+ body:
5
+ - type: textarea
6
+ id: problem
7
+ attributes:
8
+ label: Problem
9
+ description: What problem does this solve?
10
+ validations:
11
+ required: true
12
+ - type: textarea
13
+ id: solution
14
+ attributes:
15
+ label: Proposed Solution
16
+ validations:
17
+ required: true
18
+ - type: textarea
19
+ id: alternatives
20
+ attributes:
21
+ label: Alternatives Considered
@@ -2,39 +2,66 @@ name: CI
2
2
 
3
3
  on:
4
4
  push:
5
- branches: [ main ]
6
- pull_request:
7
- branches: [ main ]
8
-
5
+ branches: [main]
6
+ pull_request: {}
9
7
  jobs:
10
8
  test:
11
9
  runs-on: ubuntu-latest
12
10
  strategy:
13
11
  matrix:
14
- ruby-version: ['3.0', '3.1', '3.2', '3.3', '3.4', '4.0']
12
+ ruby-version: ["3.2", "3.3", "3.4", "4.0"]
13
+
14
+ services:
15
+ altertable:
16
+ image: ghcr.io/altertable-ai/altertable-mock:latest
17
+ ports:
18
+ - 15000:15000
19
+ env:
20
+ ALTERTABLE_MOCK_USERS: testuser:testpass
21
+ options: >-
22
+ --health-cmd "exit 0"
23
+ --health-interval 5s
24
+ --health-timeout 3s
25
+ --health-retries 3
26
+ --health-start-period 10s
15
27
 
16
28
  steps:
17
- - uses: actions/checkout@v4
18
- with:
19
- submodules: recursive
29
+ - uses: actions/checkout@v4
30
+ with:
31
+ submodules: recursive
20
32
 
21
- - name: Set up Ruby
22
- uses: ruby/setup-ruby@v1
23
- with:
24
- ruby-version: ${{ matrix.ruby-version }}
25
- bundler-cache: true # runs 'bundle install' and caches installed gems automatically
33
+ - name: Set up Ruby
34
+ uses: ruby/setup-ruby@v1
35
+ with:
36
+ ruby-version: ${{ matrix.ruby-version }}
37
+ bundler-cache: true
26
38
 
27
- - name: Run tests
28
- run: bundle exec rake spec
39
+ - name: Run tests
40
+ run: bundle exec rake spec
29
41
 
30
42
  lint:
31
43
  runs-on: ubuntu-latest
32
44
  steps:
33
- - uses: actions/checkout@v4
34
- - name: Set up Ruby
35
- uses: ruby/setup-ruby@v1
36
- with:
37
- ruby-version: '3.4'
38
- bundler-cache: true
39
- - name: Run RuboCop
40
- run: bundle exec rubocop
45
+ - uses: actions/checkout@v4
46
+ - name: Set up Ruby
47
+ uses: ruby/setup-ruby@v1
48
+ with:
49
+ ruby-version: "3.4"
50
+ bundler-cache: true
51
+ - name: Run RuboCop
52
+ run: bundle exec rubocop
53
+
54
+ typing:
55
+ name: "Typing"
56
+ runs-on: ubuntu-latest
57
+ steps:
58
+ - uses: actions/checkout@v4
59
+ - name: Set up Ruby
60
+ uses: ruby/setup-ruby@v1
61
+ with:
62
+ ruby-version: "3.4"
63
+ bundler-cache: true
64
+ - name: Validate RBS
65
+ run: bundle exec rbs validate
66
+ - name: Typecheck with Sorbet
67
+ run: bundle exec srb tc
@@ -0,0 +1,47 @@
1
+ name: Release Please
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+
8
+ jobs:
9
+ check:
10
+ runs-on: ubuntu-latest
11
+
12
+ permissions:
13
+ contents: write
14
+ pull-requests: write
15
+
16
+ steps:
17
+ - uses: googleapis/release-please-action@v4
18
+ id: release
19
+ with:
20
+ token: ${{ secrets.GITHUB_TOKEN }}
21
+ config-file: release-please-config.json
22
+ manifest-file: .release-please-manifest.json
23
+ outputs:
24
+ tag_name: ${{ steps.release.outputs.tag_name }}
25
+ release_created: ${{ steps.release.outputs.release_created }}
26
+
27
+ publish:
28
+ needs: check
29
+
30
+ if: ${{ needs.check.outputs.release_created }}
31
+
32
+ runs-on: ubuntu-latest
33
+
34
+ permissions:
35
+ contents: write
36
+ pull-requests: write
37
+ id-token: write
38
+
39
+ steps:
40
+ - uses: actions/checkout@v4
41
+ with:
42
+ persist-credentials: false
43
+ - uses: ruby/setup-ruby@v1
44
+ with:
45
+ ruby-version: 3.4
46
+ bundler-cache: true
47
+ - uses: rubygems/release-gem@v1
@@ -0,0 +1,29 @@
1
+ name: Semantic Pull Request
2
+ on:
3
+ pull_request_target:
4
+ types:
5
+ - opened
6
+ - edited
7
+ - synchronize
8
+
9
+ jobs:
10
+ main:
11
+ name: Validate PR title
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: amannn/action-semantic-pull-request@v5
15
+ env:
16
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17
+ with:
18
+ types: |
19
+ feat
20
+ fix
21
+ perf
22
+ revert
23
+ docs
24
+ style
25
+ chore
26
+ refactor
27
+ test
28
+ build
29
+ ci
data/.gitignore ADDED
@@ -0,0 +1 @@
1
+ .rspec_status
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.4.0"
3
+ }
data/CHANGELOG.md CHANGED
@@ -2,6 +2,24 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [0.4.0](https://github.com/altertable-ai/altertable-lakehouse-ruby/compare/altertable-lakehouse/v0.3.0...altertable-lakehouse/v0.4.0) (2026-05-27)
6
+
7
+
8
+ ### Features
9
+
10
+ * add v0.11.0 lakehouse operations ([#27](https://github.com/altertable-ai/altertable-lakehouse-ruby/issues/27)) ([cc52dbb](https://github.com/altertable-ai/altertable-lakehouse-ruby/commit/cc52dbb4ef995b027697f6fa68164f6704e02058))
11
+ * **explain:** add /explain support ([#31](https://github.com/altertable-ai/altertable-lakehouse-ruby/issues/31)) ([b326e94](https://github.com/altertable-ai/altertable-lakehouse-ruby/commit/b326e949742f9f4c89e5ea2aeb67028513e8a118))
12
+ * **typings:** add RBI & RBS typings ([#29](https://github.com/altertable-ai/altertable-lakehouse-ruby/issues/29)) ([c569e6d](https://github.com/altertable-ai/altertable-lakehouse-ruby/commit/c569e6d58c1c36af2f51a329591eebd2e0677d17))
13
+
14
+ ## [0.3.0](https://github.com/altertable-ai/altertable-lakehouse-ruby/compare/altertable-lakehouse-v0.2.0...altertable-lakehouse/v0.3.0) (2026-03-08)
15
+
16
+
17
+ ### Features
18
+
19
+ * bootstrap initial SDK based on specs v0.1.0 ([#2](https://github.com/altertable-ai/altertable-lakehouse-ruby/issues/2)) ([7bfca30](https://github.com/altertable-ai/altertable-lakehouse-ruby/commit/7bfca30d2f1db4d1892eb75f819343c9922962c7))
20
+ * optional http client (faraday/httpx/net-http) with adapter pattern ([#15](https://github.com/altertable-ai/altertable-lakehouse-ruby/issues/15)) ([8189d9f](https://github.com/altertable-ai/altertable-lakehouse-ruby/commit/8189d9f5313d1728ece0ec58f09c74d9e0e61e5a))
21
+ * update SDK to specs v0.3.0 ([#5](https://github.com/altertable-ai/altertable-lakehouse-ruby/issues/5)) ([23e3a55](https://github.com/altertable-ai/altertable-lakehouse-ruby/commit/23e3a5507347c66616f995710392de3e2690eb78))
22
+
5
23
  ## [Unreleased]
6
24
 
7
25
  ### Changed
@@ -0,0 +1,83 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or advances of any kind
22
+ * Trolling, insulting or derogatory comments, and personal or political attacks
23
+ * Public or private harassment
24
+ * Publishing others' private information, such as a physical or email address, without their explicit permission
25
+ * Other conduct which could reasonably be considered inappropriate in a professional setting
26
+
27
+ ## Enforcement Responsibilities
28
+
29
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
30
+
31
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
32
+
33
+ ## Scope
34
+
35
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
36
+
37
+ ## Enforcement
38
+
39
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at opensource@altertable.ai. All complaints will be reviewed and investigated promptly and fairly.
40
+
41
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
42
+
43
+ ## Enforcement Guidelines
44
+
45
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
46
+
47
+ ### 1. Correction
48
+
49
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
50
+
51
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
52
+
53
+ ### 2. Warning
54
+
55
+ **Community Impact**: A violation through a single incident or series of actions.
56
+
57
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
58
+
59
+ ### 3. Temporary Ban
60
+
61
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
62
+
63
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
64
+
65
+ ### 4. Permanent Ban
66
+
67
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
68
+
69
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
70
+
71
+ ## Attribution
72
+
73
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.1, available at [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
74
+
75
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
76
+
77
+ For answers to common questions about this code of conduct, see the FAQ at [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at [https://www.contributor-covenant.org/translations][translations].
78
+
79
+ [homepage]: https://www.contributor-covenant.org
80
+ [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
81
+ [Mozilla CoC]: https://github.com/mozilla/diversity
82
+ [FAQ]: https://www.contributor-covenant.org/faq
83
+ [translations]: https://www.contributor-covenant.org/translations
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,32 @@
1
+ # Contributing to altertable-lakehouse-ruby
2
+
3
+ ## Development Setup
4
+
5
+ 1. Fork and clone the repository
6
+ 2. Install dependencies: `bundle install`
7
+ 3. Run tests: `bundle exec rspec`
8
+
9
+ ## Making Changes
10
+
11
+ 1. Create a branch from `main`
12
+ 2. Make your changes
13
+ 3. Add or update tests
14
+ 4. Run the full check suite: `bundle exec rake`
15
+ 5. Commit using [Conventional Commits](https://www.conventionalcommits.org/) (`feat:`, `fix:`, `docs:`, etc.)
16
+ 6. Open a pull request
17
+
18
+ ## Code Style
19
+
20
+ This project uses `RuboCop` for linting and formatting. Run `bundle exec rubocop` before committing.
21
+
22
+ ## Tests
23
+
24
+ - Unit tests are required for all new functionality
25
+ - Integration tests run in CI when credentials are available
26
+ - Run tests locally: `bundle exec rspec`
27
+
28
+ ## Pull Requests
29
+
30
+ - Keep PRs focused on a single change
31
+ - Update `CHANGELOG.md` under `[Unreleased]`
32
+ - Ensure CI passes before requesting review
data/Gemfile CHANGED
@@ -5,3 +5,5 @@ gemspec
5
5
  gem "rake", "~> 13.0"
6
6
  gem "rspec", "~> 3.0"
7
7
  gem "faraday-net_http"
8
+
9
+ gem "tapioca", require: false, group: %i[development test]
data/Gemfile.lock ADDED
@@ -0,0 +1,156 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ altertable-lakehouse (0.4.0)
5
+ base64
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ addressable (2.8.9)
11
+ public_suffix (>= 2.0.2, < 8.0)
12
+ ast (2.4.3)
13
+ base64 (0.3.0)
14
+ benchmark (0.5.0)
15
+ bigdecimal (4.0.1)
16
+ diff-lcs (1.6.2)
17
+ docker-api (2.4.0)
18
+ excon (>= 0.64.0)
19
+ multi_json
20
+ erubi (1.13.1)
21
+ excon (1.4.0)
22
+ logger
23
+ faraday (2.14.1)
24
+ faraday-net_http (>= 2.0, < 3.5)
25
+ json
26
+ logger
27
+ faraday-net_http (3.4.2)
28
+ net-http (~> 0.5)
29
+ faraday-retry (2.4.0)
30
+ faraday (~> 2.0)
31
+ http-2 (1.1.3)
32
+ httpx (1.7.3)
33
+ http-2 (>= 1.1.3)
34
+ json (2.18.1)
35
+ json-schema (6.1.0)
36
+ addressable (~> 2.8)
37
+ bigdecimal (>= 3.1, < 5)
38
+ language_server-protocol (3.17.0.5)
39
+ lint_roller (1.1.0)
40
+ logger (1.7.0)
41
+ mcp (0.8.0)
42
+ json-schema (>= 4.1)
43
+ multi_json (1.19.1)
44
+ net-http (0.9.1)
45
+ uri (>= 0.11.1)
46
+ netrc (0.11.0)
47
+ parallel (1.27.0)
48
+ parser (3.3.10.2)
49
+ ast (~> 2.4.1)
50
+ racc
51
+ prism (1.9.0)
52
+ public_suffix (7.0.5)
53
+ racc (1.8.1)
54
+ rainbow (3.1.1)
55
+ rake (13.3.1)
56
+ rbi (0.3.9)
57
+ prism (~> 1.0)
58
+ rbs (>= 3.4.4)
59
+ rbs (4.0.2)
60
+ logger
61
+ prism (>= 1.6.0)
62
+ tsort
63
+ regexp_parser (2.11.3)
64
+ require-hooks (0.2.2)
65
+ rexml (3.4.4)
66
+ rspec (3.13.2)
67
+ rspec-core (~> 3.13.0)
68
+ rspec-expectations (~> 3.13.0)
69
+ rspec-mocks (~> 3.13.0)
70
+ rspec-core (3.13.6)
71
+ rspec-support (~> 3.13.0)
72
+ rspec-expectations (3.13.5)
73
+ diff-lcs (>= 1.2.0, < 2.0)
74
+ rspec-support (~> 3.13.0)
75
+ rspec-mocks (3.13.8)
76
+ diff-lcs (>= 1.2.0, < 2.0)
77
+ rspec-support (~> 3.13.0)
78
+ rspec-support (3.13.7)
79
+ rubocop (1.85.1)
80
+ json (~> 2.3)
81
+ language_server-protocol (~> 3.17.0.2)
82
+ lint_roller (~> 1.1.0)
83
+ mcp (~> 0.6)
84
+ parallel (~> 1.10)
85
+ parser (>= 3.3.0.2)
86
+ rainbow (>= 2.2.2, < 4.0)
87
+ regexp_parser (>= 2.9.3, < 3.0)
88
+ rubocop-ast (>= 1.49.0, < 2.0)
89
+ ruby-progressbar (~> 1.7)
90
+ unicode-display_width (>= 2.4.0, < 4.0)
91
+ rubocop-ast (1.49.0)
92
+ parser (>= 3.3.7.2)
93
+ prism (~> 1.7)
94
+ ruby-progressbar (1.13.0)
95
+ sorbet (0.6.12997)
96
+ sorbet-static (= 0.6.12997)
97
+ sorbet-runtime (0.6.12997)
98
+ sorbet-static (0.6.12997-universal-darwin)
99
+ sorbet-static-and-runtime (0.6.12997)
100
+ sorbet (= 0.6.12997)
101
+ sorbet-runtime (= 0.6.12997)
102
+ spoom (1.7.8)
103
+ erubi (>= 1.10.0)
104
+ prism (>= 0.28.0)
105
+ rbi (>= 0.3.3)
106
+ rbs (>= 4.0.0.dev.4)
107
+ rexml (>= 3.2.6)
108
+ sorbet-static-and-runtime (>= 0.5.10187)
109
+ thor (>= 0.19.2)
110
+ tapioca (0.17.7)
111
+ benchmark
112
+ bundler (>= 2.2.25)
113
+ netrc (>= 0.11.0)
114
+ parallel (>= 1.21.0)
115
+ rbi (>= 0.3.1)
116
+ require-hooks (>= 0.2.2)
117
+ sorbet-static-and-runtime (>= 0.5.11087)
118
+ spoom (>= 1.7.0)
119
+ thor (>= 1.2.0)
120
+ yard-sorbet
121
+ testcontainers (0.2.0)
122
+ testcontainers-core (= 0.2.0)
123
+ testcontainers-core (0.2.0)
124
+ docker-api (~> 2.2)
125
+ thor (1.5.0)
126
+ tsort (0.2.0)
127
+ unicode-display_width (3.2.0)
128
+ unicode-emoji (~> 4.1)
129
+ unicode-emoji (4.2.0)
130
+ uri (1.1.1)
131
+ yard (0.9.43)
132
+ yard-sorbet (0.9.0)
133
+ sorbet-runtime
134
+ yard
135
+
136
+ PLATFORMS
137
+ arm64-darwin-25
138
+ x86_64-linux
139
+
140
+ DEPENDENCIES
141
+ altertable-lakehouse!
142
+ faraday (~> 2.12)
143
+ faraday-net_http
144
+ faraday-retry (~> 2.0)
145
+ httpx
146
+ rake (~> 13.0)
147
+ rbs
148
+ rspec (~> 3.0)
149
+ rubocop (~> 1.50)
150
+ sorbet
151
+ sorbet-runtime
152
+ tapioca
153
+ testcontainers
154
+
155
+ BUNDLED WITH
156
+ 4.0.7
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2026 Altertable AI
3
+ Copyright (c) Altertable
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -34,7 +34,8 @@ client.append(
34
34
  catalog: "main",
35
35
  schema: "public",
36
36
  table: "events",
37
- payload: { user_id: 123, event: "signup", timestamp: Time.now.iso8601 }
37
+ payload: { user_id: 123, event: "signup", timestamp: Time.now.iso8601 },
38
+ sync: true
38
39
  )
39
40
 
40
41
  # Query data
@@ -94,15 +95,19 @@ client.append(
94
95
  ]
95
96
  )
96
97
 
97
- # Override credentials per-request
98
- client.append(
98
+ # Asynchronous append with task polling
99
+ resp = client.append(
99
100
  catalog: "main",
100
101
  schema: "public",
101
102
  table: "events",
102
103
  payload: { user_id: 789 },
103
- username: "other_user",
104
- password: "other_password"
104
+ sync: false
105
105
  )
106
+
107
+ if resp.task_id
108
+ task = client.get_task(resp.task_id)
109
+ puts task.status
110
+ end
106
111
  ```
107
112
 
108
113
  ### `query_all`
@@ -111,7 +116,8 @@ Executes a SQL query and returns all rows in memory (accumulated).
111
116
 
112
117
  ```ruby
113
118
  result = client.query_all(
114
- statement: "SELECT * FROM main.public.events LIMIT 10"
119
+ statement: "SELECT * FROM main.public.events LIMIT 10",
120
+ cache: true
115
121
  )
116
122
 
117
123
  puts result[:metadata] # Hash
@@ -180,6 +186,45 @@ puts resp.valid # => false
180
186
  puts resp.error
181
187
  ```
182
188
 
189
+ ### `get_task`
190
+
191
+ Retrieves the status of an asynchronous append task.
192
+
193
+ ```ruby
194
+ task = client.get_task("task-uuid")
195
+ puts task.status # "pending" or "completed"
196
+ ```
197
+
198
+ ### `explain`
199
+
200
+ Returns scan estimates for a SQL statement without executing it.
201
+
202
+ ```ruby
203
+ resp = client.explain(
204
+ statement: "SELECT * FROM users WHERE age > 25",
205
+ include_plan: true
206
+ )
207
+
208
+ resp.tables.each do |table|
209
+ puts "#{table.table_name}: ~#{table.estimated_rows} rows"
210
+ end
211
+ ```
212
+
213
+ ### `autocomplete`
214
+
215
+ Returns SQL autocomplete suggestions.
216
+
217
+ ```ruby
218
+ resp = client.autocomplete(
219
+ statement: "SEL",
220
+ max_suggestions: 5
221
+ )
222
+
223
+ resp.suggestions.each do |suggestion|
224
+ puts suggestion.suggestion
225
+ end
226
+ ```
227
+
183
228
  ## Configuration
184
229
 
185
230
  | Option | Type | Default | Description |
data/SECURITY.md ADDED
@@ -0,0 +1,18 @@
1
+ # Security Policy
2
+
3
+ ## Supported Versions
4
+
5
+ Only the latest minor release receives security patches.
6
+
7
+ ## Reporting a Vulnerability
8
+
9
+ **Do not open a public issue.**
10
+
11
+ Email security@altertable.ai with:
12
+
13
+ 1. Description of the vulnerability
14
+ 2. Steps to reproduce
15
+ 3. Impact assessment
16
+ 4. (Optional) Suggested fix
17
+
18
+ We will acknowledge receipt within 48 hours and aim to release a patch within 7 days of confirmation.