当前位置:网站首页>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 .
边栏推荐
- STM32_ Hal library driven framework
- Ngx+sql environment offline installation log (RPM installation)
- Paddlenlp text classification based on ernir3.0: take wos dataset as an example (hierarchical classification)
- AWK空行过滤
- [get mobile information] - get mobile information through ADB command
- Paddlenlp is based on ernir3.0 text classification. Take the crime prediction task of cail2018-small dataset as an example [multiple tags]
- Chrome encountered a problem when debugging the code. After modifying and saving the code in vscode, chrome did not update after refreshing
- Remember the first line segment tree (corresponding to Luogu 3372)
- imx6q gpio复用
- PaddleNLP基于ERNIR3.0文本分类:WOS数据集为例(层次分类)
猜你喜欢

Concise history of graphic technology

STM32 - systick timer (cubemx configures systick)
![[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 single chip microcomputer drive L298N

Soft exam network engineer

842. 排列数字

使用PCL批量显示PCD点云数据流

Att & CK preliminary understanding
![[CVPR 2021] cylinder3d: cylindrical asymmetric 3D convolution network for LIDAR point cloud segmentation](/img/3d/3def78ec88419712e14cf437e21447.png)
[CVPR 2021] cylinder3d: cylindrical asymmetric 3D convolution network for LIDAR point cloud segmentation
随机推荐
STM32 - DMA direct memory access controller (cubemx configures DMA)
[connect set-top box] - use ADB command line to connect ec6108v9 Huawei Yuehe box wirelessly
[connect your mobile phone wirelessly] - debug your mobile device wirelessly via LAN
redis相关
76. Minimum coverage substring (hard sliding window hash table string)
Use PCL to batch convert point cloud.Bin files to.Pcd
842. 排列数字
[virtual machine _2]-hyper-v and vmware/virtualbox cannot coexist
Sword finger offer II 065. The shortest word code (medium dictionary tree string array)
JMeter installs third-party plug-ins plugins Manager
ssh免密登陆
PC side web page effects (client series, scroll series, immediate function execution, sidebar effects)
STM32 board level support package for keys
使用PCL批量显示PCD点云数据流
Leetcode question brushing series - sum of majority type
Sword finger offer II 064. magic Dictionary (medium dictionary tree string design)
elment-plus图标input上面带的图标为什么不显示
winServer运维技术栈
Qt+FFmpeg环境搭建
[CVPR 2021] cylinder3d: cylindrical asymmetric 3D convolution network for LIDAR point cloud segmentation