# Collection of code snippets by Arne Vajhøj 
# (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) 
import sqlite3

from asset import *

con = sqlite3.connect('asset.db')
c = con.cursor()
a = ToolAsset(9, 'Craftsman snowblower', 'Snowblower', 'Craftsman', 200)
c.execute('INSERT INTO asset VALUES(?,?,?)', (a.id, a.description, a.assettype))
c.execute('INSERT INTO toolasset VALUES(?,?,?,?)', (a.id, a.tooltype, a.name, a.weight))
con.commit()
con.close()
