Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB represents the zGraph database instance.
func (*DB) Close ¶
Close destroys the zGraph database instances and all sessions will be terminated.
func (*DB) NewSession ¶
NewSession returns a new session.
type Options ¶
type Options struct {
// Concurrency is used to limit the max concurrent sessions count. The NewSession
// method will block if the current alive sessions count reach this limitation.
Concurrency int64
}
Options contains some options which is used to customize the zGraph database instance while instantiating zGraph.
func (*Options) SetDefaults ¶
func (opt *Options) SetDefaults()
SetDefaults sets the missing options into default value.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
zgraph
command
|
|
|
internal
|
|
|
ast
Package ast is the abstract syntax tree parsed from a SQL statement by parser.
|
Package ast is the abstract syntax tree parsed from a SQL statement by parser. |
|
goyacc
command
Goyacc is a version of yacc generating Go parsers.
|
Goyacc is a version of yacc generating Go parsers. |
Click to show internal directories.
Click to hide internal directories.