SuperStrict Framework Database.MariaDB Import BRL.filesystem Import BRL.StandardIO Local db:TDBConnection = LoadDatabase("MARIADB", "maxtest", Null, 0, "brucey", "brucey") If Not db Then Print("Didn't work...") End End If If db.hasError() Then errorAndClose(db) End If If db.isOpen() Then ' get a list of tables in the database Local list:String[] = db.getTables() If list Then For Local i:Int = 0 Until list.length Print(" " + (i + 1) + ". " + list[i]) Next End If db.close() End If Function errorAndClose(db:TDBConnection) Print(db.error().toString()) db.close() End End Function