') {
return $self->type_integer_unsigned($data);
}
if ($data->{type} eq 'json') {
return $self->type_json($data);
}
if ($data->{type} eq 'number') {
return $self->type_number($da
n 'integer';
}
method type_integer_unsigned(HashRef $data) {
return 'integer';
}
method type_json(HashRef $data) {
return 'text';
}
method type_number(HashRef $data) {
return 'integer';
}
te;
=cut
=head1 DESCRIPTION
This package provides methods for converting
L<json-sql|https://github.com/iamalnewkirk/json-sql> data structures into
SQL statements.
=cut
=head1 LIBRARIES
This pack
er_unsigned(HashRef $data) {
return $self->type_integer($data);
}
method type_json(HashRef $data) {
return 'json';
}
method type_number(HashRef $data) {
return $self->type_integer($data);
}
te;
=cut
=head1 DESCRIPTION
This package provides methods for converting
L<json-sql|https://github.com/iamalnewkirk/json-sql> data structures into
PostgreSQL statements.
=cut
=head1 INHERITS
Thi
_json
type_json(HashRef $data) : Str
The type_json method returns the SQL expression representing a json data type.
=over 4
=item type_json example #1
# given: synopsis
$grammar->type_json
ata) {
return join ' ', $self->type_integer($data), 'unsigned';
}
method type_json(HashRef $data) {
return 'json';
}
method type_number(HashRef $data) {
return $self->type_integer($data);
}
te;
=cut
=head1 DESCRIPTION
This package provides methods for converting
L<json-sql|https://github.com/iamalnewkirk/json-sql> data structures into
MySQL statements.
=cut
=head1 INHERITS
This pac
_json
type_json(HashRef $data) : Str
The type_json method returns the SQL expression representing a json data type.
=over 4
=item type_json example #1
# given: synopsis
$grammar->type_json
ethod type_integer_unsigned(HashRef $data) {
return $self->type_integer($data);
}
method type_json(HashRef $data) {
return 'nvarchar(max)';
}
method type_number(HashRef $data) {
return $sel
te;
=cut
=head1 DESCRIPTION
This package provides methods for converting
L<json-sql|https://github.com/iamalnewkirk/json-sql> data structures into
MSSQL statements.
=cut
=head1 INHERITS
This pac
_json
type_json(HashRef $data) : Str
The type_json method returns the SQL expression representing a json data type.
=over 4
=item type_json example #1
# given: synopsis
$grammar->type_json
n 'integer';
}
method type_integer_unsigned(HashRef $data) {
return 'integer';
}
method type_json(HashRef $data) {
return 'text';
}
method type_number(HashRef $data) {
return $self->type_i
te;
=cut
=head1 DESCRIPTION
This package provides methods for converting
L<json-sql|https://github.com/iamalnewkirk/json-sql> data structures into
SQLite statements.
=cut
=head1 INHERITS
This pa
_json
type_json(HashRef $data) : Str
The type_json method returns the SQL expression representing a json data type.
=over 4
=item type_json example #1
# given: synopsis
$grammar->type_json