Skip to content

Commit

Permalink
chore: add database name interface
Browse files Browse the repository at this point in the history
  • Loading branch information
si3nloong committed May 19, 2024
1 parent 1ea7d28 commit 8fa73e4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sequel/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ package sequel

import "database/sql/driver"

// To specific the database, this is optional
type Database struct{}

// For rename table name
type Table struct{}

Expand All @@ -18,6 +21,10 @@ type DuplicateKeyer interface {
OnDuplicateKey() string
}

type Databaser interface {
DatabaseName() string
}

type Tabler interface {
TableName() string
}
Expand Down

0 comments on commit 8fa73e4

Please sign in to comment.