pyaltt2/db.py
def create(self, q, *args, **kwargs):
        """
        Execute (usually INSERT) query with self.execute and return row id

        row id must be in "id" field
        """
        if not self.use_lastrowid:
            q += ' RETURNING id'
        result = self.execute(q, *args, **kwargs)
        return result.lastrowid if self.use_lastrowid else result.fetchone().id

        Execute (usually INSERT) query with self.execute and return row id

        row id must be in "id" field
        
Execute (usually INSERT) query with self.execute and return row id
row id must be in "id" field
Execute ( usually INSERT ) query with self . execute and return row id row id must be in " id " field
def create(self, q, *args, **kwargs):
        if not self.use_lastrowid:
            q += ' RETURNING id'
        result = self.execute(q, *args, **kwargs)
        return result.lastrowid if self.use_lastrowid else result.fetchone().id
def create ( self , q , * args , ** kwargs ) : if not self . use_lastrowid : q += ' RETURNING id' result = self . execute ( q , * args , ** kwargs ) return result . lastrowid if self . use_lastrowid else result . fetchone ( ) . id
Execute (usually INSERT) query with self.execute and return row id
row id must be in "id" field
Execute ( usually INSERT ) query with self . execute and return row id row id must be in " id " field
"""
        Execute (usually INSERT) query with self.execute and return row id

        row id must be in "id" field
        """
self
q