You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.5 KiB

  1. /* Copyright (C) 2006 MySQL AB
  2. This program is free software; you can redistribute it and/or modify
  3. it under the terms of the GNU General Public License as published by
  4. the Free Software Foundation; version 2 of the License.
  5. This program is distributed in the hope that it will be useful,
  6. but WITHOUT ANY WARRANTY; without even the implied warranty of
  7. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8. GNU General Public License for more details.
  9. You should have received a copy of the GNU General Public License
  10. along with this program; if not, write to the Free Software
  11. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
  12. #include "slave.h" // for tables_ok(), rpl_filter
  13. /* structs */
  14. typedef struct st_federated_server
  15. {
  16. char *server_name;
  17. long port;
  18. uint server_name_length;
  19. char *db, *scheme, *username, *password, *socket, *owner, *host, *sport;
  20. } FOREIGN_SERVER;
  21. /* cache handlers */
  22. bool servers_init(bool dont_read_server_table);
  23. bool servers_reload(THD *thd);
  24. void servers_free(bool end=0);
  25. /* insert functions */
  26. int create_server(THD *thd, LEX_SERVER_OPTIONS *server_options);
  27. /* drop functions */
  28. int drop_server(THD *thd, LEX_SERVER_OPTIONS *server_options);
  29. /* update functions */
  30. int alter_server(THD *thd, LEX_SERVER_OPTIONS *server_options);
  31. /* lookup functions */
  32. FOREIGN_SERVER *get_server_by_name(MEM_ROOT *mem, const char *server_name,
  33. FOREIGN_SERVER *server_buffer);