some more page work
[goDBhammer.git] / src / dbconnector.go
index f8b9131..5a6f64b 100644 (file)
@@ -1 +1,23 @@
-// um yes... its a db connector
\ No newline at end of file
+// um yes... its a db connector
+package dbconnector
+
+type DBConnector struct {
+       // err, yes
+}
+
+func DBSetup(dbtype string, host string, username string, password string, database string, createtables bool)
+{
+
+       // the job of this function is to bring up the connection and create tables based on dbtype
+       //var Dbconn *dbibridge.DBIConnection;
+       
+       //Dbconn = dbibridge.DBICreate();
+       
+       //dbibridge.DBIConnect(Dbconn, "mysql", "localhost", "root", "password", "zm");
+       //dbibridge.ExecSQL(Dbconn, "create table asdf (asdf int)");
+       //dbibridge.DBIDisconnect(Dbconn);
+
+}
+
+
+