You can use hk_classes within Python. You can write your own Python applications using all the elements of hk_classes or interactively explore your data.
Example 1-1. Using hk_classes as a Python module
1 horst@horstnotebook:~> python 2 Python 2.2.2 (#1, Mar 17 2003, 15:17:58) 3 [GCC 3.3 20030226 (prerelease) (SuSE Linux)] on linux2 4 Type "help", "copyright", "credits" or "license" for more information. 5 >>> from hk_classes import * 6 >>> dr=hk_drivermanager() 7 >>> con=dr.new_connection("mysql") 8 >>> con.set_password("mypassword") 9 >>> con.connect() 10 1 11 >>> db=con.new_database("exampledb") 12 >>> mytable=db.new_table("authors") 13 >>> mytable.enable() |