sort of support foreign keys
							parent
							
								
									c6e9b55361
								
							
						
					
					
						commit
						dc9f374570
					
				| 
						 | 
				
			
			@ -171,6 +171,7 @@ M: sqlite-db persistent-table ( -- assoc )
 | 
			
		|||
        { +db-assigned-id+ { "integer" "integer" f } }
 | 
			
		||||
        { +user-assigned-id+ { f f f } }
 | 
			
		||||
        { +random-id+ { "integer" "integer" f } }
 | 
			
		||||
        { +foreign-id+ { "integer" "integer" f } }
 | 
			
		||||
        { INTEGER { "integer" "integer" f } }
 | 
			
		||||
        { BIG-INTEGER { "bigint" "bigint" } }
 | 
			
		||||
        { SIGNED-BIG-INTEGER { "bigint" "bigint" } }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -210,12 +210,10 @@ TUPLE: annotation n paste-id summary author mode contents ;
 | 
			
		|||
    [ ] [ paste drop-table ] unit-test
 | 
			
		||||
    [ ] [ paste create-table ] unit-test
 | 
			
		||||
    [ ] [ annotation create-table ] unit-test
 | 
			
		||||
 | 
			
		||||
    ;
 | 
			
		||||
 | 
			
		||||
! [ test-paste-schema ] test-sqlite
 | 
			
		||||
! [ test-paste-schema ] test-postgresql
 | 
			
		||||
 | 
			
		||||
[ test-paste-schema ] test-sqlite
 | 
			
		||||
[ test-paste-schema ] test-postgresql
 | 
			
		||||
 | 
			
		||||
: test-repeated-insert
 | 
			
		||||
    [ ] [ person ensure-table ] unit-test
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue