Result for 0C34E99FA073D337605CB10F35B7A7852087D9EB

Query result

Key Value
MD5162732DA2A3D20D619B3920F568315D2
PackageArchnoarch
PackageDescriptionMojo::SQLite is a tiny wrapper around DBD::SQLite that makes at https://www.sqlite.org/ a lot of fun to use with the at https://mojolico.us real-time web framework. Use all at http://sqlite.org/lang.html SQLite has to offer, generate CRUD queries from data structures, and manage your database schema with migrations. Database and statement handles are cached automatically, so they can be reused transparently to increase performance. And you can handle connection timeouts gracefully by holding on to them only for short amounts of time. use Mojolicious::Lite; use Mojo::SQLite; helper sqlite => sub { state $sql = Mojo::SQLite->new('sqlite:test.db') }; get '/' => sub { my $c = shift; my $db = $c->sqlite->db; $c->render(json => $db->query('select datetime("now","localtime") as now')->hash); }; app->start; In this example application, we create a 'sqlite' helper to store a Mojo::SQLite object. Our action calls that helper and uses the method Mojo::SQLite/"db" to dequeue a Mojo::SQLite::Database object from the connection pool. Then we use the method Mojo::SQLite::Database/"query" to execute an at http://www.postgresql.org/docs/current/static/sql.html statement, which returns a Mojo::SQLite::Results object. And finally we call the method Mojo::SQLite::Results/"hash" to retrieve the first row as a hash reference. All I/O and queries are performed synchronously. However, the "Write-Ahead Log" journal is enabled for all connections, allowing multiple processes to read and write concurrently to the same database file (but only one can write at a time). You can prevent this mode from being enabled by passing the option 'no_wal', but note that this is incompatible with SQLite databases that have already had WAL mode enabled. See http://sqlite.org/wal.html and DBD::SQLite/"journal_mode" for more information. my $pid = fork || die $!; say $sql->db->query('select datetime("now","localtime") as time')->hash->{time}; exit unless $pid; All cached database handles will be reset automatically if a new process has been forked, this allows multiple processes to share the same Mojo::SQLite object safely. Any database errors will throw an exception as 'RaiseError' is automatically enabled, so use 'eval' or Try::Tiny to catch them. This makes transactions with Mojo::SQLite::Database/"begin" easy. While passing a file path of ':memory:' (or a custom "dsn" with 'mode=memory') will create a temporary database, in-memory databases cannot be shared between connections, so subsequent calls to "db" may return connections to completely different databases. For a temporary database that can be shared between connections and processes, pass a file path of ':temp:' to store the database in a temporary directory (this is the default), or consider constructing a temporary directory yourself with File::Temp if you need to reuse the filename. A temporary directory allows SQLite to create at https://www.sqlite.org/tempfiles.html safely. use File::Spec::Functions 'catfile'; use File::Temp; use Mojo::SQLite; my $tempdir = File::Temp->newdir; # Deleted when object goes out of scope my $tempfile = catfile $tempdir, 'test.db'; my $sql = Mojo::SQLite->new->from_filename($tempfile);
PackageMaintainerhttps://bugs.opensuse.org
PackageNameperl-Mojo-SQLite
PackageReleaselp151.2.1
PackageVersion3.000
SHA-10C34E99FA073D337605CB10F35B7A7852087D9EB
SHA-25605124A6A414027BBDF64CA9FB31377C22ED52F2354C83000ECB8C97E26BEAFCF
hashlookup:children-total29
hashlookup:trust50

Network graph view

Children (Total: 29)

The searched file hash includes 29 children files known and seen by metalookup. A sample is included below:

Key Value
FileName./usr/share/doc/packages/perl-Mojo-SQLite/examples/blog/blog.conf
FileSize53
MD55DCF3799E96D68FB95C61EDCBE44EE96
SHA-103007D482CF053804F875004C207DB3F2277A7CC
SHA-2565CE91D9D454966B98F29B3ACBACB8BA326FB1F0AB08DD5D27572D4D8DB1A5C9F
SSDEEP3:Uv4xi4Z+8A06vn:Uv4kn8A0E
TLSHT1339002B612B5B90AC841D907B509715812E848015504215754F8A4A8459D4B5E0154C4
Key Value
FileName./usr/share/doc/packages/perl-Mojo-SQLite/examples/blog/script/blog
FileSize229
MD50A8DAAE5B6858CFC1BEEA451CA214B30
SHA-105AFD3744BF8B5B0D2ACD50A931745D2DC8928EF
SHA-256C2138C0E9937CF069D6B0F564435900EF743C0B64559050C010E4AB227B5967D
SSDEEP6:HWaHZ8aQStFmejcSlKyy6K1igZEEJMl01TCe//1TCIln:HRYSpjcSlKqKSEXhFV
TLSHT138D02383821C13A3241031DA803ED730F0D1633C305F320F4870B800C0A05D1333E01C
Key Value
FileName./usr/share/man/man3/Mojo::SQLite::Results.3pm.gz
FileSize3206
MD5ECCEB1CB1F068B341DD9491467BCB55B
SHA-1063364115D1D89FF9D95DE4AF1EF31A538922AE6
SHA-25642A82F017A63907D1BDE1549FD9B59BC0D6D4C62E09D43E46C04AAC1EC065BC9
SSDEEP96:oArT4EihsKXnOR5yHx94M8GIFY+MVNZ4wUZ42dDhnZ:oyGhscORbRRET49BdDv
TLSHT191612D002FD6EE465704141D35372B12520C35E1A8BD968AE01F62A4715B2B6E36DF7A
Key Value
FileName./usr/share/doc/packages/perl-Mojo-SQLite/Changes
FileSize5456
MD5580E254BCEABC881560B6507CC4257C8
SHA-1162C4475B847D328FBC3CBE8BF63D0857724E17F
SHA-25666D08258F1FE85344993D3E0035D0B147EDC7E08DC3C2E0A4B72C94BE83F056C
SSDEEP96:35mpoLtOMc1CCZiFIZ2gST8XaWvGdG2ywzv3ziaXiF:35mpoRBcdZcIZ14GEGf0+xF
TLSHT1FEB178A02A6768910AF342F7613760E5D674B09EEF171645BDEEC2DC4B05420B3BFA35
Key Value
FileName./usr/lib/perl5/vendor_perl/5.26.1/Mojo/SQLite.pm
FileSize16899
MD53ABCD57C3A2C53DF4F1B3D7BB4ECBF95
SHA-1196B75418D4B1F2EB325F0CF0CCF0F835FAD23FD
SHA-256260699BFD63BB1055172A6BDC6C4E8A26FDF8CD37638AADA3D8ED8E5821A51F3
SSDEEP384:Ihb+6Syqkmt9t6DiadhtykN/4na4xMpfhSaC/VV62PZJnywsBBltsD+0sk9VtqrQ:IhDOt9t6GadhtykOna4OdC/VV62PZJn7
TLSHT13472E6857142D7A046F345F31AFA80D19ABAE41CBE254762A8EDC22C0E9497073F7F97
Key Value
FileName./usr/share/doc/packages/perl-Mojo-SQLite/examples/blog/lib/Blog/Model/Posts.pm
FileSize545
MD502CA4B01A24BEA6BC2F4D99E218D961B
SHA-11F1738FB07309E17781AD7618F630C9A1251B1A5
SHA-256398A789D4EAA96CAF2F50FCE3A4CF7E350F4A839D7D73BF1385A8CB063353891
SSDEEP12:fPR1DHG2aaZBBRdJwHUepRdJwgRkXDDeNcw:B1Dm2ayBLdK0eTdKiWDqNcw
TLSHT183F0F6C5E5D49B0C53A490364974E1C2E8DE04526F3D04745FBC7154DFC069B09A94AC
Key Value
FileName./usr/share/man/man3/Mojo::SQLite::Migrations.3pm.gz
FileSize3242
MD5D379E9494558AE45DC5DE044D9A5EFB5
SHA-12B9F53A3CB40F89D8A4FBC14EB8C71A532201553
SHA-256F9CBDFFE2223D01FA6D5E4021E6318A41985455529C1D1DC5D264AA9F6934E51
SSDEEP48:XrHYXcx81OKLzkKPBX4iqm2PZT7NwC35QJI+ffOCcr269K6e2b9LLmhjslOB3Cjt:bHBtK5IxT7qUgo3269Z9IQlkCF8+j
TLSHT173612B36FCDB8B76C33B313932148705CAA4DAB0AE96A5920DBD7423445848D48DF679
Key Value
FileName./usr/lib/perl5/vendor_perl/5.26.1/Mojo/SQLite/Results.pm
FileSize5298
MD55A4FD1F2759568744A480C6FBF1F94CF
SHA-133EA9417785703243C9F1B82B2D0D53101DE9A7E
SHA-256017E36E3D740A510F3D22CF7E047191B4623205E98C3685EC484A2E1C1128777
SSDEEP96:xQeXg9VQ/C5npVd/BxA24jhJR1MmxZY78PVNNwuHm2gYs8OL3hZ0KHy6t6v:xTU/d/v6jZ08PVNZgr8OLvd/E
TLSHT19EB1C6C22493AEECC7F730F632E65292A697B458552C46413DEEC0188EC2D353B7DA0D
Key Value
FileName./usr/lib/perl5/vendor_perl/5.26.1/Mojo/SQLite/PubSub.pm
FileSize816
MD5E71078232CBF40655AEC95FEFA803543
SHA-1354B3081F3E0AACAE24FF77B5ECE737F69EFC766
SHA-256514DC52467544D4CBE2B27753F0A8B89314BDE8CFC2EC443C12BE9937A33176C
SSDEEP12:tycufsQuKwy+iH4sv8EK56y+gpnyoZCRXEFYqnVUeIQwyKA1U+EesG4npWEiyHBY:tJQu7uThn+ptCZZjwLmWByHBLgp
TLSHT15B01CEE18909AFB56854017B623B48DE93E5F198F71A4B450CD447BD5A4E719333C825
Key Value
FileName./usr/share/man/man3/Mojo::SQLite::Transaction.3pm.gz
FileSize2316
MD53E48BDA311AF00C60584BFAAE90B3C52
SHA-135AA0CC487AEF5F2137618BD5AAE9A150EDD5B1A
SHA-2565BF8B1E34F6AF7F0FA392A57E64CC000D0DD188837700594C27BFFBBDA10D511
SSDEEP48:XPTKfKQIK5QtASMH2gHrPAceSZJUl0DhiBX+91X3dyEm8ghDzkh:efKQst0H2gHrPheSc006X3cCghvI
TLSHT137414E0EF1BD12303178AE2BE366655D93F0F2400416794531E613C165ECC4F0A57575