1 package liquibase.ext.spatial.sqlgenerator;
2
3 import liquibase.database.Database;
4 import liquibase.database.core.MySQLDatabase;
5 import liquibase.statement.core.InsertStatement;
6
7
8
9
10
11 public class SpatialInsertGeneratorMySQL extends AbstractSpatialInsertGenerator {
12 @Override
13 public boolean supports(final InsertStatement statement, final Database database) {
14 return database instanceof MySQLDatabase;
15 }
16
17
18
19
20
21
22
23 @Override
24 public String getGeomFromWktFunction() {
25 return "GeomFromText";
26 }
27 }