Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tyt2y3 committed Jan 8, 2024
1 parent 6d5b3c0 commit d70f0ce
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/index/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,19 +109,20 @@ use super::common::*;
/// .table(Glyph::Table)
/// .col((Glyph::Image, IndexOrder::Asc))
/// .col((Glyph::Aspect, IndexOrder::Desc))
/// .unique()
/// .to_owned();
///
/// assert_eq!(
/// index.to_string(MysqlQueryBuilder),
/// r#"CREATE INDEX `idx-glyph-aspect` ON `glyph` (`image` ASC, `aspect` DESC)"#
/// r#"CREATE UNIQUE INDEX `idx-glyph-aspect` ON `glyph` (`image` ASC, `aspect` DESC)"#
/// );
/// assert_eq!(
/// index.to_string(PostgresQueryBuilder),
/// r#"CREATE INDEX "idx-glyph-aspect" ON "glyph" ("image" ASC, "aspect" DESC)"#
/// r#"CREATE UNIQUE INDEX "idx-glyph-aspect" ON "glyph" ("image" ASC, "aspect" DESC)"#
/// );
/// assert_eq!(
/// index.to_string(SqliteQueryBuilder),
/// r#"CREATE INDEX "idx-glyph-aspect" ON "glyph" ("image" ASC, "aspect" DESC)"#
/// r#"CREATE UNIQUE INDEX "idx-glyph-aspect" ON "glyph" ("image" ASC, "aspect" DESC)"#
/// );
/// ```
/// Index with prefix and order
Expand Down

0 comments on commit d70f0ce

Please sign in to comment.