Comments (2)
@Sh4d1 - you can use the UnsafeNew call for what you want. As long as it is a database/sql
compatible driver implementation (which pgx is), you should be good to go.
https://pkg.go.dev/cirello.io/pglock#UnsafeNew
from pglock.
Ah nice! Thanks, will try 😄
from pglock.
Related Issues (20)
- Lock not marked as released when heartbeat cannot be sent HOT 3
- relation "locks" does not exist HOT 3
- SQLSTATE 400001 error on multiple boxes trying to acquire the same named lock HOT 6
- ERROR: could not serialize access due to XXX (SQLSTATE 40001) HOT 7
- Question: dealing with old locks HOT 2
- CreateTable should be idempotent HOT 5
- Solve CreateTable Conundrum
- Concurrent lock creation with different names leads to deadlock while releasing the lock
- Cancelled heartbeat causes release failures HOT 4
- Thoughts on Supporting GetAllLocksMetadata HOT 3
- Add Table schema in README HOT 1
- Errors while acquiring/releasing locks HOT 16
- Heartbeat not retried in case of errors HOT 1
- Enable Linters
- Introduce configurable logging levels HOT 3
- Create Sequence Fails HOT 3
- Support for `pgxpool`? HOT 5
- `TestFailIfLocked` doesn't finish when used with `pgxpool` HOT 1
- Don't log missed heartbeat as error when context is canceled HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pglock.