Skip to content
Snippets Groups Projects
Select Git revision
  • 5495424b3772e155c756b2aad46ceb09a7fcbe02
  • master default
  • rsa-crt-hardening
  • chacha96
  • fat-library
  • versioned-symbols
  • curve25519
  • dsa-reorg
  • aead-api
  • set_key-changes
  • poly1305
  • aes-reorg
  • nettle-2.7-fixes
  • size_t-changes
  • ecc-support
  • experimental-20050201
  • lsh-1.4.2
  • nettle_3.1.1_release_20150424
  • nettle_3.1_release_20150407
  • nettle_3.1rc3
  • nettle_3.1rc2
  • nettle_3.1rc1
  • nettle_3.0_release_20140607
  • nettle_2.7.1_release_20130528
  • nettle_2.7_release_20130424
  • nettle_2.6_release_20130116
  • nettle_2.5_release_20120707
  • converted-master-branch-to-git
  • nettle_2.4_release_20110903
  • nettle_2.3_release_20110902
  • nettle_2.2_release_20110711
  • nettle_2.1_release_20100725
  • camellia_32bit_20100720
  • nettle_2.0_release_20090608
  • nettle_1.15_release_20061128
  • after_experimental_merge_20060516
  • head_before_experimental_merge_20060516
37 results

base64-encode.c

Blame
  • Forked from Nettle / nettle
    Source project has a limited visibility.
    sql_result 3.42 KiB
    NAME
    	/precompiled/sql/sql_result - generic SQL result from a big_query (ALPHA)
    
    DESCRIPTION
    	/precompiled/sql_result is a precompiled Pike program. It usually
    	contains the result from an SQL-query. It acts as a wrapper for
    	e.g. /precompiled/sql/mysql_result and /precompiled/sql_msql_result.
    	
    KEYWORDS
    	sql, database
    
    SEE ALSO
    	/precompiled/sql/mysql_result, /precompiled/sql/msql_result
    
    
    ============================================================================
    NAME
    	create - make a new sql_result object
    
    SYNTAX
    	#include <sql.h>
    
    	object(Sql_result) Sql_result(object res);
    	or
    	object(Sql_result) Sql_result(array(mapping(string:mixed)) res);
    	or
    	object(Sql_result) sql->big_query(string q);
    
    DESCRIPTION
    	The first two functions generate a Sql_result object from an
    	existing result. The second makes it from the result of the
    	SQL-query q.
    
    SEE ALSO
    	sql->big_query, /precompiled/sql
    
    
    ============================================================================
    NAME
    	num_rows - number of rows in the result
    
    SYNTAX
    	#include <sql.h>
    
    	int sql_result->num_rows();
    
    DESCRIPTION
    	Returns the number of rows in the result.
    
    SEE ALSO
    	sql_result->num_fields
    
    
    ============================================================================
    NAME
    	num_fields - number of fields in the result
    
    SYNTAX
    	#include <sql.h>
    
    	int sql_result->num_fields();
    
    DESCRIPTION
    	Returns the number of fields in the result.
    
    SEE ALSO
    	sql_result->num_rows
    
    
    ============================================================================
    NAME
    	eof - at end of result table
    
    SYNTAX
    	#include <sql.h>
    
    	int sql_result->eof();
    
    DESCRIPTION
    	Returns non-zero when all rows have been read.
    
    SEE ALSO
    	sql_result->fetch_row, sql_result->seek
    
    
    ============================================================================
    NAME
    	fetch_fields - return specification of fields
    
    SYNTAX
    	#include <sql.h>
    
    	array(int|mapping(string:mixed)) sql_result->fetch_field();
    
    DESCRIPTION
    	Returns an array of mappings with information about the fields
    	in the sql_result.
    
    	The mappings may contain these fields:
    
    	 "name":	string	The name of the field.
    	 "table":	string	The name of the table.
    	 "type":	string	The type of the field.
    	 "length":	int	The length of the field.
    	 "max_length":	int	The length of the longest element in this field.
    	 "flags":	int	Some flags (Server specific).
    	 "decimals":	int	The number of decimalplaces.
    
    	The only field guaranteed to exist is "name".
    
    	The type of the field can be any of:
    	"decimal", "char", "short", "long", "float", "double", "null",
    	"time", "longlong", "int24", "tiny blob", "medium blob",
    	"long blob", "var string", "string" or "unknown".
    
    BUGS
    	The "flags" entry should be parsed.
    
    	Maybe too stringent definition of the type-field.
    
    SEE ALSO
    	sql->list_fields
    
    
    ============================================================================
    NAME
    	seek - skip ahead a number of rows
    
    SYNTAX
    	#include <sql.h>
    
    	void sql_result->seek(int skip);
    
    DESCRIPTION
    	Skips ahead the specified number of rows.
    
    NOTA BENE
    	Only seeking ahead is supported.
    
    SEE ALSO
    	sql_result->fetch_row
    
    
    ============================================================================
    NAME
    	fetch_row - fetch the next row from the result
    
    SYNTAX
    	#include <sql.h>
    
    	int|array(string|int) sql_result->fetch_row();
    
    DESCRIPTION
    	Returns an array with the contents of the next row of the result.
    	Advances the row cursor to the next row. Returns 0 (zero) at the
    	end of the table.
    
    SEE ALSO
    	sql_result->seek