Class Relations
- class: ::nx::EnsembleObject
::nx::EnsembleObject create ::acs::db::nsdb-postgresql::slot::__call::timespan
Methods (to be applied on the object)
copy (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select timespan__copy(CAST(:timespan_id AS integer),CAST(:offset AS integer))}]
return [ns_set value $s 0]
}
delete (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select timespan__delete(CAST(:timespan_id AS integer))}]
return [ns_set value $s 0]
}
exists_p (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select timespan__exists_p(CAST(:timespan_id AS integer))}]
return [ns_set value $s 0]
}
interval_delete (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select timespan__interval_delete(CAST(:timespan_id AS integer),CAST(:interval_id AS integer))}]
return [ns_set value $s 0]
}
join (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select timespan__join(CAST(:timespan_id AS integer),:start_date,:end_date)}]
return [ns_set value $s 0]
}
join_interval (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select timespan__join_interval(CAST(:timespan_id AS integer),CAST(:interval_id AS integer),:copy_p)}]
return [ns_set value $s 0]
}
multi_interval_p (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select timespan__multi_interval_p(CAST(:timespan_id AS integer))}]
return [ns_set value $s 0]
}
new (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select timespan__new(:start_date,:end_date)}]
return [ns_set value $s 0]
}
overlaps_interval_p (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select timespan__overlaps_interval_p(CAST(:timespan_id AS integer),CAST(:interval_id AS integer))}]
return [ns_set value $s 0]
}
overlaps_p (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select timespan__overlaps_p(CAST(:timespan_id AS integer),:start_date,:end_date)}]
return [ns_set value $s 0]
}