Previous Topic

Next Topic

set

Sets a property in the interpreter. The general syntax is:

set option [on | off];

Where option is one of the following:

  • time

    Prints the time a command takes to execute (in seconds). For example:

    set time on ;
    Command timing on
    Command execution time - 0.019 seconds
    alias <http://www.w3.org/1999/02/22-rdf-syntax-ns#> as rdfns ;
    Successfully aliased http://www.w3.org/1999/02/22-rdf-syntax-ns# as rdfns
    Command execution time - 0.0050 seconds
    set time off ;
    Command timing off
    alias <http://www.w3.org/1999/02/22-rdf-syntax-ns#> as rdfns ;
    Successfully aliased http://www.w3.org/1999/02/22-rdf-syntax-ns# as rdfns

  • autocommit

    The default setting is on. Setting this option off specifies that all subsequent iTQLTM commands that modify the database are isolated in a logical unit of work. That is, modifications are not visible to other iTQL sessions until either autocommit is set back on or a commit command is performed. For example:

    set autocommit off ;
    insert <ns:subject> <ns:predicate1> 'object' into <rmi://mysite.com/server1#model> ;
    insert <ns:subject> <ns:predicate2> 'object2' into <rmi://mysite.com/server1#model> ;
    set autocommit on ;

If a session with autocommit set off is idle for a period greater than three minutes, and a second session attempts a write, then a rollback of the first session's uncommitted transactions occurs. The first session's next iTQL command then reports an error indicating that the transactions were lost.

See Also

iTQL Commands

alias

backup

comment (#)

commit

create

delete

drop

execute

help

insert

load

quit

restore

rollback

select

Latest News

Kowari 1.1.0 Pre-release 1 Released

Kowari 1.0.5 Released

Kowari 1.0.4.1 Released

Kowari 1.0.4 Released

DAWG Evaluates iTQL

Kowari article in XML.com

Kowari mentioned on XML.com

Kowari 1.0.3 Released

Kowari Lite Introduced

Kowari 1.0.2 Released

Kowari 1.0.1 Released

View all news items


Open Source logo Tucana Technologies Logo SourceForge.net Logo

© 2001-2004 Tucana Technologies, Inc. Some rights reserved.