CREATE TABLE Grades (name string, id int, gpa double) KEY (id);
INSERT INTO Grades VALUES ("Mark Paskin", 49, 0.45);
CREATE TABLE compl_data (id int, number complex) KEY (id);
INSERT INTO compl_data VALUES (1, [complex]"(3, 5)");
Return Type | Name | Parameter Types | Description |
---|---|---|---|
int | real | none | Returns the real part of the complex number |
int | imag | none | Returns the imaginary part of the complex number |
complex | plus | complex | Returns the sum of the two complex numbers |
complex | minus | complex | Returns the difference of the two complex numbers |
complex | invert | none | Returns the complex number obtained by exchanging the real and imaginary parts |
complex | csum (Aggregate) | none | Returns the sum of all aggregated complex numbers |
CREATE TABLE ids (ctr counter ("4"));
INSERT INTO ids VALUES ([counter]"");Three such insertions will result in the relation: [4, 5, 6].
CREATE TABLE date_data (val date("<format_string>"));where <format_string> may be a string of the following characters
Character | Meaning | Default Value |
---|---|---|
C | Century (must precede Y) | 19 |
Y | Year | 00 |
M | Month | 01 |
D | Day | 01 |
Each character may appear at most once. If a character is omitted, the default value will be used. Whitespaces between characters may also be used. A whitespace can be just about any character: / , - , <space> , w , <tab> , t , etc. <format_string> must be terminated by "e" and be no longer than 19 characters with the "e" included. It should not begin with "n"
Here are some examples of <format_string>:
"M/D/CYe" for 05/22/1970 "CwY-M-De" for 19 70-05-22 "" for 05/22/1970 ("M/D/CYe" is the default format)
INSERT INTO date_data VALUES ([date("M/De")]"7/29"); INSERT INTO date_data VALUES ([date]"7/29/1900");The current date may be inserted by specifying "now" as the input string.
INSERT INTO date_data VALUES ([date]"now");
Return Type | Name | Parameter Types | Description |
---|---|---|---|
int | month | none | Returns the month |
int | day | none | Returns the day |
int | year | none | Returns the year (includes century if "CY" was specified during table creation) |
int | cent | none | Returns the century |
int | centyear | none | Returns the full year (century & year) |
CREATE TABLE bite (bytearray("<size>"));
CREATE TABLE ...
INSERT INTO bite VALUES ([bytearray]"<file_name>");<file_name> may be a URL
INSERT INTO ...
Return Type | Name | Parameter Types | Description |
---|---|---|---|
n/a | n/a | n/a | No methods supported |
CREATE TABLE doc_data (document("<doc_format>));where <doc_format> can be ascii, msword, html, ps
CREATE TABLE ...
INSERT INTO ...
Return Type | Name | Parameter Types | Description |
---|---|---|---|
int | none | Prints a document & return 1 on success | |
int | none | Emails a document |
CREATE TABLE raster_data (image raster("<format> , <size>"))where <format> is a meta-information format (currently only only "AVHRR" is supported) and <size> is an estimation of the average raster sizes in bytes (e.g. 10000).
INSERT INTO raster_data VALUES ([raster]"<freq> <numLines> <numSamples> <xLow> <yLow> <xHigh> <yHigh> <filename>");
Return Type | Name | Parameter Types | Description |
---|---|---|---|
raster | clip | box | Clips the raster to be within a specific bounding box |
raster | deres | int | Decreases the resolution of the raster |
raster | ravg (aggregate) | none | Returns an average of multiple rasters |
raster | rany (aggregate) | none | Returns a randomly chosen raster |
CREATE TABLE point_data (val point);
INSERT INTO point_data VALUES ([point]"<x> <y>");where <x> <y> are the coordinates of a point (do not include the "<" and ">").
Return Type | Name | Parameter Types | Description |
---|---|---|---|
double | x | none | Returns the x coordinate of the point |
double | y | none | Returns the y coordinate of the point |
box | make_box | double | Returns a square of specific length centered at the point |
circle | make_circle | double | Returns a circle of specific radius centerd at the point |
int | inside | box | Returns 1 iff the point is [inclusively] inside a box, otherwise returns 0 |
int | inside | polygon | Returns 1 iff the point is [inclusively] inside a polygon, otherwise returns 0 |
int | outside | box | Returns 1 iff the point is [inclusively] outside a box, otherwise returns 0 |
int | outside | polygon | Returns 1 iff the point is [inclusively] outside a polygon, otherwise returns 0 |
int | equals | point | Returns 1 iff the point is the same as another point, otherwise returns 0 |
CREATE TABLE ...
INSERT INTO ...
Return Type | Name | Parameter Types | Description |
---|---|---|---|
int | real | none | Returns the real part of the complex number |
CREATE TABLE ...
INSERT INTO ...
Return Type | Name | Parameter Types | Description |
---|---|---|---|
int | real | none | Returns the real part of the complex number |
CREATE TABLE ...
INSERT INTO ...
Return Type | Name | Parameter Types | Description |
---|---|---|---|
int | real | none | Returns the real part of the complex number |