Skip to content

Commit a74c713

Browse files
Add documentation for REPLICA IDENTITY enum
1 parent 59c91f6 commit a74c713

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ast/ddl.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ use crate::ast::{
3939
use crate::keywords::Keyword;
4040
use crate::tokenizer::Token;
4141

42+
/// ALTER TABLE operation REPLICA IDENTITY values
43+
/// See [Postgres ALTER TABLE docs](https://www.postgresql.org/docs/current/sql-altertable.html)
4244
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
4345
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
4446
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
@@ -232,6 +234,7 @@ pub enum AlterTableOperation {
232234
/// REPLICA IDENTITY { DEFAULT | USING INDEX index_name | FULL | NOTHING }
233235
///
234236
/// Note: this is a PostgreSQL-specific operation.
237+
/// Please refer to [PostgreSQL documentation](https://www.postgresql.org/docs/current/sql-altertable.html)
235238
ReplicaIdentity {
236239
identity: ReplicaIdentity,
237240
},

0 commit comments

Comments
 (0)