code: public static boolean dumpDatabaseSchemaToFile( DatabaseContext ctx, File file )
  	{
  		log.info( "Dumping database schema to file " + file.getAbsolutePath() );
  
  		DatabaseDescriptionInspector inspector = new DatabaseDescriptionInspector();
  		DatabaseDescription dbDesc = inspector.getDatabaseDescription( ctx.db, ctx.dbh );
  
  		Gson gson = new Gson();
  		String json = gson.toJson( dbDesc );
  		try
  		{
  			PrintWriter writer;
  			writer = new PrintWriter( file );
  			writer.print( json );
  			writer.close();
  
  			return true;
  		}
  		catch( FileNotFoundException e )
  		{
  			e.printStackTrace();
  
  			return false;
  		}
  	}
docs: Writes the current database schema to a file, in JSON format.
  This file can be used to update another database.
  
  @param ctx Database context
  @param file File to be written
  @return <code>true</code> if successful