Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *sql.DB
Functions ¶
func AddColumn ¶
AddColumn adds a column to a specified table.
@param tableName - name of the table @param columnName - name of column to be added @param dataType - field type of the new column
func ConnectDB ¶
ConnectDB connects the fiber app to the database.
@param dbURI - database URI (eg: ./sqlite_database/data.db)
func DropTable ¶
DeleteTable deletes a table from the database.
@param tableName - name of the table
func GetSQLQuery ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.