Skip to content

feat(catalog): implement DATABASE/SCHEMA commands#29

Merged
sivchari merged 1 commit intomainfrom
feat-database-schema-commands
Feb 6, 2026
Merged

feat(catalog): implement DATABASE/SCHEMA commands#29
sivchari merged 1 commit intomainfrom
feat-database-schema-commands

Conversation

@sivchari
Copy link
Copy Markdown
Owner

@sivchari sivchari commented Feb 6, 2026

Summary

  • Implement Snowflake DATABASE and SCHEMA management commands
  • Add CREATE/DROP DATABASE with IF NOT EXISTS, IF EXISTS, OR REPLACE support
  • Add CREATE/DROP SCHEMA with IF NOT EXISTS, IF EXISTS, OR REPLACE support
  • Integrate with SnowflakeCatalog for state management
  • SHOW DATABASES now returns databases from catalog

Test plan

  • Rust unit tests for CREATE/DROP DATABASE
  • Rust unit tests for IF NOT EXISTS / IF EXISTS variants
  • Go integration tests for database/schema commands

Closes #19

Add support for Snowflake DATABASE and SCHEMA management commands:
- CREATE DATABASE / CREATE OR REPLACE DATABASE / CREATE DATABASE IF NOT EXISTS
- DROP DATABASE / DROP DATABASE IF EXISTS
- CREATE SCHEMA / CREATE OR REPLACE SCHEMA
- DROP SCHEMA / DROP SCHEMA IF EXISTS

Integration with SnowflakeCatalog:
- SHOW DATABASES now uses catalog.list_databases()
- USE DATABASE syncs with catalog state (auto-creates if not exists)
- USE SCHEMA syncs with catalog state

Includes Rust unit tests and Go integration tests.

Closes #19
@sivchari sivchari merged commit 44b6d06 into main Feb 6, 2026
1 check passed
@sivchari sivchari deleted the feat-database-schema-commands branch February 6, 2026 13:02
@github-actions github-actions bot mentioned this pull request Feb 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement Snowflake DATABASE/SCHEMA commands using SnowflakeCatalog

1 participant