addGeometryColumnsEntry method

void addGeometryColumnsEntry(
  1. TableName tableName,
  2. String geometryName,
  3. String geometryType,
  4. int srid,
  5. bool hasZ,
  6. bool hasM,
)

Implementation

void addGeometryColumnsEntry(TableName tableName, String geometryName,
    String geometryType, int srid, bool hasZ, bool hasM) {
// geometryless tables should not be inserted into this table.
  String sql =
      "INSERT INTO $TABLE_GEOMETRY_COLUMNS VALUES (?, ?, ?, ?, ?, ?);";

  _sqliteDb.execute(sql, arguments: [
    tableName.name,
    geometryName,
    geometryType,
    srid,
    hasZ ? 1 : 0,
    hasM ? 1 : 0
  ]);
}