rmeove: example
This commit is contained in:
parent
e93e5b5292
commit
2d6a7ea67f
|
@ -72,21 +72,3 @@ func (helper *SQLiteHelper) querySingleColumn(tableName, columnName string) (str
|
||||||
func (helper *SQLiteHelper) QueryVersion() (string, error) {
|
func (helper *SQLiteHelper) QueryVersion() (string, error) {
|
||||||
return helper.querySingleColumn("Config", "Version")
|
return helper.querySingleColumn("Config", "Version")
|
||||||
}
|
}
|
||||||
|
|
||||||
// func main() {
|
|
||||||
// // Example usage
|
|
||||||
// helper := NewSQLiteHelper("path/to/database.db")
|
|
||||||
// defer helper.Close()
|
|
||||||
|
|
||||||
// version, err := helper.QueryVersion()
|
|
||||||
// if err != nil {
|
|
||||||
// log.Fatal(err)
|
|
||||||
// }
|
|
||||||
// fmt.Println("Database version:", version)
|
|
||||||
|
|
||||||
// macAddress, err := helper.QueryMacAddressByPrefix("00:1A:2B")
|
|
||||||
// if err != nil {
|
|
||||||
// log.Fatal(err)
|
|
||||||
// }
|
|
||||||
// fmt.Println("MacAddress:", macAddress)
|
|
||||||
// }
|
|
||||||
|
|
Loading…
Reference in New Issue