godrv

package
v0.0.0-...-65a8ab1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2014 License: Apache-2.0, BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package godrv implements a Go Oracle driver

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

View Source
var (
	// NotImplemented prints Not implemented
	NotImplemented = errgo.New("Not implemented")
	// IsDebug should we print debug logs?
	IsDebug bool
)

Functions

func SetAutoCommit

func SetAutoCommit(b bool)

SetAutoCommit sets auto commit mode for future connections true is open autocommit, default false

Types

type ColDesc

type ColDesc struct {
	// Name is the name of the column
	Name string

	// TypeName is the name of the type of the column
	TypeName string

	// DisplaySize is the display (char/rune) size
	DisplaySize int

	// InternalSize is the byte size
	InternalSize int

	// Precision is the number of all digits this number-like column can hold
	Precision int

	// Scale is the number of digits after the point
	Scale int

	// Nullable is true if the column can be null
	Nullable bool
}

ColDesc is a column's description

type ColumnDescriber

type ColumnDescriber interface {
	// DescribeColumn returns the column description
	DescribeColumns() []ColDesc
}

ColumnDescriber interface allows the column's description

type Driver

type Driver struct {
	// contains filtered or unexported fields
}

Driver implements a Driver

func (*Driver) Open

func (d *Driver) Open(uri string) (driver.Conn, error)

Open new connection. The uri need to have the following syntax:

USER/PASSWD@SID

SID (database identifier) can be a DSN (see goracle/oracle.MakeDSN)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL