Skip to content

Commit ae45362

Browse files
v0.7.3
1 parent b560296 commit ae45362

5 files changed

Lines changed: 12 additions & 3 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<img src="https://static.wikia.nocookie.net/arnelify/images/c/c8/Arnelify-logo-2024.png/revision/latest?cb=20240701012515" style="width:336px;" alt="Arnelify Logo" />
22

3-
![Arnelify ORM for Python](https://img.shields.io/badge/Arnelify%20ORM%20for%20Python-0.7.2-yellow) ![C++](https://img.shields.io/badge/C++-2b-red) ![G++](https://img.shields.io/badge/G++-14.2.0-blue) ![Python](https://img.shields.io/badge/Python-3.11.2-blue) ![Nuitka](https://img.shields.io/badge/Nuitka-2.6.4-blue)
3+
![Arnelify ORM for Python](https://img.shields.io/badge/Arnelify%20ORM%20for%20Python-0.7.3-yellow) ![C++](https://img.shields.io/badge/C++-2b-red) ![G++](https://img.shields.io/badge/G++-14.2.0-blue) ![Python](https://img.shields.io/badge/Python-3.11.2-blue) ![Nuitka](https://img.shields.io/badge/Nuitka-2.6.4-blue)
44

55
## 🚀 About
66
**Arnelify® ORM for Python** - is a minimalistic dynamic library which is an ORM written in C and C++.
@@ -55,7 +55,7 @@ This software is licensed under the <a href="https://github.com/arnelify/arnelif
5555
Join us to help improve this software, fix bugs or implement new functionality. Active participation will help keep the software up-to-date, reliable, and aligned with the needs of its users.
5656

5757
## ⭐ Release Notes
58-
Version 0.7.2 - Minimalistic dynamic library
58+
Version 0.7.3 - Minimalistic dynamic library
5959

6060
We are excited to introduce the Arnelify ORM dynamic library for Python! Please note that this version is raw and still in active development.
6161

arnelify_orm/mysql/query/index.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ def index(self, type_: str, args: list[str] = []) -> None:
291291
self.bindings.append(query)
292292

293293
def join(self, table_name: str) -> 'MySQLQuery':
294+
self.hasOn = False
294295
self.query += f" JOIN {table_name}"
295296
return self
296297

@@ -302,6 +303,7 @@ def limit(self, limit_: int, offset: int = 0) -> list[dict]:
302303
return self.exec()
303304

304305
def leftJoin(self, table_name: str) -> 'MySQLQuery':
306+
self.hasOn = False
305307
self.query += f" LEFT JOIN {table_name}"
306308
return self
307309

@@ -425,6 +427,7 @@ def reference(self, column: str, table_name: str, foreign: str, args: list[str]
425427
self.indexes.append(query)
426428

427429
def rightJoin(self, table_name: str) -> 'MySQLQuery':
430+
self.hasOn = False
428431
self.query += f" RIGHT JOIN {table_name}"
429432
return self
430433

arnelify_orm/src/mysql/query/index.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,7 @@ class MySQLQuery {
441441
}
442442

443443
MySQLQuery* join(const std::string& tableName) {
444+
this->hasOn = false;
444445
this->query += " JOIN " + tableName;
445446
return this;
446447
}
@@ -457,6 +458,7 @@ class MySQLQuery {
457458
}
458459

459460
MySQLQuery* leftJoin(const std::string& tableName) {
461+
this->hasOn = false;
460462
this->query += " LEFT JOIN " + tableName;
461463
return this;
462464
}
@@ -628,6 +630,7 @@ class MySQLQuery {
628630
}
629631

630632
MySQLQuery* rightJoin(const std::string& tableName) {
633+
this->hasOn = false;
631634
this->query += " RIGHT JOIN " + tableName;
632635
return this;
633636
}

arnelify_orm/src/tests/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
build/*

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
setup(
1313
name="arnelify_orm",
14-
version="0.7.2",
14+
version="0.7.3",
1515
author="Arnelify",
1616
description="Minimalistic dynamic library which is an ORM written in C and C++.",
1717
url='https://github.com/arnelify/arnelify-orm-python',

0 commit comments

Comments
 (0)