Download List

Projeto Descrição

Zebra_Database is an advanced, compact (one-file only), lightweight, object-oriented MySQL database wrapper built upon PHP’s MySQL extension. It provides methods for interacting with MySQL databases that are more powerful and intuitive to use than PHP’s default ones. It supports transactions and provides ways for caching query results either by saving cached data on the disk, or by using memcache.The class provides a comprehensive debugging interface with detailed information about the executed queries: execution time, returned/affected rows, excerpts of the found rows, error messages, etc. It also automatically EXPLAIN‘s each SELECT query (so you don’t miss those keys again). It encourages developers to write maintainable code and provides a better default security layer by automatically escaping strings. Zebra_Database‘s code is heavily commented and generates no warnings, errors, or notices when PHP’s error reporting level is set to E_ALL.

System Requirements

System requirement is not defined
Information regarding Project Releases and Project Resources. Note that the information here is a quote from Freecode.com page, and the downloads themselves may not be hosted on OSDN.

2012-01-08 09:34
2.7

Esta versão adiciona suporte para armazenar em cache os resultados de consulta usando memcache, corrige um bug que causou o script falha se o objeto foi instanciado mais de uma vez e o método de idioma foi chamado para cada uma das instâncias, reescreve completamente o método dlookup, que não estava funcionando corretamente se outra coisa senão uma lista separada por vírgulas de nomes de coluna foi usada (como uma expressãopor exemplo) e permite que o método "conectar" tomar um argumento adicional instruindo-lo para se conectar ao banco de dados certa distância em vez de usar uma conexão "preguiçosa".
This release adds support for caching query results using memcache, fixes a bug which caused the script to crash if the object was instantiated more than once and the language method was called for each of the instances, completely rewrites the dlookup method, which was not working correctly if anything other than a comma-separated list of column names was used (like an expression, for example), and lets the "connect" method take an additional argument instructing it to connect to the database right away rather than using a "lazy" connection.

2011-09-04 16:36
2.6

O nome do "get_columns" método foi mudado para "get_table_columns", como ele retornou o número de colunas em uma determinada tabela. Um novo "get_columns" método foi adicionado, que toma como argumento um recurso e retorna o número de colunas no determinado recurso. Alguns esclarecimentos na documentação também foram feitas.
The name of the "get_columns" method was changed to "get_table_columns", as it returned the number of columns in a given table. A new "get_columns" method was added, which takes as argument a resource and returns the number of columns in the given resource. Some clarifications in the documentation were also made.

2011-07-02 14:19
2.5

Esta lançado acrescentou um "get_link" método, que retorna o identificador de conexão MySQL associado com a conexão atual do servidor MySQL. Isto é necessário porque a biblioteca usa "ligação preguiçoso", então não há nenhum identificador de conexão disponíveis ao chamar o método de conexão. Os métodos de inserção e insert_bulk ter um novo argumento para a criação de consultas INSERT IGNORE que irá ignorar registros que causaria uma entrada duplicada para uma chave primária. O valor padrão da propriedade "depuração" foi definido como FALSE.
This released added a "get_link" method, which returns the MySQL link identifier associated with the current connection to the MySQL server. This is necessary because the library uses "lazy connection", so there is no link identifier available when calling the connect method. The insert and insert_bulk methods have a new argument for creating INSERT IGNORE queries which will skip records that would cause a duplicate entry for a primary key. The default value of the "debug" property was set to FALSE.

2011-06-20 16:07
2.4

Um bug foi corrigido no método insert_bulk. Um novo método foi adicionado, chamado table_exists, que verifica se uma tabela com o nome dado como argumento existe no banco de dados. O método de seleção agora também aceita argumentos limite e fim; devido a esta mudança, este método não é compatível com versões anteriores. Alguns refinamentos documentação foram feitas.
A bug was fixed in the insert_bulk method. A new method was added, called table_exists, which checks to see if a table with the name given as argument exists in the database. The select method now also accepts limit and order arguments; due to this change, this method is not compatible with previous versions. Some documentation refinements were made.

2011-04-16 06:40
2.3

Um bug foi corrigido onde o script iria gerar um aviso se o método de atualização foi chamado com argumentos inválidos, e isso muda a forma como o método de liberação insert_bulk precisa receber argumentos, tornando-o mais fácil de usar.
A bug was fixed where the script would generate a warning if the update method was called with invalid arguments, and this release changes how the insert_bulk method needs to receive arguments, making it easier to use.

Project Resources