Home modules.gotpike.org
Username: Password: [Create Account]
[Forgot Password?]

Modules

ADT
Database
GTK2
GUI
IP
PiJAX
Public
Sql
Stdio
Subversion
System
Tools
Xosd
lua
v4l2
wx

Recent Changes

Public.Parser.XML2 1.50
Public.ZeroMQ 1.1
Public.Template.Mustache 1.0
Public.Protocols.XMPP 1.4
Sql.Provider.jdbc 1.0

Popular Downloads

Public.Parser.JSON2 1.0
Public.Parser.JSON 0.2
GTK2 2.23
Public.Web.FCGI 1.8
Public.Parser.XML2 1.48


Pike Module Reference:

module version 1, prepared

  MODULE Sql
Modules
Provider

  MODULE Sql.Provider
Modules
jdbc

  MODULE Sql.Provider.jdbc
Modules
Provider

  MODULE Sql.Provider.jdbc.Provider
Modules
jdbc

  MODULE Sql.Provider.jdbc.Provider.jdbc
Classes
CompiledStatement
jdbc_result

  CLASS Sql.Provider.jdbc.Provider.jdbc.CompiledStatement
Methods
bind()
clear_parameters()
get_statement()

Method bind

object Sql.Provider.jdbc.Provider.jdbc.CompiledStatement()->bind(mixed ... extraargs)

Description

binds the parameters supplied to the statement. parameters bound are retained unless explicitly cleared. subsequent calls may use existing bound parameters, overwrite some or all, or may completely clear the parameters using clear_parameters.

Note

not all java bindings are currently supported. More advanced needs may be met by getting the JDBC Statement object and operating directly on its methods. See get_statement.


Method clear_parameters

void Sql.Provider.jdbc.Provider.jdbc.CompiledStatement()->clear_parameters()


Variable compiled_statement

object Sql.Provider.jdbc.Provider.jdbc.CompiledStatement()->compiled_statement

Description

an object representing a JDBC Prepared statement

this class emulates named (:param) parameters and accepts binding arguments keyed using either the named parameter, if it exists or the position of the argument using its index number. Positional binding works regardless of whether the query was constructed using named parameters.

CompiledStatement objects are bound to the JDBC connection they were created from, and are closed when an exception occurs. Otherwise, a compiled statement may be reused. Bindings are saved between executions, so once bound may be used without rebinding, or may be rebound as necessary. See bind, clear_parameters, Sql.Sql.compile_query.


Method get_statement

object Sql.Provider.jdbc.Provider.jdbc.CompiledStatement()->get_statement()

Description

returns the low-level JDBC Statement object.


Inherit utils

  • .utils
  •   CLASS Sql.Provider.jdbc.Provider.jdbc.jdbc_result
    Methods
    num_rows()
    seek()

    Import


    Method num_rows

    int Sql.Provider.jdbc.Provider.jdbc.jdbc_result()->num_rows()

    Note

    this operation may be expensive, as it requires the result set to be cycled through in order to determine the number of rows. Also, the result set may not permit repositioning.


    Method seek

    void Sql.Provider.jdbc.Provider.jdbc.jdbc_result()->seek(int skip)

    Note

    skip may be positive (forward) or negative (backward), depending on whether the result set allows backward motion.

    gotpike.org | Copyright © 2004 - 2019 | Pike is a trademark of Department of Computer and Information Science, Linköping University