Net::LDAP::Filter to SQL clause transformer
Perl
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/Net/LDAP/Filter
t
.gitignore
README.asciidoc
dist.ini
weaver.ini

README.asciidoc

Net::LDAP::Filter::SQL

Synopsis

my $ldapfilter  = new Net::LDAP::Filter::SQL('(&(name=Marge)(city=Springfield))');

my $sql = 'select * from sometable where '.$ldapfilter->sql_clause;

$dbh->selectall_arrayref($sql, undef, $ldapfilter->sql_values);

Data tranformation

source data
"(&(name=Marge)(city=Springfield))";
target data
['name = ? and city = ?', ['Marge', 'Springfield'] ]