当前位置:网站首页>How to install and use PHP library neo4j
How to install and use PHP library neo4j
2022-07-28 22:42:00 【Yisu cloud】
PHP library neo4j How to install and use
This article mainly introduces PHP library neo4j How to install and use relevant knowledge , The content is detailed and easy to understand , The operation is simple and fast , It has certain reference value , I believe that after reading this article PHP library neo4j How to install and use the article will be fruitful , Let's have a look .
Introduce
be based on PHP Of neo4j library , It can help you connect more conveniently neo4j Of PHP library
Installation environment requirements
PHP >= 7.4
install
composer require church/neo4j
usage
initialization
$app = new \Church\Neo4j\Application("http://127.0.0.1:7474", "neo4j", "neo4j");$app->discovery();Query statement
$statement = (new \Church\Neo4j\Statement('CREATE (n $props) RETURN n)'))->params([ 'props' => [ 'name' => 'test' ] ]);Open transaction
$statements = \Church\Neo4j\StatementRepository::add($statement);$transaction = $app->transaction($statements);$transaction->begin();
Commit transaction
$result = $transaction->commit();if ($result->getRawResponse()->getStatusCode() == 200) { print_r($result->getData());}Extend transaction validity
default expiry time is 60 seconds.$transaction->keepAlive();
Roll back
$transaction->rollback();
Start and commit transactions
$result = $transaction->beginAndCommit();print_r($result);
unit testing
composer install./vendor/bin/phpunit
About “PHP library neo4j How to install and use ” That's all for this article , Thank you for reading ! I'm sure you're right “PHP library neo4j How to install and use ” Knowledge has a certain understanding , If you want to learn more , Welcome to the Yisu cloud industry information channel .
边栏推荐
- fatal error: io. h: No such file or directory
- MySQL installation and configuration (super detailed, simple and practical)
- STM32 -- program startup process
- Ngx+sql environment offline installation log (RPM installation)
- Excel-VBA 快速上手(十三、日期的常见用法)
- STM32 - reset and clock control (cubemx for clock configuration)
- elment-plus图标input上面带的图标为什么不显示
- GD32F303固件库开发(10)----双ADC轮询模式扫描多个通道
- Why doesn't the icon on the elment plus icon input display
- 基于Ernie-3.0 CAIL2019法研杯要素识别多标签分类任务
猜你喜欢
![[reprint] the token token is used in the login scenario](/img/84/77dc2316e2adc380a580e2456c0e59.png)
[reprint] the token token is used in the login scenario

STM32 -- program startup process

Summary of common error types in JS

842. 排列数字

What are the main functions and uses of LCR tester

MySQL built-in functions

STM32 - interrupt overview (interrupt priority)
Integrating database Ecology: using eventbridge to build CDC applications

Changes in the history of oscilloscope development
![[virtual machine _2]-hyper-v and vmware/virtualbox cannot coexist](/img/90/c481a817dc91d7e5247dd8e3ee1dae.png)
[virtual machine _2]-hyper-v and vmware/virtualbox cannot coexist
随机推荐
winform跳转第二个窗体案例
Bluetooth smart Bracelet system based on STM32 MCU
Concise history of graphic technology
STM32 - DMA direct memory access controller (cubemx configures DMA)
MySQL command (add, delete, check and modify)
MySQL installation and configuration (super detailed, simple and practical)
LeetCode刷题系列之-多数之和类型
Sword finger offer II 063. replacement word (medium prefix tree string)
Wechat applet uses canvas drawing, round avatar, network background, text, dotted line, straight line
What to do after mathematical modeling gets the competition problem and some ("crooked ways") tips - must see before the competition
XXX port is already in use
Target segmentation learning
32. Longest valid bracket (difficult stack string)
STM32CUBEIDE(10)----ADC在DMA模式下扫描多个通道
Leetcode integer exercises integer inversion
Closure, prototype and original link
Intelligent control -- fuzzy mathematics and control
Paddlenlp text classification based on ernir3.0: take wos dataset as an example (hierarchical classification)
Static details of static members
Att & CK Threat Intelligence