Class Relations
- class: ::nx::EnsembleObject
::nx::EnsembleObject create ::acs::db::nsdb-postgresql::slot::__call::time_interval
Methods (to be applied on the object)
copy (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select time_interval__copy(CAST(:interval_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 time_interval__delete(CAST(:interval_id AS integer))}]
return [ns_set value $s 0]
}
edit (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select time_interval__edit(CAST(:interval_id AS integer),:start_date,:end_date)}]
return [ns_set value $s 0]
}
eq (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select time_interval__eq(CAST(:interval_1_id AS integer),CAST(:interval_2_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 time_interval__new(:start_date,:end_date)}]
return [ns_set value $s 0]
}
overlaps_p (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select time_interval__overlaps_p(:start_1,:end_1,:start_2,:end_2)}]
return [ns_set value $s 0]
}
shift (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select time_interval__shift(CAST(:interval_id AS integer),CAST(:start_offset AS integer),CAST(:end_offset AS integer))}]
return [ns_set value $s 0]
}