RDF::T...SQLite(3pm)
π RDF::T...SQLite β the tea β
okay bestie, so this is a page from the User Contributed Perl Documentation set, and it's all about RDF::Trine::Store::DBI::SQLite. Yes the name is long, she's got main character energy, we love her anyway. π
β¨ NAME β¨
RDF::Trine::Store::DBI::SQLite β it's the SQLite subclass of the DBI store. That's the whole vibe. π¦
πΈ VERSION πΈ
This doc describes RDF::Trine::Store::DBI::SQLite version 1.019. Periodt. π
π«Ά SYNOPSIS π«Ά
here's how you actually use her:
use RDF::Trine::Store::DBI::SQLite;
my $store = RDF::Trine::Store->new({
storetype => 'DBI',
name => 'test',
dsn => "dbi:SQLite:dbname=test.db",
username => '',
password => ''
});
look at that. dsn pointing at dbi:SQLite:dbname=test.db, empty username and password because SQLite said "no passwords, we're local, we're chill". iconic. π₯
π CHANGES IN VERSION 1.014 π
okay so this is the part where we sit down. πͺ the schema used to encode RDF data in SQLite changed in RDF::Trine version 1.014, and it changed to fix a bug that was causing data loss. so like, important. very important.
but here's the catch, bestie, and it's a big one:
β οΈ This change is not backwards compatible, and it's not compatible with the shared schema used by the other database backends that RDF::Trine supports β that's PostgreSQL and MySQL. not a drill. π¨
so if you wanna move data between SQLite and the other databases? you gotta export to an RDF serialization and then re-import it into the new database. that's the only way. no shortcuts, no sneaky direct copies. π
π§ METHODS π§
so beyond the methods we're documenting down here π, this class inherits methods from the RDF::Trine::Store::DBI class. free methods, we love a generous queen. π
new_with_config ( \%config )β returns a brand newRDF::Trine::Storeobject based on the config hashref you hand her. you give her a\%config, she gives you a store. fair trade. π€initβ creates all the necessary tables in the underlying database. she's building the foundation, literally. ποΈ
π BUGS π
found a bug? got a feature request? pls pls pls report it through the GitHub web interface at <https://github.com/kasei/perlrdf/issues>. don't suffer in silence bestie, the issues tab is right there. ππ«Ά
π AUTHOR π
Gregory Todd Williams β <gwilliams@cpan.org>. shoutout to the author, absolute legend. π
β COPYRIGHT β
Copyright (c) 2006-2012 Gregory Todd Williams. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. slay, open source. π
and that's the whole page, babes π this was documented on 2024-01-13, running under perl v5.38.2, brought to you by the User Contributed Perl Documentation crew. go forth and store your RDF responsibly. πΈβ¨π¦
π¦ where this page comes from
- debian trixie: librdf-trine-perl 1.019-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: librdf-trine-perl 1.019-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: librdf-trine-perl 1.019-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: librdf-trine-perl 1.019-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms