File: sequence.rb

package info (click to toggle)
ruby-bdb 0.6.6-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,652 kB
  • ctags: 4,687
  • sloc: ansic: 13,663; cpp: 8,601; ruby: 7,903; sh: 47; makefile: 18
file content (49 lines) | stat: -rw-r--r-- 993 bytes parent folder | download | duplicates (11)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# A sequence is created with the method <em>BDB::Common#create_sequence</em>
# or <em>BDB::Common#open_sequence</em>
#
class BDB::Sequence
   #return the current cache size
   def cachesize
   end

   #close the sequence
   def close
   end

   #return the bdb file associated with the sequence
   def db
   end

   #return the current flags
   def flags
   end

   #return the next available element in the sequence and changes
   #the sequence value by <em>delta</em>
   #
   #<em>flags</em> can have the value BDB::AUTO_COMMIT, BDB::TXN_NOSYNC
   def get(delta = 1, flags = 0)
   end

   #return the key associated with the sequence
   def key
   end

   #return the range of values in the sequence
   def range
   end

   #remove the sequence
   #
   #<em>flags</em> can have the value BDB::AUTO_COMMIT, BDB::TXN_NOSYNC
   def remove(flags = 0)
   end

   #return statistics about the sequence
   #
   #<em>flags</em> can have the value BDB::STAT_CLEAR
   def stat(flags = 0)
   end

end