-
Notifications
You must be signed in to change notification settings - Fork 399
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Schemas sdk v2 #1975
feat: Schemas sdk v2 #1975
Conversation
Integration tests failure for bd97c19af3061ed8d91053c1601026a19a7ee60b |
bd97c19
to
513c754
Compare
Integration tests failure for 513c754a02d0918f83cc4fff7c41bdef6d36b31f |
513c754
to
5ac27f1
Compare
Integration tests failure for 5ac27f1892088cbcc4e6416c78d7e48403e617a6 |
5ac27f1
to
55f8ab9
Compare
Integration tests failure for 55f8ab93cac0d374c7adbf7d2cfac1c01c8b19b5 |
3ef7ec9
to
6525a31
Compare
Integration tests failure for 3ef7ec9c562b0878619de1b9b8189d2a313ced9a |
Integration tests failure for 6525a3171fcdfaf70ae7996eb2c4134dd4eeec5c |
Integration tests failure for 6525a3171fcdfaf70ae7996eb2c4134dd4eeec5c |
Integration tests success for 6525a3171fcdfaf70ae7996eb2c4134dd4eeec5c |
3495d70
to
f3e1e89
Compare
Integration tests failure for 3495d70fd1b024a727eeb377e67c180dd769c1bc |
Integration tests success for f3e1e89cf413050ea47942f4a26a80be12f60dc9 |
Integration tests success for bcae9cc72efb2e3dbcc41af6cadd8c7d13855d43 |
pkg/sdk/schemas.go
Outdated
SwapWith SchemaIdentifier `ddl:"identifier" sql:"SWAP WITH"` | ||
Set *SchemaSet `ddl:"list,no_parentheses" sql:"SET"` | ||
Unset *SchemaUnset `ddl:"list,no_parentheses" sql:"UNSET"` | ||
EnableManagedAccess *bool `ddl:"keyword" sql:"ENABLE MANAGED ACCESS"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick: maybe add our // One of comment here unless you can do alter ... enable access disable access
in one query
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added the 'oneof' comment
pkg/sdk/schemas.go
Outdated
schema bool `ddl:"static" sql:"SCHEMA"` | ||
IfExists *bool `ddl:"keyword" sql:"IF EXISTS"` | ||
name SchemaIdentifier `ddl:"identifier"` | ||
Cascade *bool `ddl:"static" sql:"CASCADE"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same comment as above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added
04c4f8d
to
2050c57
Compare
2050c57
to
229addc
Compare
Integration tests success for 2050c57a1e89e1ed0b8e8e158c98665f6a3e1356 |
229addc
to
283a530
Compare
Integration tests success for 229addcd3b6100d3ba4cec48a80dd4fef907ab14 |
Integration tests failure for 283a530d253f59cdf0e02f254315b1519446e7ac |
283a530
to
a4a5c65
Compare
Integration tests success for a4a5c65ec8d50c69674f9f44e5e07e34cbcf5a29 |
pkg/sdk/schemas.go
Outdated
return details, err | ||
} | ||
|
||
type InSchema struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this name is a bit confusing. im not sure what our naming convention is, but "InSchema" sounds like something that would be in a schema. As in a schema object. Whereas this is more about for showing schemas in something (database or account). perhaps "SchemaIn" would be more appropriate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, changed to SchemaIn
Integration tests success for 963f82b80325ffb3f63e6c801c4a3fcf8b5ac167 |
814f115
963f82b
to
814f115
Compare
Integration tests success for 814f11558b6cc258e21bbf1b28d35a5b6b731d6c |
Summary
First pr for the schemas sdk migration (in the next one It'll be used in the resources/data sources)
Test Plan
References
Snowflake schema documentation