Documentation ¶
Index ¶
- type Result
- type Rows
- type SQLiteOGConn
- func (c *SQLiteOGConn) Begin() (driver.Tx, error)
- func (c *SQLiteOGConn) Close() error
- func (c *SQLiteOGConn) DoCallbackDance(ctx context.Context) error
- func (c *SQLiteOGConn) ExecContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Result, error)
- func (c *SQLiteOGConn) IsValid() bool
- func (c *SQLiteOGConn) Ping(ctx context.Context) error
- func (c *SQLiteOGConn) Prepare(query string) (driver.Stmt, error)
- func (c *SQLiteOGConn) QueryContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Rows, error)
- func (c *SQLiteOGConn) ResetSession(ctx context.Context) error
- type SQLiteOGConnector
- type SQLiteOGDriver
- type SQLiteOGStmt
- func (s *SQLiteOGStmt) Close() error
- func (s *SQLiteOGStmt) Exec(args []driver.Value) (driver.Result, error)
- func (s *SQLiteOGStmt) ExecContext(ctx context.Context, args []driver.NamedValue) (driver.Result, error)
- func (s *SQLiteOGStmt) NumInput() int
- func (s *SQLiteOGStmt) Query(args []driver.Value) (driver.Rows, error)
- func (s *SQLiteOGStmt) QueryContext(ctx context.Context, args []driver.NamedValue) (driver.Rows, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Result ¶
type Result struct {
// contains filtered or unexported fields
}
func (*Result) LastInsertId ¶
func (*Result) RowsAffected ¶
type Rows ¶
type Rows struct {
// contains filtered or unexported fields
}
func (*Rows) ColumnTypeDatabaseTypeName ¶
type SQLiteOGConn ¶
type SQLiteOGConn struct { ID string DBName string GRPCConn *grpc.ClientConn OGClient pb.SqliteOGClient Funcs map[string]callbackFunc // contains filtered or unexported fields }
func NewConnection ¶
func NewConnection(ctx context.Context, dbname string, grpcConn *grpc.ClientConn, callbacksEnabled bool, callbacks map[string]callbackFunc) (*SQLiteOGConn, error)
func (*SQLiteOGConn) Close ¶
func (c *SQLiteOGConn) Close() error
func (*SQLiteOGConn) DoCallbackDance ¶
func (c *SQLiteOGConn) DoCallbackDance(ctx context.Context) error
func (*SQLiteOGConn) ExecContext ¶
func (c *SQLiteOGConn) ExecContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Result, error)
func (*SQLiteOGConn) IsValid ¶
func (c *SQLiteOGConn) IsValid() bool
func (*SQLiteOGConn) QueryContext ¶
func (c *SQLiteOGConn) QueryContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Rows, error)
func (*SQLiteOGConn) ResetSession ¶
func (c *SQLiteOGConn) ResetSession(ctx context.Context) error
type SQLiteOGConnector ¶
type SQLiteOGConnector struct {
// contains filtered or unexported fields
}
func (*SQLiteOGConnector) Driver ¶
func (c *SQLiteOGConnector) Driver() driver.Driver
type SQLiteOGDriver ¶
func (*SQLiteOGDriver) OpenConnector ¶
func (d *SQLiteOGDriver) OpenConnector(dsn string) (driver.Connector, error)
type SQLiteOGStmt ¶
type SQLiteOGStmt struct {
// contains filtered or unexported fields
}
func (*SQLiteOGStmt) Close ¶
func (s *SQLiteOGStmt) Close() error
func (*SQLiteOGStmt) ExecContext ¶
func (s *SQLiteOGStmt) ExecContext(ctx context.Context, args []driver.NamedValue) (driver.Result, error)
func (*SQLiteOGStmt) NumInput ¶
func (s *SQLiteOGStmt) NumInput() int
func (*SQLiteOGStmt) QueryContext ¶
func (s *SQLiteOGStmt) QueryContext(ctx context.Context, args []driver.NamedValue) (driver.Rows, error)
Click to show internal directories.
Click to hide internal directories.