/* Creates the metatables for the objects and registers the driver open method.  */
LUASQL_API int luaopen_luasql_mysql(lua_State *L)
/* Creates the metatables for the objects and registers the driver open method.  */
LUASQL_API int luaopen_luasql_mysql(lua_State *L)
{
		{"mysql", create_environment},
		{NULL, NULL},
	};
	create_metatables (L);
	luaL_openlib (L, LUASQL_TABLENAME, driver, 0);
	luasql_set_info (L);
    lua_pushliteral (L, "_MYSQLVERSION");
    lua_pushliteral (L, MYSQL_SERVER_VERSION);
    lua_settable (L, -3);
	return 1;
}