main.c 769 B

12345678910111213141516171819202122232425262728
  1. /**********************************************************
  2. * MODULE: mysql
  3. * AUTHOR(S): Radim Blazek (radim.blazek@gmail.com)
  4. * PURPOSE: MySQL database driver
  5. * COPYRIGHT: (C) 2001 by the GRASS Development Team
  6. * This program is free software under the
  7. * GNU General Public License (>=v2).
  8. * Read the file COPYING that comes with GRASS
  9. * for details.
  10. **********************************************************/
  11. #include <stdlib.h>
  12. #include <grass/gis.h>
  13. #include <grass/dbmi.h>
  14. #include "dbdriver.h"
  15. #include "globals.h"
  16. MYSQL *connection; /* Database connection */
  17. dbString *errMsg = NULL; /* error message */
  18. int main(int argc, char *argv[])
  19. {
  20. init_dbdriver();
  21. exit(db_driver(argc, argv));
  22. }