File: Remote.pod

package info (click to toggle)
libtangram-perl 2.10-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,184 kB
  • ctags: 702
  • sloc: perl: 9,665; makefile: 9
file content (29 lines) | stat: -rw-r--r-- 820 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
=head1 NAME

Tangram::Remote - represent persistent objects in client space

=head1 SYNOPSIS

   use Tangram;

   $remote = $storage->remote( $class );
   @remotes = $storage->remote( @classes );

   ... $remote->{$field} ...

=head1 DESCRIPTION

A Remote object is a client-side representation of an object that
resides in a database.  It has the same fields as a normal object of
the same class - as declared in the Schema associated to the database
the Remote was obtained from.  The values of the fields are not normal
Perl values, but L<Tangram::Expr>s that will be evaluated on the
database server side.

Remote objects are somewhat similar to SQL table aliases.

Note that there are no objects which are actually C<Tangram::Remote>
instances; the objects will be called L<Tangram::Expr::QueryObject> et
al.

=cut