| 1 | package WebDyne::Cloudflare::D1::Session; | ||||||||||
| 2 | |||||||||||
| 3 | 1 | ▶ | use 5.020; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 1 | ▶ | use Future::AsyncAwait; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 1 | ▶ | use WebDyne::Cloudflare::D1; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | 1 | our @ISA=qw(WebDyne::Cloudflare::D1); | |||||||||
| 10 | 1 | our $VERSION='0.001'; | |||||||||
| 11 | |||||||||||
| 12 | 0 | ▶ | sub new { | ||||||||
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 13 | 0 | die "Create D1 sessions with with_session()\n"; | |||||||||
| 14 | } | ||||||||||
| 15 | |||||||||||
| 16 | |||||||||||
| 17 | 4 | ▶ | async sub get_bookmark { | ||||||||
|
Subroutine
get_bookmark: called CC=2 SCAR=7.0
Pod
undocumented
| |||||||||||
| 18 | 4 | my ($self)=@_; | |||||||||
| 19 | 4 | ▶ | die "D1 get_bookmark takes no arguments\n" unless (@_==1); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 20 | 4 | return await $self->execute(operation => 'get_bookmark'); | |||||||||
| 21 | 1 | } | |||||||||
| 22 | |||||||||||
| 23 | 1 | 1; | |||||||||