-
-
17 May 2022 10:49:29 UTC
- Distribution: DBIx-Class
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues (120)
- Testers (243 / 0 / 0)
- Kwalitee
Bus factor: 1- % Coverage
- License: perl_5
- Perl: v5.8.1
- Activity
24 month- Tools
- Download (858.78KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 210 contributors-
mst: Matt S Trout (project founder - original idea, architecture and implementation)
-
castaway: Jess Robinson (lions share of the reference documentation and manuals)
-
abraxxa: Alexander Hartmaier
-
acca: Alexander Kuznetsov
-
acme: Leon Brocard
-
aherzog: Adam Herzog
-
Alexander Keusch
-
alexrj: Alessandro Ranellucci
-
alnewkirk: Al Newkirk
-
Altreus: Alastair McGowan-Douglas
-
amiri: Amiri Barksdale
-
amoore: Andrew Moore
-
Andrew Mehta
-
andrewalker: Andre Walker
-
andyg: Andy Grundman
-
ank: Andres Kievsky
-
arc: Aaron Crane
-
arcanez: Justin Hunter
-
ash: Ash Berlin
-
bert: Norbert Csongrádi
-
bfwg: Colin Newell
-
blblack: Brandon L. Black
-
bluefeet: Aran Deltac
-
boghead: Bryan Beeley
-
bphillips: Brian Phillips
-
brd: Brad Davis
-
Brian Kirkbride
-
bricas: Brian Cassidy
-
brunov: Bruno Vecchi
-
caelum: Rafael Kitover
-
caldrin: Maik Hentsche
-
chorny: Alexandr Ciornii
-
cj: C.J. Adams-Collier
-
claco: Christopher H. Laco
-
clkao: CL Kao
- Ctrl-O http://ctrlo.com/
-
da5id: David Jack Olrik
-
dams: Damien Krotkine
-
dandv: Dan Dascalescu
-
dariusj: Darius Jokilehto
-
davewood: David Schmidt
-
daxim: Lars Dɪᴇᴄᴋᴏᴡ 迪拉斯
-
dduncan: Darren Duncan
-
debolaz: Anders Nor Berle
-
dew: Dan Thomas
-
dim0xff: Dmitry Latin
-
dkubb: Dan Kubb
-
dnm: Justin Wheeler
-
dpetrov: Dimitar Petrov
-
Dr^ZigMan: Robert Stone
-
dsteinbrunner: David Steinbrunner
-
duncan_dmg: Duncan Garland
-
dwc: Daniel Westermann-Clark
-
dyfrgi: Michael Leuchtenburg
-
edenc: Eden Cardim
- Eligo http://eligo.co.uk/
-
ether: Karen Etheridge
-
evdb: Edmund von der Burg
-
faxm0dem: Fabien Wernli
-
felliott: Fitz Elliott
-
fgabolde: Fabrice Gabolde
-
freetime: Bill Moseley
-
frew: Arthur Axel "fREW" Schmidt
-
gbjk: Gareth Kirwan
-
geotheve: Georgina Thevenet
-
Getty: Torsten Raudssus
-
goraxe: Gordon Irving
-
gphat: Cory G Watson
- Grant Street Group http://www.grantstreet.com/
-
gregoa: Gregor Herrmann
-
groditi: Guillermo Roditi
-
gshank: Gerda Shank
-
guacamole: Fred Steinberg
-
Haarg: Graham Knop
-
hobbs: Andrew Rodland
-
Ian Wells
-
idn: Ian Norton
-
ilmari: Dagfinn Ilmari Mannsåker
-
ingy: Ingy döt Net
-
initself: Mike Baas
-
ironcamel: Naveed Massjouni
-
jasonmay: Jason May
-
jawnsy: Jonathan Yu
-
jegade: Jens Gassmann
-
jeneric: Eric A. Miller
-
jesper: Jesper Krogh
-
Jesse Sheidlower
-
jgoulah: John Goulah
-
jguenther: Justin Guenther
-
jhannah: Jay Hannah
-
jmac: Jason McIntosh
-
jmmills: Jason M. Mills
-
jnapiorkowski: John Napiorkowski
-
Joe Carlson
-
jon: Jon Schutz
-
Jordan Metzmeier
-
jshirley: J. Shirley
- kaare: Kaare Rasmussen
-
kd: Kieren Diment
-
kentnl: Kent Fredric
-
kkane: Kevin L. Kane
-
konobi: Scott McWhirter
-
lejeunerenard: Sean Zellmer
-
leont: Leon Timmermans
-
littlesavage: Alexey Illarionov
-
lukes: Luke Saunders
-
marcus: Marcus Ramberg
-
mateu: Mateu X. Hunter
-
Matt LeBlanc
-
Matt Sickler
- mattlaw: Matt Lawrence
-
mattp: Matt Phillips
-
mdk: Mark Keating
-
melo: Pedro Melo
-
metaperl: Terrence Brannon
-
michaelr: Michael Reddick
-
milki: Jonathan Chu
-
minty: Murray Walker
-
mithaldu: Christian Walde
-
mjemmeson: Michael Jemmeson
- mna: Maya
-
mo: Moritz Onken
-
moltar: Roman Filippov
-
moritz: Moritz Lenz
-
mrf: Mike Francis
-
mstratman: Mark A. Stratman
-
ned: Neil de Carteret
-
nigel: Nigel Metheringham
-
ningu: David Kamholz
-
Nniuq: Ron "Quinn" Straight"
-
norbi: Norbert Buchmuller
-
nothingmuch: Yuval Kogman
-
nuba: Nuba Princigalli
-
Numa: Dan Sully
-
oalders: Olaf Alders
-
Olly Betts
-
osfameron: Hakim Cassimally
-
ovid: Curtis "Ovid" Poe
-
oyse: Øystein Torget
-
paulm: Paul Makepeace
-
penguin: K J Cheetham
-
perigrin: Chris Prather
-
Peter Siklósi
-
Peter Valdemar Mørch
-
peter: Peter Collingbourne
-
phaylon: Robert Sedlacek
-
plu: Johannes Plunien
-
pmooney: Paul Mooney
-
Possum: Daniel LeWarne
-
pplu: Jose Luis Martinez
-
quicksilver: Jules Bean
-
racke: Stefan Hornburg
-
rafl: Florian Ragwitz
-
rainboxx: Matthias Dietrich
-
rbo: Robert Bohne
-
rbuels: Robert Buels
-
rdj: Ryan D Johnson
-
Relequestual: Ben Hutton
-
renormalist: Steffen Schwigon
-
rjbs: Ricardo Signes
-
Robert Krimen
-
Robert Olson
-
robkinyon: Rob Kinyon
-
Roman Ardern-Corris
-
ruoso: Daniel Ruoso
-
Sadrak: Felix Antonius Wilhelm Ostmann
- sc_: Just Another Perl Hacker
-
schwern: Michael G Schwern
-
Scott R. Godin
-
scotty: Scotty Allen
-
semifor: Marc Mims
-
Simon Elliott
-
SineSwiper: Brendan Byrd
-
skaufman: Samuel Kaufman
-
solomon: Jared Johnson
-
spb: Stephen Bennett
-
Squeeks
-
srezic: Slaven Rezic
-
sszabo: Stephan Szabo
-
Stephen Peters
-
stonecolddevin: Devin Austin
-
talexb: Alex Beamish
-
tamias: Ronald J Kimball
-
TBSliver: Tom Bloor
-
teejay: Aaron Trevena
-
theorbtwo: James Mastros
-
Thomas Kratz
-
timbunce: Tim Bunce
-
tinita: Tina Mueller
- Todd Lipcon
-
Tom Hukins
-
tommy: Tommy Butler
-
tonvoon: Ton Voon
-
triode: Pete Gamache
-
typester: Daisuke Murase
-
uree: Oriol Soriano
-
uwe: Uwe Voelker
-
vanstyn: Henry Van Styn
-
victori: Victor Igumnov
-
wdh: Will Hawes
-
wesm: Wes Malone
-
willert: Sebastian Willert
-
wintermute: Toby Corkindale
-
wreis: Wallace Reis
-
x86-64
-
xenoterracide: Caleb Cushing
-
xmikew: Mike Wisener
-
yrlnry: Mark Jason Dominus
-
zamolxes: Bogdan Lucaciu
-
Zefram: Andrew Main
- Dependencies
- Class::Accessor::Grouped
- Class::C3::Componentised
- Class::Inspector
- Config::Any
- Context::Preserve
- DBI
- Data::Dumper::Concise
- Devel::GlobalDestruction
- Hash::Merge
- MRO::Compat
- Module::Find
- Moo
- Path::Class
- SQL::Abstract::Classic
- Scope::Guard
- Sub::Name
- Text::Balanced
- Try::Tiny
- namespace::clean
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
DBIx::Class::CDBICompat - Class::DBI Compatibility layer.
SYNOPSIS
package My::CDBI; use base qw/DBIx::Class::CDBICompat/; ...continue as Class::DBI...
DESCRIPTION
DBIx::Class features a fully featured compatibility layer with Class::DBI and some common plugins to ease transition for existing CDBI users.
This is not a wrapper or subclass of DBIx::Class but rather a series of plugins. The result being that even though you're using the Class::DBI emulation layer you are still getting DBIx::Class objects. You can use all DBIx::Class features and methods via CDBICompat. This allows you to take advantage of DBIx::Class features without having to rewrite your CDBI code.
Plugins
CDBICompat is good enough that many CDBI plugins will work with CDBICompat, but many of the plugin features are better done with DBIx::Class methods.
Class::DBI::AbstractSearch
search_where()
is fully emulated using DBIC's search. Aside from emulation there's no reason to usesearch_where()
.Class::DBI::Plugin::NoCache
nocache
is fully emulated.Class::DBI::Sweet
The features of CDBI::Sweet are better done using DBIC methods which are almost exactly the same.
Class::DBI::Plugin::DeepAbstractSearch
This plugin will work, but it is more efficiently done using DBIC's native search facilities. The major difference is that DBIC will not infer the join for you, you have to tell it the join tables.
Choosing Features
In fact, this class is just a recipe containing all the features emulated. If you like, you can choose which features to emulate by building your own class and loading it like this:
package My::DB; __PACKAGE__->load_own_components(qw/CDBICompat/);
this will automatically load the features included in My::DB::CDBICompat, provided it looks something like this:
package My::DB::CDBICompat; __PACKAGE__->load_components(qw/ CDBICompat::ColumnGroups CDBICompat::Retrieve CDBICompat::HasA CDBICompat::HasMany CDBICompat::MightHave /);
LIMITATIONS
Unimplemented
The following methods and classes are not emulated, maybe in the future.
- Class::DBI::Query
-
Deprecated in Class::DBI.
- Class::DBI::Column
-
Not documented in Class::DBI. CDBICompat's columns() returns a plain string, not an object.
- data_type()
-
Undocumented CDBI method.
Limited Support
The following elements of Class::DBI have limited support.
- Class::DBI::Relationship
-
The semi-documented Class::DBI::Relationship objects returned by
meta_info($type, $col)
are mostly emulated except for theirargs
method. - Relationships
-
Relationships between tables (has_a, has_many...) must be declared after all tables in the relationship have been declared. Thus the usual CDBI idiom of declaring columns and relationships for each class together will not work. They must instead be done like so:
package Foo; use base qw(Class::DBI); Foo->table("foo"); Foo->columns( All => qw(this that bar) ); package Bar; use base qw(Class::DBI); Bar->table("bar"); Bar->columns( All => qw(up down) ); # Now that Foo and Bar are declared it is safe to declare a # relationship between them Foo->has_a( bar => "Bar" );
FURTHER QUESTIONS?
Check the list of additional DBIC resources.
COPYRIGHT AND LICENSE
This module is free software copyright by the DBIx::Class (DBIC) authors. You can redistribute it and/or modify it under the same terms as the DBIx::Class library.
Module Install Instructions
To install DBIx::Class, copy and paste the appropriate command in to your terminal.
cpanm DBIx::Class
perl -MCPAN -e shell install DBIx::Class
For more information on module installation, please visit the detailed CPAN module installation guide.