package
Version:
v0.0.0-...-e197d81
Opens a new window with list of versions in this module.
Published: Apr 5, 2021
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
CreateSite - store a new site instance in the DB
GetSchemas - return all the SQL commands needed to migrate a database
type Website struct {
ID int `db:"id"`
URL string `db:"url"`
}
Website a representation of a site in the database
FindByURL - find a website in the database by it's URL
GetSchema - return the SQL statement that describes this model's shape
TODO: return different strings for different SQL drivers (sqlite3/mysql)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.