mirror of https://github.com/aldy505/bob.git
docs: fix space/tabs spacing
This commit is contained in:
parent
ba7ca9ac7d
commit
0e719455ab
|
@ -64,14 +64,14 @@ Another builder of `bob.CreateTableIfNotExists()` is also available.
|
||||||
```go
|
```go
|
||||||
func main() {
|
func main() {
|
||||||
sql, _, err := bob.
|
sql, _, err := bob.
|
||||||
CreateIndex("idx_email").
|
CreateIndex("idx_email").
|
||||||
On("users").
|
On("users").
|
||||||
// To create a CREATE UNIQUE INDEX ...
|
// To create a CREATE UNIQUE INDEX ...
|
||||||
Unique().
|
Unique().
|
||||||
// Method "Spatial()" and "FullText()" are also available.
|
// Method "Spatial()" and "FullText()" are also available.
|
||||||
// You can specify as many columns as you like.
|
// You can specify as many columns as you like.
|
||||||
Columns(bob.IndexColumn{Name: "email", Collate: "DEFAULT", Extras: []string{"ASC"}}).
|
Columns(bob.IndexColumn{Name: "email", Collate: "DEFAULT", Extras: []string{"ASC"}}).
|
||||||
ToSql()
|
ToSql()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue