Example #1
0
func main0() {
	cpu := runtime.NumCPU()
	runtime.GOMAXPROCS(cpu)
	db := model.NewDatabase(os.Args[1])
	db.Load(false, false, false)
	ids := collectQ(model.ParseQuery(":albums", db))
	print(len(ids))
}
Example #2
0
func main3() {
	cpu := runtime.NumCPU()
	runtime.GOMAXPROCS(cpu)

	db_root := os.Args[1]

	db := model.NewDatabase(db_root)
	db.Load(false, false, false)

	q := model.ParseQuery("2015 degustations montoulieu", db)
	for img := range q {
		fmt.Printf("%s: %s\n", img.Name(), img.ItemTime())
	}
}