private void installWeights(Connection conn, WeightFactory factory) throws SQLException {
		try (Statement st = conn.createStatement()) {
			weightTable.drop(st);
			weightTable.create(st);

			double[] weightArray = factory.toArray();
			beginTransaction(false);
			boolean commit = false;
			try {
				for (int i = 0; i < weightArray.length; ++i) {
					weightTable.insert(i, weightArray[i]);
				}
				commit = true;
			}
			finally {
				endTransaction(commit);
			}
		}
	}
Installs/Replaces Weight Table
@param factory the weight factory
@throws SQLException if there is an error creating the database query
Ghidra/Features/BSim/src/main/java/ghidra/features/bsim/query/client/AbstractSQLFunctionDatabase.java