@@ -60,6 +60,8 @@ type Statement interface {
60
60
// - https://cloud.google.com/spanner/docs/reference/standard-sql/dml-syntax
61
61
62
62
func (QueryStatement ) isStatement () {}
63
+ func (CreateSchema ) isStatement () {}
64
+ func (DropSchema ) isStatement () {}
63
65
func (CreateDatabase ) isStatement () {}
64
66
func (AlterDatabase ) isStatement () {}
65
67
func (CreateTable ) isStatement () {}
@@ -297,6 +299,8 @@ type DDL interface {
297
299
//
298
300
// - https://cloud.google.com/spanner/docs/reference/standard-sql/data-definition-language
299
301
302
+ func (CreateSchema ) isDDL () {}
303
+ func (DropSchema ) isDDL () {}
300
304
func (CreateDatabase ) isDDL () {}
301
305
func (AlterDatabase ) isDDL () {}
302
306
func (CreateTable ) isDDL () {}
@@ -1765,6 +1769,30 @@ type OptionsDef struct {
1765
1769
Value Expr
1766
1770
}
1767
1771
1772
+ // CreateSchema is CREATE SCHEMA statement node.
1773
+ //
1774
+ // CREATE SCHEMA {{.Name | sql}}
1775
+ type CreateSchema struct {
1776
+ // pos = Create
1777
+ // end = Name.end
1778
+
1779
+ Create token.Pos // position of "CREATE" keyword
1780
+
1781
+ Name * Ident
1782
+ }
1783
+
1784
+ // DropSchema is DROP SCHEMA statement node.
1785
+ //
1786
+ // DROP SCHEMA {{.Name | sql}}
1787
+ type DropSchema struct {
1788
+ // pos = Drop
1789
+ // end = Name.end
1790
+
1791
+ Drop token.Pos // position of "DROP" keyword
1792
+
1793
+ Name * Ident
1794
+ }
1795
+
1768
1796
// CreateDatabase is CREATE DATABASE statement node.
1769
1797
//
1770
1798
// CREATE DATABASE {{.Name | sql}}
0 commit comments