Algorithm-SpatialIndex
view release on metacpan or search on metacpan
lib/Algorithm/SpatialIndex/Storage/DBI.pm view on Meta::CPAN
=head2 coord_types
Returns an array reference containing the coordinate type strings.
=head2 item_coord_types
Returns an array reference containing the item coordinate type strings.
=head2 node_coord_create_sql
Returns the precomputed SQL fragment of the node coordinate
columns (C<CREATE TABLE> syntax).
=head2 no_of_subnodes
Returns the no. of subnodes per node.
=head2 subnodes_create_sql
Returns the precomputed SQL fragment of the subnode id
columns (C<CREATE TABLE> syntax).
=head2 config
Returns the hash reference of configuration options
read from the config table.
=head2 dbh_rw
Returns the read/write database handle.
lib/Algorithm/SpatialIndex/Storage/DBI.pm view on Meta::CPAN
my $tname = $self->table_prefix . '_buckets';
$self->dbh_rw->do(qq{DELETE FROM $tname WHERE node_id=?}, {}, $node_id);
return();
}
=head2 _coord_types_to_sql
Given an array ref containing coordinate type strings
(cf. L<Algorithm::SpatialIndex::Strategy>),
stores the SQL fragments for C<SELECT>
and C<CREATE TABLE> for the node coordinates.
The coordinates will be called C<c$i> where C<$i>
starts at 0.
=cut
sub _coord_types_to_sql {
my $self = shift;
my $types = shift;
( run in 1.149 second using v1.01-cache-2.11-cpan-b16cb0d3907 )