|
NAMENet::Gnats::SessionDESCRIPTIONRepresents a specific connection to Gnats.When constructing a new session, it resets $Net::Gnats::current_session. ACCESSORSnameThe name is a combination of database and username, a friendly handle.It does not mean anything to GNATS. accessRetrieves the access for the current database.databaseSets and retrieves the current database. If a value is given then a change to the given database is made.hostnameThe hostname of the Gnats daemon process.Default: localhost passwordThe password for the user connecting to the Gnats daemon process.Most commands require authentication. portThe port of the Gnats daemon process.Default: 1529 schemaGet the schema for this session. Readonly.skip_versionSet skip_version to override Gnats version checking. By default, Net::Gnats supports v4 only.You use this at your own risk. usernameThe user connecting to the Gnats daemon process.Most commands require authentication. versionThe Gnats daemon process version. The version will only be set after connecting.METHODSauthenticateReturn:0 if failue 1 if success gconnectConnects to Gnats. If the username and password is set, it will attempt authentication.Connecting an already connected session infers reconnect. disconnectDisconnects from the current session, either authenticated or not.issueIssues a command using a Command object. The Command object is returned to the caller.The Command object composes a Response, whose value(s) carry error codes and the literal values retrived from Gnats. runRuns a RAW command using this session. Returns RAW output.
Visit the GSP FreeBSD Man Page Interface. |