spegling av
https://github.com/quitesimpleorg/hs9001.git
synced 2024-11-22 09:47:51 +01:00
remove commented out code
This commit is contained in:
förälder
e3e7fd74e0
incheckning
f58c82a3ee
7
main.go
7
main.go
@ -26,13 +26,6 @@ func createConnection() *sql.DB {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func initDatabase() {
|
func initDatabase() {
|
||||||
|
|
||||||
/*
|
|
||||||
CREATE TABLE history(id INTEGER PRIMARY KEY, command varchar(512), timestamp datetime DEFAULT current_timestamp, user varchar(25), hostname varchar(32));
|
|
||||||
CREATE VIEW count_by_date AS SELECT COUNT(id), STRFTIME('%Y-%m-%d', timestamp) FROM history GROUP BY strftime('%Y-%m-%d', timestamp)
|
|
||||||
count_by_date("COUNT(id)","STRFTIME('%Y-%m-%d', timestamp)") ;
|
|
||||||
*/
|
|
||||||
|
|
||||||
conn := createConnection()
|
conn := createConnection()
|
||||||
|
|
||||||
queryStmt := "CREATE TABLE history(id INTEGER PRIMARY KEY, command varchar(512), timestamp datetime DEFAULT current_timestamp, user varchar(25), hostname varchar(32));\n" +
|
queryStmt := "CREATE TABLE history(id INTEGER PRIMARY KEY, command varchar(512), timestamp datetime DEFAULT current_timestamp, user varchar(25), hostname varchar(32));\n" +
|
||||||
|
Laddar…
Referens i nytt ärende
Block a user