Comments (1)
I personally think that creating such a command would be out of the context of this project; it seems overkill for a simple value-object.
The command would have to have access to not only the database connection, but also the EntityManager to get schema information (to figure out the primary key). Unless you could make it schema-agnostic, I would recommend against it.
However, a console command to convert IPs would be useful - however, perhaps it should piped in from standard input instead. That way any data source could be used, not just databases. An example of converting a database value would be something like:
mysql -sN -u root {databaseName} -e "SELECT ip FROM logins WHERE id = 13" | bin/console darsyn:ip:ntop
So I'll start writing that command (unless you want to have a shot at it, and add yourself as a contributor?)
As far as I can tell, there's no way of piping a single scalar value from either the doctrine:query:dql
or doctrine:query:sql
commands (using DQL would be super useful!); the results are returned formatted - but I'll continue researching.
from ip.
Related Issues (20)
- Warning: strlen() expects parameter 1 to be string, resource given HOT 2
- How can I get the IPv6 format address from IPv4? HOT 5
- Inconsistent Protocol Notation
- Support native database types HOT 1
- Creating a caster for Symfony VarDumper HOT 2
- Your data could not be encoded because it contains invalid UTF8 characters. HOT 5
- Searching on IP Address HOT 2
- Automatically use the CIDR4TO6 constant for IPv4 addresses. HOT 5
- getShortAddress missing in V4 HOT 1
- Importing data takes longer in version 4 than it did in version 3 HOT 10
- isVersion4 on getNetworkIp
- Default gateway HOT 2
- Add Code of Conduct
- Awesome PHP HOT 1
- __toString HOT 2
- Behaviour of Type Methods in Multi HOT 1
- Symfony throws warnings due to missing return type HOT 1
- Problem with QueryBuilder HOT 1
- [!] DBAL 4 incompatibility HOT 5
- How to use in where queries HOT 1
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 ip.