mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-24 20:28:06 +02:00
**refactor(dynamic): introduce NATS protocol emulator with publish/deliver support, enhance endpoint handling, and extend SDK compatibility for Go and Python**
This commit is contained in:
parent
a55849f1ca
commit
a12f7efc3a
7 changed files with 527 additions and 28 deletions
19
tests/dynamic_fixtures/migration/django_ops/vuln.py
Normal file
19
tests/dynamic_fixtures/migration/django_ops/vuln.py
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
"""Phase 21 — Django Migration.operations runtime fixture."""
|
||||
_NYX_ADAPTER_MARKER = "from django.db import migrations"
|
||||
|
||||
import os
|
||||
|
||||
|
||||
class _RunSQL:
|
||||
def __init__(self, sql):
|
||||
self.sql = sql
|
||||
|
||||
|
||||
class Migration:
|
||||
operations = [
|
||||
_RunSQL(
|
||||
"CREATE INDEX idx_"
|
||||
+ (os.environ.get("NYX_PAYLOAD") or "users")
|
||||
+ " ON users(name)"
|
||||
)
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue