RDF::T...SQLite(3pm)

πŸ“¦
version 1.019 Β· 7 versions
, in debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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 new RDF::Trine::Store object 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 (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