Documentation
¶
Index ¶
- func DropTableColumns(sess db.Session, tableName string, columnNames ...string) (err error)
- func HashToken(token, salt string) string
- func ModifyColumn(x db.EngineMigration, tableName string, col *schemas.Column) error
- func RecreateTable(sess db.Session, bean any) error
- func RecreateTables(beans ...any) func(db.EngineMigration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DropTableColumns ¶
WARNING: YOU MUST COMMIT THE SESSION AT THE END
func ModifyColumn ¶
ModifyColumn will modify column's type or other property. SQLITE is not supported
func RecreateTable ¶
RecreateTable will recreate the table using the newly provided bean definition and move all data to that new table WARNING: YOU MUST PROVIDE THE FULL BEAN DEFINITION WARNING: YOU MUST COMMIT THE SESSION AT THE END
func RecreateTables ¶
func RecreateTables(beans ...any) func(db.EngineMigration) error
RecreateTables will recreate the tables for the provided beans using the newly provided bean definition and move all data to that new table WARNING: YOU MUST PROVIDE THE FULL BEAN DEFINITION
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.