Skip to content

Deprecation notice: functionality moved into contributte/datagrid #36

@radimvaculik

Description

@radimvaculik

This repository is deprecated

The NetteDatabaseDataSource has been ported directly into the main contributte/datagrid repository and will be maintained there going forward.

What changed

The implementation was rewritten and integrated as Contributte\Datagrid\DataSource\NetteDatabaseDataSource in the core package. Key differences from this standalone package:

  • No extra dependencies — filter injection uses subquery wrapping instead of PHPSQLParser, so no additional packages are required.
  • Ships with datagrid — you no longer need a separate composer require for the data source.
  • Same API — constructor signature and behaviour are compatible: pass a Nette\Database\Explorer, a raw SQL string, and optional parameters.

Migration

Once the feature is released in a stable version of contributte/datagrid, replace:

use Contributte\DatagridNetteDatabaseDataSource\NetteDatabaseDataSource;

with:

use Contributte\Datagrid\DataSource\NetteDatabaseDataSource;

No other changes should be needed.

Timeline

The feature is currently in the feature/nette-database-data-source branch of contributte/datagrid. It will be included in the next release.

This repository will receive no further updates. Please open new issues and PRs in the main datagrid repository.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions